fix installer silent mode doLocalConf.xml setting handling

This commit is contained in:
xomx 2025-02-27 12:52:48 +01:00 committed by GitHub
parent aecc0e4a3b
commit b0f71d1efa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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"