equal
deleted
inserted
replaced
1 ; Define your application name |
1 ; Define your application name |
2 !define APPNAME "OpenTTD" |
2 !define APPNAME "OpenTTD" |
3 !define APPNAMEANDVERSION "OpenTTD 0.3.2.1" |
3 !define APPNAMEANDVERSION "OpenTTD 0.3.3.0" |
4 !define APPVERSION "0.3.2.1" |
4 !define APPVERSION "0.3.3.0" |
5 !define INSTALLERVERSION 11 |
5 !define INSTALLERVERSION 11 |
6 |
6 |
7 BrandingText "OpenTTD Installer" |
7 BrandingText "OpenTTD Installer" |
8 |
8 |
9 |
9 |
10 ; Version Info |
10 ; Version Info |
11 Var AddWinPrePopulate |
11 Var AddWinPrePopulate |
12 VIProductVersion "0.3.2.1" |
12 VIProductVersion "0.3.3.0" |
13 VIAddVersionKey "ProductName" "OpenTTD Installer" |
13 VIAddVersionKey "ProductName" "OpenTTD Installer" |
14 VIAddVersionKey "Comments" "Installs ${APPNAMEANDVERSION}" |
14 VIAddVersionKey "Comments" "Installs ${APPNAMEANDVERSION}" |
15 VIAddVersionKey "CompanyName" "OpenTTD Developers" |
15 VIAddVersionKey "CompanyName" "OpenTTD Developers" |
16 VIAddVersionKey "FileDescription" "Installs ${APPNAMEANDVERSION}" |
16 VIAddVersionKey "FileDescription" "Installs ${APPNAMEANDVERSION}" |
17 VIAddVersionKey "ProductVersion" "${APPVERSION}" |
17 VIAddVersionKey "ProductVersion" "${APPVERSION}" |
175 |
175 |
176 ;!undef SHORTCUTS |
176 ;!undef SHORTCUTS |
177 ;Uninstall section |
177 ;Uninstall section |
178 |
178 |
179 Section Uninstall |
179 Section Uninstall |
180 MessageBox MB_YESNOCANCEL|MB_ICONQUESTION "Would you like to remove the Saved Game Folder located at '$INSTDIR\Save?' If you choose Yes, your Saved Games will be removed." IDYES RemoveSavedGames IDNO NoRemoveSavedGames |
180 MessageBox MB_YESNOCANCEL|MB_ICONQUESTION "Would you like to remove the Saved Game Folders located at '$INSTDIR\Save?' If you choose Yes, your Saved Games will be removed." IDYES RemoveSavedGames IDNO NoRemoveSavedGames |
181 RemoveSavedGames: |
181 RemoveSavedGames: |
182 Delete "$INSTDIR\Save\*.*" |
182 Delete "$INSTDIR\Save\AutoSave\*" |
183 Delete "$INSTDIR\AutoSave\*.*" |
183 RMDir "$INSTDIR\Save\AutoSave" |
|
184 Delete "$INSTDIR\Save\*" |
184 RMDir "$INSTDIR\Save" |
185 RMDir "$INSTDIR\Save" |
185 RMDir "$INSTDIR\AutoSave" |
|
186 NoRemoveSavedGames: |
186 NoRemoveSavedGames: |
|
187 |
|
188 MessageBox MB_YESNOCANCEL|MB_ICONQUESTION "Would you like to remove the Scenario Folders located at '$INSTDIR\Scenario?' If you choose Yes, your Scenarios will be removed." IDYES RemoveScen IDNO NoRemoveScen |
|
189 RemoveScen: |
|
190 Delete "$INSTDIR\Scenario\*" |
|
191 RMDir "$INSTDIR\Scenario" |
|
192 NoRemoveScen: |
187 |
193 |
188 ;Remove from registry... |
194 ;Remove from registry... |
189 !insertmacro MUI_STARTMENU_GETFOLDER "OpenTTD" $SHORTCUTS |
195 !insertmacro MUI_STARTMENU_GETFOLDER "OpenTTD" $SHORTCUTS |
190 ReadRegStr $SHORTCUTS HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\OpenTTD" "Shortcut Folder" |
196 ReadRegStr $SHORTCUTS HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\OpenTTD" "Shortcut Folder" |
191 |
197 |