Archive: Interactive change Sections


Interactive change Sections
How I can make this:
1. If I select first section all ather section unchecked.
2. If I select second first unchecked and third check.

This only simple example, in real task I want do this with many different sections.


Use the Section.nsh macros. one-section.nsi is an example of sections working like option buttons.


Originally posted by Joost Verburg
Use the Section.nsh macros. one-section.nsi is an example of sections working like option buttons.
Thanks, but I have this structure:

1. SubSection
a. Section
b. Section
2. SubSection
a. Section
b. Section

And I want that only 1 section must be checked.
I write

Function .onSelChange
!insertmacro StartRadioButtons $1
!insertmacro RadioButton ${Section1}
!insertmacro RadioButton ${Section2}
!insertmacro RadioButton ${Section3}
!insertmacro RadioButton ${Section4}
!insertmacro EndRadioButtons
FunctionEnd

but if I click on not active subsection 2 sections checked.