OK, I'll start with section structure:
Section 1
SectionGroup
Section 2 (invisible)
Section 3 (optional)
SectionGroupEnd
Section 4
I have other sections too.
What I want to do is select "SectionGroup" when "Section 3" is selected. For now SectionGroup gets selected only partially (thus leaving "Section 2" unselected).
I tried to create .onSelChange function to check if "Section 3" is selected and if it is select "SectionGrop" as well.
It didn't work. Can someone tell me what I am doing wrong?
!include Sections.nsh
Function .onSelChange
!insertmacro SectionFlagIsSet "Section 3" SF_SELECTED set notset
set:
!insertmacro SelectSection SectionGroup
notset:
FunctionEnd