Files
assaultcube-/source/vcpp/cube.nsi
T
Lee Salzman 03a9812fc5 removed vcredist dependency
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4093 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2009-01-02 00:49:18 +00:00

54 lines
1.4 KiB
NSIS

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
CreateShortCut "$SMPROGRAMS\Cube\README.lnk" "$INSTDIR\README.html" "" "$INSTDIR\README.html" 0
SectionEnd
Section "Uninstall"
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Cube"
DeleteRegKey HKLM SOFTWARE\Cube
RMDir /r "$SMPROGRAMS\Cube"
RMDir /r "$INSTDIR"
SectionEnd