From 21d194adfe1fc7b07ddfaf497963419ebf3d0902 Mon Sep 17 00:00:00 2001 From: Birunthan Mohanathas Date: Fri, 25 Dec 2015 16:32:02 +0200 Subject: [PATCH] Installer: Show 64-bit checkbox on reinstall if Rainmeter.exe has been removed --- Build/Installer/Installer.nsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Build/Installer/Installer.nsi b/Build/Installer/Installer.nsi index 3e1b8a7da..303fde39c 100644 --- a/Build/Installer/Installer.nsi +++ b/Build/Installer/Installer.nsi @@ -314,6 +314,7 @@ Function PageOptions ${If} ${RunningX64} ${If} $InstallPortable = 1 ${OrIf} $INSTDIR == "" + ${OrIfNot} ${FileExists} "$INSTDIR\Rainmeter.exe" ${NSD_CreateCheckBox} 6u 54u 285u 12u "$(INSTALL64BIT)" Pop $R2 StrCpy $1 30u @@ -364,6 +365,11 @@ Function PageOptions ${If} $INSTDIR != "" EnableWindow $R1 0 ${NSD_SetText} $R0 "$INSTDIR" + + ${If} ${RunningX64} + ${AndIfNot} ${FileExists} "$INSTDIR\Rainmeter.exe" + ${NSD_Check} $R2 + ${EndIf} ${Else} ; Fresh install ${If} ${RunningX64}