i have a hidden section,
and a couple more sections (one more hidden, about 20 or so regular).
Section -FirstToExecute SEC_FIRSTTOEXECUTE
SectionEnd
Now in some cases that section does not get executed, i could narrow it down to this happening when i change something in the component selection (select an additional section). The Setup can be used to install (previously not installed) components when called a second time, to accomodate this i use a macro that i have "derived" from the "SELECT_UNSECTION" macro from the examples.
That macro is called from
!macro DISABLE_SECTION SECTION_NAME SECTION_ID
Push $R0
ReadRegStr $R0 HKLM "${REGKEY}\Components" "${SECTION_NAME}"
StrCmp $R0 1 0 next${SECTION_ID}
!insertmacro SetSectionFlag "${SECTION_ID}" ${SF_RO}
!insertmacro ClearSectionFlag "${SECTION_ID}" ${SF_SELECTED}
next${SECTION_ID}:
Pop $R0
!macroend
!define MUI_PAGE_CUSTOMFUNCTION_PRE "PRE_PAGE_COMPONENTS"
I put
Function PRE_PAGE_COMPONENTS
!insertmacro DISABLE_SECTION "Business Logic (required)" ${SEC_FRAMEWORK}
!insertmacro DISABLE_SECTION "Backup Server" ${SEC_BACKUPSERVER}
!insertmacro DISABLE_SECTION "Deployment Service" ${SEC_DEPLOYMENTSERVICE}
.
.
.
FunctionEnd
in (the code is an example from the manual) but it does not help, the section is not executed.
Function .onSelChange
SectionGetFlags ${SEC_FIRSTTOEXECUTE} $0
IntOp $0 $0 | ${SF_SELECTED}
SectionSetFlags ${SEC_FIRSTTOEXECUTE} $0
!insertmacro StartRadioButtons $1
!insertmacro RadioButton ${SEC_FIREBIRDSERVER2}
!insertmacro RadioButton ${SEC_FIREBIRDSERVER264}
!insertmacro EndRadioButtons
FunctionEnd
I checked if i accidentally "uncheck" the section "SEC_FIRSTTOEXECUTE" but i don't, i also do not loop through the sections to do anything to them (i have seen you can do that).
Any ideas?
Your help is much appreciated.
Thanks.