Archive: some Q about radio checkbox


some Q about radio checkbox
Function .onSelChange

!insertmacro SectionFlagIsSet ${g1o1} ${SF_SELECTED} "" next

StrCmp $1 ${g1o2} "" dontUnselect

!insertmacro UnselectSection ${g1o2}

dontUnselect:

StrCpy $1 ${g1o1}

next:

!insertmacro SectionFlagIsSet ${g1o2} ${SF_SELECTED} "" next2

StrCmp $1 ${g1o1} "" dontUnselect2

!insertmacro UnselectSection ${g1o1}

dontUnselect2:

StrCpy $1 ${g1o2}

next2:

FunctionEnd

----------------------------------------------------------
this code is work 2 radio button installer.
but i want more radio button.
i want add 3 radio button in this code.(like g1o3, g1o4, g1o5)

how to modify this code?
plz help me rookie


Hi,
There is an example using two subsections with three radio checkboxes each: it is C:\Program Files\NSIS\Examples\one-section.nsi

It uses macros and lookes cleaner :D


Because it is a macro, you can't use "" as parameter for a label. Just add another label.