mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-24 00:03:11 +01:00
Skip upgrade/downgrade process in installer for now
This commit is contained in:
@@ -461,7 +461,9 @@ Function .onInit
|
|||||||
; Starts Setup - let's look for an older version of OpenRCT2
|
; Starts Setup - let's look for an older version of OpenRCT2
|
||||||
ReadRegStr $R8 HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\OpenRCT2" "Version"
|
ReadRegStr $R8 HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\OpenRCT2" "Version"
|
||||||
|
|
||||||
IfErrors ShowWelcomeMessage ShowUpgradeMessage
|
; Skip upgrade checking for now
|
||||||
|
;IfErrors ShowWelcomeMessage ShowUpgradeMessage
|
||||||
|
Goto ShowWelcomeMessage
|
||||||
ShowWelcomeMessage:
|
ShowWelcomeMessage:
|
||||||
ReadRegStr $R8 HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\OpenRCT2" "Version"
|
ReadRegStr $R8 HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\OpenRCT2" "Version"
|
||||||
IfErrors FinishCallback
|
IfErrors FinishCallback
|
||||||
@@ -488,6 +490,8 @@ DoUninstall: ; You have the same version as this installer. This allows you to
|
|||||||
Quit
|
Quit
|
||||||
|
|
||||||
InstallerIsOlder:
|
InstallerIsOlder:
|
||||||
|
; A newer version was found. Let's let the user know there's an downgrade that will take place.
|
||||||
|
ReadRegStr $OLDVERSION HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\OpenRCT2" "DisplayVersion"
|
||||||
;MessageBox MB_OK|MB_ICONSTOP \
|
;MessageBox MB_OK|MB_ICONSTOP \
|
||||||
; "You have a newer version of ${APPNAME}.$\nSetup will now exit."
|
; "You have a newer version of ${APPNAME}.$\nSetup will now exit."
|
||||||
;Quit
|
;Quit
|
||||||
|
|||||||
Reference in New Issue
Block a user