mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 19:59:28 +02:00
only remove selected components on clean install, leave wallet
This commit is contained in:
parent
55a3dc3a49
commit
16335a3b4b
1 changed files with 21 additions and 15 deletions
|
@ -710,11 +710,9 @@ Function PostInstallOptionsPage
|
||||||
!insertmacro SetInstallOption $ServerStartupCheckbox @CONSOLE_STARTUP_REG_KEY@ ${BST_CHECKED}
|
!insertmacro SetInstallOption $ServerStartupCheckbox @CONSOLE_STARTUP_REG_KEY@ ${BST_CHECKED}
|
||||||
${EndIf}
|
${EndIf}
|
||||||
|
|
||||||
${If} @SERVER_COMPONENT_CONDITIONAL@
|
${NSD_CreateCheckbox} 0 $CurrentOffset$OffsetUnits 100% 10u "&Perform a clean install (Delete older settings and content)"
|
||||||
${NSD_CreateCheckbox} 0 $CurrentOffset$OffsetUnits 100% 10u "&Perform a clean install (Delete older settings and content)"
|
Pop $CleanInstallCheckbox
|
||||||
Pop $CleanInstallCheckbox
|
IntOp $CurrentOffset $CurrentOffset + 15
|
||||||
IntOp $CurrentOffset $CurrentOffset + 15
|
|
||||||
${EndIf}
|
|
||||||
|
|
||||||
${If} @PR_BUILD@ == 1
|
${If} @PR_BUILD@ == 1
|
||||||
; a PR build defaults all install options expect LaunchServerNowCheckbox, LaunchClientNowCheckbox and the settings copy to unchecked
|
; a PR build defaults all install options expect LaunchServerNowCheckbox, LaunchClientNowCheckbox and the settings copy to unchecked
|
||||||
|
@ -809,10 +807,8 @@ Function ReadPostInstallOptions
|
||||||
${NSD_GetState} $LaunchClientNowCheckbox $LaunchClientNowState
|
${NSD_GetState} $LaunchClientNowCheckbox $LaunchClientNowState
|
||||||
${EndIf}
|
${EndIf}
|
||||||
|
|
||||||
${If} @CLIENT_COMPONENT_CONDITIONAL@
|
; check if the user asked for a clean install
|
||||||
; check if the user asked for a clean install
|
${NSD_GetState} $CleanInstallCheckbox $CleanInstallState
|
||||||
${NSD_GetState} $CleanInstallCheckbox $CleanInstallState
|
|
||||||
${EndIf}
|
|
||||||
FunctionEnd
|
FunctionEnd
|
||||||
|
|
||||||
Function HandlePostInstallOptions
|
Function HandlePostInstallOptions
|
||||||
|
@ -856,13 +852,23 @@ Function HandlePostInstallOptions
|
||||||
${EndIf}
|
${EndIf}
|
||||||
${EndIf}
|
${EndIf}
|
||||||
|
|
||||||
${If} @CLIENT_COMPONENT_CONDITIONAL@
|
; check if the user asked for a clean install
|
||||||
; check if the user asked for a clean install
|
${If} $CleanInstallState == ${BST_CHECKED}
|
||||||
${If} $CleanInstallState == ${BST_CHECKED}
|
SetShellVarContext current
|
||||||
SetShellVarContext current
|
|
||||||
RMDir /r "$APPDATA\@BUILD_ORGANIZATION@"
|
${If} @SERVER_COMPONENT_CONDITIONAL@
|
||||||
RMDir /r "$LOCALAPPDATA\@BUILD_ORGANIZATION@"
|
RMDir /r "$APPDATA\@BUILD_ORGANIZATION@\Server Console"
|
||||||
|
RMDir /r "$APPDATA\@BUILD_ORGANIZATION@\assignment-client"
|
||||||
|
RMDir /r "$APPDATA\@BUILD_ORGANIZATION@\domain-server"
|
||||||
|
Delete "$APPDATA\@BUILD_ORGANIZATION@\domain-server.json"
|
||||||
${EndIf}
|
${EndIf}
|
||||||
|
|
||||||
|
${If} @CLIENT_COMPONENT_CONDITIONAL@
|
||||||
|
Delete "$APPDATA\@BUILD_ORGANIZATION@\Interface\AccountInfo.bin"
|
||||||
|
Delete "$APPDATA\@BUILD_ORGANIZATION@\Interface.json"
|
||||||
|
${EndIf}
|
||||||
|
|
||||||
|
RMDir /r "$LOCALAPPDATA\@BUILD_ORGANIZATION@"
|
||||||
${EndIf}
|
${EndIf}
|
||||||
|
|
||||||
${If} @PR_BUILD@ == 1
|
${If} @PR_BUILD@ == 1
|
||||||
|
|
Loading…
Reference in a new issue