Archive: Install Options Problem Please Help


Install Options Problem Please Help
Can anyone help.

I have 5 install options 1 is required and the other 4 are optional. The only problem is i want the user to only be able to select 1 of the 4 options so that when you check 1 box the check disappears from 1 of the other options. Is this possible?

Cheers guys!


You can use .onSelChange to make sure the user chose only one option. You can also forbid custom installation type and let the user choose out of four possible installation types.


Right ok. I have found the functions that i didn't no where there and have been playing with them for the most of this morning but hey i'm not really a programmer and am really struggling.

I have 4 optional sections which when the user checks one i want nsis to automatically uncheck the others.

Can anyone help me with the code here.


Help Anybody?


I will write you an example, give me a couple of minutes...


Thanks mate, much appreciated.


Here it is, attached.


Thanx alot. 1 of those things thats been bugging me for ages


Updated version. If you click on the section previously selected it won't unselect it.

[edit]Now in Windows line break format and fixed a little bug at the end of .onSelChange

Umm... Never mind that, seems like a little problem with my browser cache. Ignore that, the old version was the exact same script[/edit]


Ok thanks. Quick question? Why if i leave my install types in there it seems to think you are doing a custom install?

This appears to only be a display problem as the files install correctly.


That's how the installer behaves. If you change the flags of a section (either by clicking or SectionSetFlags) it goes to custom.