mirror of
https://github.com/overte-org/overte.git
synced 2025-08-04 17:58:43 +02:00
bug fixes for express installer
This commit is contained in:
parent
e0daa92757
commit
3ee5f78c40
1 changed files with 26 additions and 38 deletions
|
@ -518,7 +518,7 @@ FunctionEnd
|
||||||
|
|
||||||
Function AbortFunction
|
Function AbortFunction
|
||||||
; Check if Express is set, if so, abort the post install options page
|
; Check if Express is set, if so, abort the post install options page
|
||||||
Call HandleInstallTypes ; Sets Express if ExpressInstallRadioButton is checked and installs with defaults
|
; Call HandleInstallTypes ; Sets Express if ExpressInstallRadioButton is checked
|
||||||
StrCmp $Express "1" 0 end
|
StrCmp $Express "1" 0 end
|
||||||
Abort
|
Abort
|
||||||
end:
|
end:
|
||||||
|
@ -529,10 +529,15 @@ Function PostInstallOptionsPage
|
||||||
|
|
||||||
nsDialogs::Create 1018
|
nsDialogs::Create 1018
|
||||||
Pop $PostInstallDialog
|
Pop $PostInstallDialog
|
||||||
|
|
||||||
${If} $PostInstallDialog == error
|
${If} $PostInstallDialog == error
|
||||||
Abort
|
Abort
|
||||||
${EndIf}
|
${EndIf}
|
||||||
|
|
||||||
|
; Check if Express is set, if so, abort the post install options page
|
||||||
|
StrCmp $Express "1" 0 end
|
||||||
|
Abort
|
||||||
|
end:
|
||||||
|
|
||||||
StrCpy $CurrentOffset 0
|
StrCpy $CurrentOffset 0
|
||||||
StrCpy $OffsetUnits u
|
StrCpy $OffsetUnits u
|
||||||
|
@ -617,12 +622,6 @@ Function PostInstallOptionsPage
|
||||||
${NSD_SetState} $CopyFromProductionCheckbox ${BST_UNCHECKED}
|
${NSD_SetState} $CopyFromProductionCheckbox ${BST_UNCHECKED}
|
||||||
${EndIf}
|
${EndIf}
|
||||||
|
|
||||||
; Check if Express is set, if so, abort the post install options page
|
|
||||||
Call HandleInstallTypes ; Sets Express if ExpressInstallRadioButton is checked and installs with defaults
|
|
||||||
StrCmp $Express "1" 0 end
|
|
||||||
Abort
|
|
||||||
end:
|
|
||||||
|
|
||||||
nsDialogs::Show
|
nsDialogs::Show
|
||||||
FunctionEnd
|
FunctionEnd
|
||||||
|
|
||||||
|
@ -638,15 +637,28 @@ Var LaunchServerNowState
|
||||||
Var LaunchClientNowState
|
Var LaunchClientNowState
|
||||||
Var CopyFromProductionState
|
Var CopyFromProductionState
|
||||||
Var CleanInstallState
|
Var CleanInstallState
|
||||||
Var ExpressInstallState
|
Var ExpressInstallState
|
||||||
Var CustomInstallState
|
Var CustomInstallState
|
||||||
|
|
||||||
Function ReadInstallTypes
|
Function ReadInstallTypes
|
||||||
${If} ${SectionIsSelected} ${@CLIENT_COMPONENT_NAME@}
|
; check if the user asked for express/custom install
|
||||||
; check if the user asked for express/custom install
|
${NSD_GetState} $ExpressInstallRadioButton $ExpressInstallState
|
||||||
${NSD_GetState} $ExpressInstallRadioButton $ExpressInstallState
|
${NSD_GetState} $CustomInstallRadioButton $CustomInstallState
|
||||||
${NSD_GetState} $CustomInstallRadioButton $CustomInstallState
|
|
||||||
|
${If} $ExpressInstallState == ${BST_CHECKED}
|
||||||
|
StrCpy $Express "1"
|
||||||
|
|
||||||
|
StrCpy $DesktopClientState ${BST_CHECKED}
|
||||||
|
StrCpy $ServerStartupState ${BST_CHECKED}
|
||||||
|
StrCpy $LaunchServerNowState ${BST_CHECKED}
|
||||||
|
StrCpy $LaunchClientNowState ${BST_CHECKED}
|
||||||
|
|
||||||
|
${If} @PR_BUILD@ == 1
|
||||||
|
${NSD_SetState} $CopyFromProductionCheckbox ${BST_UNCHECKED}
|
||||||
|
${EndIf}
|
||||||
|
|
||||||
${EndIf}
|
${EndIf}
|
||||||
|
|
||||||
FunctionEnd
|
FunctionEnd
|
||||||
|
|
||||||
Function ReadPostInstallOptions
|
Function ReadPostInstallOptions
|
||||||
|
@ -684,28 +696,6 @@ Function ReadPostInstallOptions
|
||||||
${EndIf}
|
${EndIf}
|
||||||
FunctionEnd
|
FunctionEnd
|
||||||
|
|
||||||
Function HandleInstallTypes
|
|
||||||
${If} $ExpressInstallState == ${BST_CHECKED}
|
|
||||||
|
|
||||||
StrCpy $Express "1"
|
|
||||||
|
|
||||||
; over ride custom checkboxes and select defaults
|
|
||||||
${NSD_SetState} $DesktopClientCheckbox ${BST_CHECKED}
|
|
||||||
${NSD_SetState} $ServerStartupCheckbox ${BST_CHECKED}
|
|
||||||
${NSD_SetState} $LaunchServerNowCheckbox ${BST_CHECKED}
|
|
||||||
${NSD_SetState} $LaunchClientNowCheckbox ${BST_CHECKED}
|
|
||||||
|
|
||||||
${If} @PR_BUILD@ == 1
|
|
||||||
${NSD_SetState} $CopyFromProductionCheckbox ${BST_UNCHECKED}
|
|
||||||
${EndIf}
|
|
||||||
|
|
||||||
; call ReadPostInstallOptions and HandlePostInstallOptions with defaults selected
|
|
||||||
Call ReadPostInstallOptions
|
|
||||||
Call HandlePostInstallOptions
|
|
||||||
|
|
||||||
${EndIf}
|
|
||||||
FunctionEnd
|
|
||||||
|
|
||||||
Function HandlePostInstallOptions
|
Function HandlePostInstallOptions
|
||||||
${If} ${SectionIsSelected} ${@CLIENT_COMPONENT_NAME@}
|
${If} ${SectionIsSelected} ${@CLIENT_COMPONENT_NAME@}
|
||||||
; check if the user asked for a desktop shortcut to High Fidelity
|
; check if the user asked for a desktop shortcut to High Fidelity
|
||||||
|
@ -853,8 +843,6 @@ Section "-Core installation"
|
||||||
; Rename the incorrectly cased Raleway font
|
; Rename the incorrectly cased Raleway font
|
||||||
Rename "$INSTDIR\resources\qml\styles-uit\RalewaySemibold.qml" "$INSTDIR\resources\qml\styles-uit\RalewaySemiBold.qml"
|
Rename "$INSTDIR\resources\qml\styles-uit\RalewaySemibold.qml" "$INSTDIR\resources\qml\styles-uit\RalewaySemiBold.qml"
|
||||||
|
|
||||||
ExecWait "$INSTDIR\vcredist_x64.exe /install /q /norestart"
|
|
||||||
|
|
||||||
; Remove the Old Interface directory and vcredist_x64.exe (from installs prior to Server Console)
|
; Remove the Old Interface directory and vcredist_x64.exe (from installs prior to Server Console)
|
||||||
RMDir /r "$INSTDIR\Interface"
|
RMDir /r "$INSTDIR\Interface"
|
||||||
Delete "$INSTDIR\vcredist_x64.exe"
|
Delete "$INSTDIR\vcredist_x64.exe"
|
||||||
|
@ -955,7 +943,7 @@ Section "-Core installation"
|
||||||
|
|
||||||
!insertmacro MUI_STARTMENU_WRITE_END
|
!insertmacro MUI_STARTMENU_WRITE_END
|
||||||
|
|
||||||
@CPACK_NSIS_EXTRA_INSTALL_COMMANDS@
|
@CPACK_NSIS_EXTRA_INSTALL_COMMANDS@
|
||||||
|
|
||||||
; Handle whichever post install options were set
|
; Handle whichever post install options were set
|
||||||
Call HandlePostInstallOptions
|
Call HandlePostInstallOptions
|
||||||
|
|
Loading…
Reference in a new issue