diff --git a/source/vcpp/cube.nsi b/source/vcpp/cube.nsi new file mode 100644 index 00000000..dc643783 --- /dev/null +++ b/source/vcpp/cube.nsi @@ -0,0 +1,53 @@ +Name "Cube" + +OutFile "cube_2005_08_22_setup.exe" + +InstallDir $PROGRAMFILES\Cube + +InstallDirRegKey HKLM "Software\Cube" "Install_Dir" + +SetCompressor /SOLID lzma +XPStyle on + +Page components +Page directory +Page instfiles + +UninstPage uninstConfirm +UninstPage instfiles + +Section "Cube (required)" + + SectionIn RO + + SetOutPath $INSTDIR + + File /r "..\cube\*.*" + + WriteRegStr HKLM SOFTWARE\Cube "Install_Dir" "$INSTDIR" + + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Cube" "DisplayName" "Cube" + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Cube" "UninstallString" '"$INSTDIR\uninstall.exe"' + WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Cube" "NoModify" 1 + WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Cube" "NoRepair" 1 + WriteUninstaller "uninstall.exe" + +SectionEnd + +Section "Start Menu Shortcuts" + + CreateDirectory "$SMPROGRAMS\Cube" + CreateShortCut "$SMPROGRAMS\Cube\Uninstall.lnk" "$INSTDIR\uninstall.exe" "" "$INSTDIR\uninstall.exe" 0 + CreateShortCut "$SMPROGRAMS\Cube\Cube.lnk" "$INSTDIR\cube.bat" "" "$INSTDIR\cube.bat" 0 + +SectionEnd + +Section "Uninstall" + + DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Cube" + DeleteRegKey HKLM SOFTWARE\Cube + + RMDir /r "$SMPROGRAMS\Cube" + RMDir /r "$INSTDIR" + +SectionEnd \ No newline at end of file diff --git a/source/vcpp/cube.sln b/source/vcpp/cube.sln new file mode 100644 index 00000000..1384eba0 --- /dev/null +++ b/source/vcpp/cube.sln @@ -0,0 +1,25 @@ +Microsoft Visual Studio Solution File, Format Version 8.00 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "cube", "cube.vcproj", "{06594C6D-6DA9-49DC-9A91-8F47221DDCFD}" + ProjectSection(ProjectDependencies) = postProject + EndProjectSection +EndProject +Global + GlobalSection(SolutionConfiguration) = preSolution + Debug = Debug + Profile = Profile + Release = Release + EndGlobalSection + GlobalSection(ProjectConfiguration) = postSolution + {06594C6D-6DA9-49DC-9A91-8F47221DDCFD}.Debug.ActiveCfg = Debug|Win32 + {06594C6D-6DA9-49DC-9A91-8F47221DDCFD}.Debug.Build.0 = Debug|Win32 + {06594C6D-6DA9-49DC-9A91-8F47221DDCFD}.Profile.ActiveCfg = Profile|Win32 + {06594C6D-6DA9-49DC-9A91-8F47221DDCFD}.Profile.Build.0 = Profile|Win32 + {06594C6D-6DA9-49DC-9A91-8F47221DDCFD}.Release.ActiveCfg = Release|Win32 + {06594C6D-6DA9-49DC-9A91-8F47221DDCFD}.Release.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + DPBuild = 5 + EndGlobalSection + GlobalSection(ExtensibilityAddIns) = postSolution + EndGlobalSection +EndGlobal diff --git a/source/vcpp/cube.suo b/source/vcpp/cube.suo new file mode 100644 index 00000000..19f2d5fe Binary files /dev/null and b/source/vcpp/cube.suo differ diff --git a/source/vcpp/cube.vcproj b/source/vcpp/cube.vcproj new file mode 100644 index 00000000..e65d4525 --- /dev/null +++ b/source/vcpp/cube.vcproj @@ -0,0 +1,804 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +