![]() |
Optional Radio Buttons
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: code: Code examples taken from http://stackoverflow.com/questions/1...ams-to-install. 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!! |
good question, i have the same problem. I use it the same way you do, like this http://nsis.sourceforge.net/Examples/one-section.nsi
Always 1 checkbox is activated. You cant deactivate both. Is it possible to uncheck both options with this "Sections.nsh" method? HTML Code:
!include "Sections.nsh" |
You can write your own code in .onSelChange to check the selected states of sections and uncheck the others as necessary. You can use ${If} ${SectionIsSelected} and the UnselectSection macro in Sections.nsh to simplify things.
Stu |
| All times are GMT. The time now is 17:41. |
Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.