Archive: Modifying sectiongroup will make all its subsections restore default?


Modifying sectiongroup will make all its subsections restore default?
See the example code


outfile `test.exe`
!include 'MUI.nsh'
!include 'LogicLib.nsh'
!define LOGICLIB_SECTIONCMP
!insertmacro MUI_PAGE_COMPONENTS




SectionGroup `!Parent` pnt

Section '!aaaa' a

SectionEnd

Section '!bbbb' b

SectionEnd

Section '!cccc' c

SectionEnd

SectionGroupEnd

Function .OnInit
!insertmacro UnSelectSection ${a}
!insertmacro ClearSectionFlag ${pnt} ${SF_BOLD}
FunctionEnd


The "ClearSectionFlag" macro which comes after the "UnSelectSection" breaks up all the selection of the subsections. Any
Why in the world there are so many weird issues while playing around the section management. Any fix?

Because by clearing the flags of the section group you actually set the selection flag as well. That causes all of the sections under it to be selected, just as would happen if the user clicks on it.