From 95b5140fb1bcb949bac178c0fa8ca52d9d2062f2 Mon Sep 17 00:00:00 2001 From: Jarno Veuger Date: Wed, 27 Jan 2016 01:30:01 +0100 Subject: [PATCH] Skip upgrade/downgrade process in installer for now --- distribution/windows/install.nsi | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/distribution/windows/install.nsi b/distribution/windows/install.nsi index 8b8917aef3..4be5f34ee5 100644 --- a/distribution/windows/install.nsi +++ b/distribution/windows/install.nsi @@ -461,7 +461,9 @@ Function .onInit ; Starts Setup - let's look for an older version of OpenRCT2 ReadRegStr $R8 HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\OpenRCT2" "Version" - IfErrors ShowWelcomeMessage ShowUpgradeMessage + ; Skip upgrade checking for now + ;IfErrors ShowWelcomeMessage ShowUpgradeMessage + Goto ShowWelcomeMessage ShowWelcomeMessage: ReadRegStr $R8 HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\OpenRCT2" "Version" IfErrors FinishCallback @@ -488,6 +490,8 @@ DoUninstall: ; You have the same version as this installer. This allows you to Quit 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 \ ; "You have a newer version of ${APPNAME}.$\nSetup will now exit." ;Quit