I have a NSIS script with a number of sections and a section group. This is purely for display purposes, e.g.:
SectionGroup /e "ERP Integration"
Section /o "Exact" SEC_EXACT
; section stuff
SectionEnd
Section /o "Navision" SEC_NAV
; section stuff
SectionEnd
SectionGroupEnd
Now, I want to check if a particular subsection is selected. You have the Sections.nsh header with some nifty macro's for that, so I tried:
!insertmacro SectionFlagIsSet ${SEC_NAV} ${SF_SELECTED} End${ProductName} ""
StrCpy ${ConfigProductVar} "true"
StrCpy ${ConfigGlobalVar} "true"
nsislog::log "$INSTDIR\install.log" "${ProductName} is not yet installed and selected, call config"
End${ProductName}:
However, this returns true if one of the subsections in a group is selected.
Is there a way to check if a particular section in a group is selected, without interference from other sections in the group?