| BioDuo |
22nd June 2006 08:05 |
NSIS Bug (RadioButton problem)
I pointed this problem out earlier, only I didn't get any reply so I post my script..
code: !include "Sections.nsh"
;--------------------------------
Name "One Section"
OutFile "one-section.exe"
;--------------------------------
; Pages
Page components
;--------------------------------
; Sections
Section !Required
SectionIn RO
SectionEnd
SectionGroup /e "SectionGroup Test RadioButton"
Section "Group 1 - Option 1" g1o1
SectionEnd
Section /o "Group 1 - Option 2" g1o2
SectionEnd
Section /o "Group 1 - Option 3" g1o3
SectionEnd
SectionGroupEnd
Function .onInit
StrCpy $1 ${g1o1} ; Group 1 - Option 1 is selected by default
FunctionEnd
Function .onSelChange
!insertmacro StartRadioButtons $1
!insertmacro RadioButton ${g1o1}
!insertmacro RadioButton ${g1o2}
!insertmacro RadioButton ${g1o3}
!insertmacro EndRadioButtons
FunctionEnd
When you click 'SectionGroup Test RadioButton' both Option 1 and 2 jumps on, another click and Option 2 and Option 3 jumps on, is there a way to fix this?
|