Archive: How to exclude Sections dependently ?


How to exclude Sections dependently ?
I am offering the user 3 different sections.
I want to force the user to select only ONE of these sections.
Whenever he checks the tiny box before a desired section
all possible checks before the other sections should vanish
(read. They should be disabled/disappear)

How can I implement such a "Radio button" behaviour ?

As far as I know I can use !insertmacro to unselect a certain
section from the .onInit function.
But is this also possible from sections for OTHER sections ?

Moreover how do I detect if and which of the other sections are currently selected ?

Thx
Thomas


There is an example called one-section.nsi in the Examples directory. It does exactly what you're looking for only for 4 sections. It won't be too hard to make it work for 3.


Quote:


I have NSIS installed and I looked in the examples directory and found no such file. If you have it, could you please attach it? Or perhaps if its somewhere online, could you please post the URL? Thankx.

Originally posted by kichik
There is an example called one-section.nsi in the Examples directory. It does exactly what you're looking for only for 4 sections. It won't be too hard to make it work for 3.

You should get the latest NSIS 2 release or development version.

http://nsis.sf.net


You can also take a look at the following Archive page if you're using 1.98:

http://nsis.sourceforge.net/archive/....php?pageid=59