Sailo
31st July 2002 17:45 UTC
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!
kichik
31st July 2002 17:55 UTC
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.
Sailo
2nd August 2002 09:42 UTC
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.
Sailo
8th August 2002 09:41 UTC
Help Anybody?
kichik
8th August 2002 09:53 UTC
I will write you an example, give me a couple of minutes...
Sailo
8th August 2002 10:18 UTC
Thanks mate, much appreciated.
kichik
8th August 2002 10:21 UTC
Here it is, attached.
Sailo
8th August 2002 11:19 UTC
Thanx alot. 1 of those things thats been bugging me for ages
kichik
9th August 2002 11:51 UTC
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]
Sailo
9th August 2002 13:00 UTC
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.
kichik
9th August 2002 13:07 UTC
That's how the installer behaves. If you change the flags of a section (either by clicking or SectionSetFlags) it goes to custom.