Skip to content
⌘ NSIS Forum Archive

Interactive change Sections

3 posts

KirillKr#

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.
Joost Verburg#
Use the Section.nsh macros. one-section.nsi is an example of sections working like option buttons.
KirillKr#
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.