Fix installer silent mode doLocalConf.xml setting handling issue

Fix #16233, close #16234
This commit is contained in:
xomx 2025-02-27 12:52:48 +01:00 committed by Don Ho
parent aecc0e4a3b
commit bb0ed32d40

View File

@ -39,6 +39,12 @@ initUpdatePath:
StrCpy $PLUGIN_INST_PATH "$INSTDIR\plugins"
StrCpy $ALLUSERS_PLUGIN_CONF_PATH "$PLUGIN_INST_PATH\Config"
; in Silent mode we cannot use the NSIS GUI for handling the doLocalConf mode
; but we need to directly use the previous user setting
IfSilent 0 +3
IfFileExists $INSTDIR\doLocalConf.xml 0 +2
StrCpy $noUserDataChecked ${BST_CHECKED}
${If} $noUserDataChecked == ${BST_CHECKED}
File "..\bin\doLocalConf.xml"