Hi all,
I'm relatively new to NSIS, so excuse my noobness.
I'm using NSIS 2.46 with MUI2. I am trying to create a components page where the component group is optional, but the items in the group are radio buttons.
The context is that I install some prerequisites for my installation. The user can choose 2 options on how those prerequisites are installed, but they can also choose not to install the prerequisites at all.
Currently my code looks something like:
This does give me the "radio button" effect for install types, but I cant deselect the group checkbox (which ok, is "correct" radio button operation. I'm seeing if theres a way to have nothing selected or only 1 selected)
Thanks!!
I'm relatively new to NSIS, so excuse my noobness.
I'm using NSIS 2.46 with MUI2. I am trying to create a components page where the component group is optional, but the items in the group are radio buttons.
The context is that I install some prerequisites for my installation. The user can choose 2 options on how those prerequisites are installed, but they can also choose not to install the prerequisites at all.
Currently my code looks something like:
Code examples taken from http://stackoverflow.com/questions/1...ams-to-install.code:
!insertmacro MUI_PAGE_COMPONENTS
...
SectionGroup "Prerequisite Installation"
Section "Install Type 1" installType1
SectionEnd
Section "Install Type 2" installType2
SectionEnd
SectionGroupEnd
...
Function .onInit
StrCpy $1 ${installType1}
FunctionEnd
Function .onSelChange
!insertmacro StartRadioButtons $1
!insertmacro RadioButton "${installType1}"
!insertmacro RadioButton "${installType2}"
!insertmacro EndRadioButtons
FunctionEnd
This does give me the "radio button" effect for install types, but I cant deselect the group checkbox (which ok, is "correct" radio button operation. I'm seeing if theres a way to have nothing selected or only 1 selected)
Thanks!!
Comment