mirror of https://github.com/OpenTTD/OpenTTD
(svn r32) -Fix [1007277] Windows Installer Fixes for bugs [991118] and [991102]. (lucaspiller)
parent
336ba2ba8a
commit
d3be7f2de7
|
@ -1,7 +1,7 @@
|
||||||
; Define your application name
|
; Define your application name
|
||||||
!define APPNAME "OpenTTD"
|
!define APPNAME "OpenTTD"
|
||||||
!define APPNAMEANDVERSION "OpenTTD 0.3.2.1"
|
!define APPNAMEANDVERSION "OpenTTD 0.3.3.0"
|
||||||
!define APPVERSION "0.3.2.1"
|
!define APPVERSION "0.3.3.0"
|
||||||
!define INSTALLERVERSION 11
|
!define INSTALLERVERSION 11
|
||||||
|
|
||||||
BrandingText "OpenTTD Installer"
|
BrandingText "OpenTTD Installer"
|
||||||
|
@ -9,7 +9,7 @@ BrandingText "OpenTTD Installer"
|
||||||
|
|
||||||
; Version Info
|
; Version Info
|
||||||
Var AddWinPrePopulate
|
Var AddWinPrePopulate
|
||||||
VIProductVersion "0.3.2.1"
|
VIProductVersion "0.3.3.0"
|
||||||
VIAddVersionKey "ProductName" "OpenTTD Installer"
|
VIAddVersionKey "ProductName" "OpenTTD Installer"
|
||||||
VIAddVersionKey "Comments" "Installs ${APPNAMEANDVERSION}"
|
VIAddVersionKey "Comments" "Installs ${APPNAMEANDVERSION}"
|
||||||
VIAddVersionKey "CompanyName" "OpenTTD Developers"
|
VIAddVersionKey "CompanyName" "OpenTTD Developers"
|
||||||
|
@ -177,14 +177,20 @@ SectionEnd
|
||||||
;Uninstall section
|
;Uninstall section
|
||||||
|
|
||||||
Section Uninstall
|
Section Uninstall
|
||||||
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
|
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
|
||||||
RemoveSavedGames:
|
RemoveSavedGames:
|
||||||
Delete "$INSTDIR\Save\*.*"
|
Delete "$INSTDIR\Save\AutoSave\*"
|
||||||
Delete "$INSTDIR\AutoSave\*.*"
|
RMDir "$INSTDIR\Save\AutoSave"
|
||||||
|
Delete "$INSTDIR\Save\*"
|
||||||
RMDir "$INSTDIR\Save"
|
RMDir "$INSTDIR\Save"
|
||||||
RMDir "$INSTDIR\AutoSave"
|
|
||||||
NoRemoveSavedGames:
|
NoRemoveSavedGames:
|
||||||
|
|
||||||
|
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
|
||||||
|
RemoveScen:
|
||||||
|
Delete "$INSTDIR\Scenario\*"
|
||||||
|
RMDir "$INSTDIR\Scenario"
|
||||||
|
NoRemoveScen:
|
||||||
|
|
||||||
;Remove from registry...
|
;Remove from registry...
|
||||||
!insertmacro MUI_STARTMENU_GETFOLDER "OpenTTD" $SHORTCUTS
|
!insertmacro MUI_STARTMENU_GETFOLDER "OpenTTD" $SHORTCUTS
|
||||||
ReadRegStr $SHORTCUTS HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\OpenTTD" "Shortcut Folder"
|
ReadRegStr $SHORTCUTS HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\OpenTTD" "Shortcut Folder"
|
||||||
|
|
Loading…
Reference in New Issue