treehousetim
17th May 2004 17:34 UTC
Selecting and unselecting sections
I'm trying to use the radio button macros in sections.nsh which I wrote, but I'm having some weirdness using them.
When I unselect all sections in the page pre or show function then try to select a single section
in the same function it works visually but when I click on one of the unselected sections, both sections become checked.
It's like the section isn't actually being checked unless the user clicks on it,
or perhaps the flags aren't being set unless the user clicks on the section.
I'm attaching a sample script that demonstrates this behavior
any help is appreciated.
-Tim
zimsms
17th May 2004 18:02 UTC
You forgot to include the "StartRadioButtons" Macro....
Is it similar to the problem I was having?
Odd section selection behaviour?
treehousetim
17th May 2004 19:05 UTC
If you look at the sample.nsi file I attached, I actually do have the start macro.
No I don't think this is related to the problem you were having.
-Tim
treehousetim
20th May 2004 16:13 UTC
does anyone else have any thoughts on this issue?
This is something that would be very helpful to have resolved.
My goal is to be able to store the name of a section in the registry, then use that to pre-select a section in the installer.
As it stands now, if I pre-select the section other sections can be selected without the pre-selection being unselected.
thanks,
-Tim
Joost Verburg
20th May 2004 18:26 UTC
Please check one-section.nsi. You need a variable to hold the current section. There is also no need to unselect on run-time.