Archive: checkbox not enabled by default


checkbox not enabled by default
Based on the "one-section.nsi" example from NSIS20b0, I built the script below.
The problem is that I was expecting that two checkboxes are enabled by default (11 and 21), but in practice only one is active at wakeup. Except for the initialization step, the user selection works as expected.
I cannot imagine what the trouble is. By inverting the two main groups inside the functions, without changing the script syntax, the problem disappears.

Any clue what is wrong on my part ?
Thank you and apologize for the trouble caused by this relative long post.

Best wishes,
Cristi

[edited by kichik. please attach large scripts. attachment in my reply below :down:]


In line 53 you got a warning and you ignored it.

StrCpy$3$(sec21)

Should be:
StrCpy$3${sec21}


Originally posted by kichik
[...]
StrCpy $3 $(sec21)
Should be:
StrCpy $3 ${sec21}
Oh ... seems it's time to change my monitor. The curly bracket graphical details are almost invisible here with the plain text font in its normal size (IE). Until I changed the font size, I didn't understand a thing from your message. It also seems I have to use another font with my usual script editor.

Thank you very much.

[...] please attach large scripts [...]
Ahm, what are the rules here ? Starting from how many lines (approx.) should one consider a script to be included as attachment ?

Best wishes,
Cristi

No problem, glad I could help.

Well, there are no official form rules, but very long posts make it very hard to read the thread. I usually comment about scripts longer than about 20-30 lines.