force default selection of client on install

This commit is contained in:
Stephen Birarda 2016-08-25 15:50:13 -07:00
parent 87ecc65dce
commit 20777bd19a
2 changed files with 6 additions and 1 deletions

View file

@ -85,7 +85,7 @@ macro(GENERATE_INSTALLERS)
set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_SOURCE_DIR}/LICENSE")
cpack_add_component(${CLIENT_COMPONENT} DISPLAY_NAME "High Fidelity Interface" REQUIRED)
cpack_add_component(${CLIENT_COMPONENT} DISPLAY_NAME "High Fidelity Interface")
cpack_add_component(${SERVER_COMPONENT} DISPLAY_NAME "High Fidelity Sandbox")
include(CPack)

View file

@ -129,6 +129,11 @@ Var AR_RegFlags
;Writing modified flags
SectionSetFlags ${${SecName}} $AR_SecFlags
; The client is always selected by default
${If} ${SecName} == @CLIENT_COMPONENT_NAME@
SectionSetFlags ${${SecName}} 17
${EndIf}
"default_${SecName}:"
!insertmacro LoadSectionSelectedIntoVar ${SecName} ${SecName}_selected
!macroend