Make installer more coherent for the option doLocalConf.xml
If the install path is under %PROGRAMFILE% then option to copy doLocalConf.xml will be unchecked and disabled.
This commit is contained in:
parent
15ef9bd052
commit
03daf5559e
@ -102,6 +102,18 @@ Function ExtraOptions
|
|||||||
Pop $NoUserDataCheckboxHandle
|
Pop $NoUserDataCheckboxHandle
|
||||||
${NSD_OnClick} $NoUserDataCheckboxHandle OnChange_NoUserDataCheckBox
|
${NSD_OnClick} $NoUserDataCheckboxHandle OnChange_NoUserDataCheckBox
|
||||||
|
|
||||||
|
StrLen $0 $PROGRAMFILES
|
||||||
|
StrCpy $1 $InstDir $0
|
||||||
|
|
||||||
|
StrLen $0 $PROGRAMFILES64
|
||||||
|
StrCpy $2 $$InstDir "" $0
|
||||||
|
${If} $1 == "$PROGRAMFILES"
|
||||||
|
${ORIF} $2 == "$PROGRAMFILES64"
|
||||||
|
${NSD_Uncheck} $NoUserDataCheckboxHandle
|
||||||
|
EnableWindow $NoUserDataCheckboxHandle 0
|
||||||
|
${Else}
|
||||||
|
EnableWindow $NoUserDataCheckboxHandle 1
|
||||||
|
${EndIf}
|
||||||
nsDialogs::Show
|
nsDialogs::Show
|
||||||
FunctionEnd
|
FunctionEnd
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user