mirror of
https://github.com/overte-org/overte.git
synced 2025-04-13 13:12:11 +02:00
make sure shell var context is correct for AppData
This commit is contained in:
parent
e4110ea401
commit
79a2b7f213
1 changed files with 5 additions and 0 deletions
|
@ -639,10 +639,13 @@ Function HandlePostInstallOptions
|
|||
${EndIf}
|
||||
|
||||
${If} @PR_BUILD@ == 1
|
||||
|
||||
; check if we need to copy settings/content from production for this PR build
|
||||
${NSD_GetState} $CopyFromProductionCheckbox $CopyFromProductionState
|
||||
|
||||
${If} $CopyFromProductionState == ${BST_CHECKED}
|
||||
SetShellVarContext current
|
||||
|
||||
StrCpy $0 "$APPDATA\@BUILD_ORGANIZATION@"
|
||||
|
||||
; we need to copy whatever is in the data folder for production build to the data folder for this build
|
||||
|
@ -660,6 +663,8 @@ Function HandlePostInstallOptions
|
|||
"There was a problem copying your production content and settings to $0 for this PR build.$\r$\n$\r$\nPlease copy them manually."
|
||||
|
||||
NoError:
|
||||
|
||||
SetShellVarContext all
|
||||
${EndIf}
|
||||
${EndIf}
|
||||
|
||||
|
|
Loading…
Reference in a new issue