Skip to content
⌘ NSIS Forum Archive

Components page - if B is checked, get A unchecked

3 posts

eagle3386#

Components page - if B is checked, get A unchecked

Hey guys,

I'm into NSIS since about one or two weeks and I _really_ love the simple instruction set (although this sometimes means to write more code 😉)!

But now, I keep struggling with the components page (and especially its functionality) for the uninstaller.. 🙁

There might be already a thread, but after searching three times, I couldn't find one.. - So, the problem is the following:

I'd like to have a components page with two options - let's call them "A" and "B", with A being selected by default.

Now, if B gets selected by the user, how to get A unchecked?

Best regards,
Martin
jdsama#
If I am understanding your problem correctly this code snippet from the wiki might be helpful to you?

http://nsis.sourceforge.net/Mutually_Exclusive_Sections http://nsis.sourceforge.net/Mutually_Exclusive_Sections
eagle3386#
Originally posted by jdsama
If I am understanding your problem correctly this code snippet from the wiki might be helpful to you?

http://nsis.sourceforge.net/Mutually_Exclusive_Sections
That's _exactly_ what I've been looking for - thank you so much! 🙂