home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2007 September / maximum-cd-2007-09.iso / Assets / data / AssaultCube_v0.93.exe / source / vcpp / cube.nsi next >
Encoding:
Text File  |  2006-08-28  |  1.4 KB  |  53 lines

  1. Name "Cube"
  2.  
  3. OutFile "cube_2005_08_22_setup.exe"
  4.  
  5. InstallDir $PROGRAMFILES\Cube
  6.  
  7. InstallDirRegKey HKLM "Software\Cube" "Install_Dir"
  8.  
  9. SetCompressor /SOLID lzma
  10. XPStyle on
  11.  
  12. Page components
  13. Page directory
  14. Page instfiles
  15.  
  16. UninstPage uninstConfirm
  17. UninstPage instfiles
  18.  
  19. Section "Cube (required)"
  20.  
  21.   SectionIn RO
  22.   
  23.   SetOutPath $INSTDIR
  24.   
  25.   File /r "..\cube\*.*"
  26.   
  27.   WriteRegStr HKLM SOFTWARE\Cube "Install_Dir" "$INSTDIR"
  28.   
  29.   WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Cube" "DisplayName" "Cube"
  30.   WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Cube" "UninstallString" '"$INSTDIR\uninstall.exe"'
  31.   WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Cube" "NoModify" 1
  32.   WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Cube" "NoRepair" 1
  33.   WriteUninstaller "uninstall.exe"
  34.   
  35. SectionEnd
  36.  
  37. Section "Start Menu Shortcuts"
  38.  
  39.   CreateDirectory "$SMPROGRAMS\Cube"
  40.   CreateShortCut "$SMPROGRAMS\Cube\Uninstall.lnk" "$INSTDIR\uninstall.exe" "" "$INSTDIR\uninstall.exe" 0
  41.   CreateShortCut "$SMPROGRAMS\Cube\Cube.lnk" "$INSTDIR\cube.bat" "" "$INSTDIR\cube.bat" 0
  42.   
  43. SectionEnd
  44.  
  45. Section "Uninstall"
  46.   
  47.   DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Cube"
  48.   DeleteRegKey HKLM SOFTWARE\Cube
  49.  
  50.   RMDir /r "$SMPROGRAMS\Cube"
  51.   RMDir /r "$INSTDIR"
  52.  
  53. SectionEnd