|
|
#1 |
|
Junior Member
Join Date: Apr 2005
Posts: 12
|
Making checkboxes radio buttons
I've tried different combinations for hours with no results.
I have five install options: 1 is automatically installed, and uncheckable. 1 is optional extras and of the last three, only one must be selected. The attached script is what I've done, but it always makes checkboxes and I can't make the last three options into radio buttons. Sorry about the size. When I compile the script it says that the variables I used are unknown, so maybe that's the problem but I built the script around the example One-Section and it worked for that... Please take a look at the script and see if you can help. Any information is much appreciated. Cheers. PS. I've searched the forums and found some topics, but have had no luck with them. |
|
|
|
|
|
#2 |
|
Senior Member
Join Date: Sep 2004
Location: Mogilev (Belarus)
Posts: 372
|
1. Move .onInit function after sections declaration.
2. Rename onInstSuccess to .onInstSuccess. 3. Add code: 4. Make SEC03 and SEC05 optional (/o attrib) 5. Put in .onInit functioncode: 6. And put this code after .onInit function code: |
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Sep 2004
Location: Mogilev (Belarus)
Posts: 372
|
And remove /LANG=${LANG_ENGLISH} from VIAddVersionKey (all).
|
|
|
|
|
|
#4 |
|
Junior Member
Join Date: Apr 2005
Posts: 12
|
Thanks for all of that, I really appreciate it.
However I still get a compile error: Function: ".onSelChange" !insertmacro: StartRadioButtons !insertmacro: macro named "StartRadioButtons" not found! Error in script "C:\Documents and Settings\Sean\Desktop\FFUR\test-2.nsi" on line 285 -- aborting creation process I've attached my edited version. I might have edited it wrong, but it says the problem is on line 285 which reads the following: !insertmacro StartRadioButtons $2 |
|
|
|
|
|
#5 |
|
Member
Join Date: May 2005
Location: U.S.A.
Posts: 91
|
Place this at the top of the script.
code: It doesn't need to be in a function. You had it in .onInstSuccess and that is a function that doesn't get called till the installation is finished properly. -MichaelFlya- |
|
|
|
|
|
#6 |
|
Junior Member
Join Date: Apr 2005
Posts: 12
|
Thanks alot - that has solved my problem. Excellent.
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|