Skip to content

Commit

Permalink
Installer: Show 64-bit checkbox on reinstall if Rainmeter.exe has bee…
Browse files Browse the repository at this point in the history
…n removed
  • Loading branch information
poiru committed Dec 26, 2015
1 parent 84f673b commit 21d194a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Build/Installer/Installer.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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}
Expand Down

0 comments on commit 21d194a

Please sign in to comment.