3 OutFile "sauerbraten_2006_xx_xx_setup.exe"
5 InstallDir $PROGRAMFILES\Sauerbraten
7 InstallDirRegKey HKLM "Software\Sauerbraten" "Install_Dir"
9 SetCompressor
/SOLID lzma
16 UninstPage uninstConfirm
19 Section "Sauerbraten (required)"
27 WriteRegStr HKLM SOFTWARE\Sauerbraten
"Install_Dir" "$INSTDIR"
29 WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Sauerbraten" "DisplayName" "Sauerbraten"
30 WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Sauerbraten" "UninstallString" '"$INSTDIR\uninstall.exe"'
31 WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Sauerbraten" "NoModify" 1
32 WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Sauerbraten" "NoRepair" 1
33 WriteUninstaller "uninstall.exe"
37 Section "Visual C++ redistributable runtime"
39 ExecWait '"$INSTDIR\bin\vcredist_x86.exe"'
43 Section "Start Menu Shortcuts"
45 CreateDirectory "$SMPROGRAMS\Sauerbraten"
49 CreateShortCut "$INSTDIR\Sauerbraten.lnk" "$INSTDIR\sauerbraten.bat" "" "$INSTDIR\sauerbraten.bat" 0
50 CreateShortCut "$SMPROGRAMS\Sauerbraten\Sauerbraten.lnk" "$INSTDIR\sauerbraten.bat" "" "$INSTDIR\sauerbraten.bat" 0
51 CreateShortCut "$SMPROGRAMS\Sauerbraten\Uninstall.lnk" "$INSTDIR\uninstall.exe" "" "$INSTDIR\uninstall.exe" 0
52 CreateShortCut "$SMPROGRAMS\Sauerbraten\README.lnk" "$INSTDIR\README.html" "" "$INSTDIR\README.html" 0
58 DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Sauerbraten"
59 DeleteRegKey HKLM SOFTWARE\Sauerbraten
61 RMDir /r
"$SMPROGRAMS\Sauerbraten"