mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Installer: Fixed that 64-bit install was not checked by default
This commit is contained in:
parent
ba0f19b7e6
commit
62d60cba90
@ -316,28 +316,6 @@ Function PageOptions
|
|||||||
Pop $R1
|
Pop $R1
|
||||||
${NSD_OnClick} $R1 PageOptionsBrowseOnClick
|
${NSD_OnClick} $R1 PageOptionsBrowseOnClick
|
||||||
|
|
||||||
; Set default directory
|
|
||||||
${If} $InstallPortable == 1
|
|
||||||
${GetRoot} "$WINDIR" $0
|
|
||||||
${NSD_SetText} $R0 "$0\Rainmeter"
|
|
||||||
${Else}
|
|
||||||
; Disable Directory editbox and Browse button if already installed
|
|
||||||
SendMessage $R0 ${EM_SETREADONLY} 1 0
|
|
||||||
|
|
||||||
${If} $INSTDIR != ""
|
|
||||||
EnableWindow $R1 0
|
|
||||||
${NSD_SetText} $R0 "$INSTDIR"
|
|
||||||
${Else}
|
|
||||||
; Fresh install
|
|
||||||
${If} ${RunningX64}
|
|
||||||
${NSD_SetText} $R0 "$PROGRAMFILES64\Rainmeter"
|
|
||||||
${NSD_Check} $R2
|
|
||||||
${Else}
|
|
||||||
${NSD_SetText} $R0 "$PROGRAMFILES\Rainmeter"
|
|
||||||
${EndIf}
|
|
||||||
${EndIf}
|
|
||||||
${EndIf}
|
|
||||||
|
|
||||||
StrCpy $1 0
|
StrCpy $1 0
|
||||||
|
|
||||||
${If} ${RunningX64}
|
${If} ${RunningX64}
|
||||||
@ -383,6 +361,28 @@ Function PageOptions
|
|||||||
${NSD_CreateGroupBox} 0 42u -1u $1 "$(ADDITIONALOPTIONS)"
|
${NSD_CreateGroupBox} 0 42u -1u $1 "$(ADDITIONALOPTIONS)"
|
||||||
${EndIf}
|
${EndIf}
|
||||||
|
|
||||||
|
; Set default directory
|
||||||
|
${If} $InstallPortable == 1
|
||||||
|
${GetRoot} "$WINDIR" $0
|
||||||
|
${NSD_SetText} $R0 "$0\Rainmeter"
|
||||||
|
${Else}
|
||||||
|
; Disable Directory editbox and Browse button if already installed
|
||||||
|
SendMessage $R0 ${EM_SETREADONLY} 1 0
|
||||||
|
|
||||||
|
${If} $INSTDIR != ""
|
||||||
|
EnableWindow $R1 0
|
||||||
|
${NSD_SetText} $R0 "$INSTDIR"
|
||||||
|
${Else}
|
||||||
|
; Fresh install
|
||||||
|
${If} ${RunningX64}
|
||||||
|
${NSD_SetText} $R0 "$PROGRAMFILES64\Rainmeter"
|
||||||
|
${NSD_Check} $R2
|
||||||
|
${Else}
|
||||||
|
${NSD_SetText} $R0 "$PROGRAMFILES\Rainmeter"
|
||||||
|
${EndIf}
|
||||||
|
${EndIf}
|
||||||
|
${EndIf}
|
||||||
|
|
||||||
; Show UAC shield on Install button if requiredd
|
; Show UAC shield on Install button if requiredd
|
||||||
GetDlgItem $0 $HWNDPARENT 1
|
GetDlgItem $0 $HWNDPARENT 1
|
||||||
${If} $InstallPortable == 1
|
${If} $InstallPortable == 1
|
||||||
|
Loading…
Reference in New Issue
Block a user