Archive: disable next button in components page


disable next button in components page
What I want is ""simple"" :):

I want to disable the Next button in the components page if no component is selected.

Is this possible?

thanks a lot.


Can any one please please tell me if it is not possible so I do not waste my time with the documentatino....

Thanks a lot.


Use .onSelChange and disable/enable the button in it.

Documentation is all but a waste of time.


Thanks kichik.

I understand your frustration. It is just very tough to go through a book while all you want is a straight forward simple information.

Thanks again.


on a similar - or rather the exact same topic.. is there a way to loop over the sections?

Getting all the sections, and looping over them, would be ideal. But even just having the section names as strings in a delimited string to loop over would be cleaner/easier than manually checking against each section.
Just to clarify, I've already for the delimited string (which I'd need to update as sections get added/removed/names mutated - but that's not a big deal); problems is I can't go
StrCpy $0 "SectionName" and use ${$0} to refer to the section?


There's code on this page to loop through sections:
http://nsis.sourceforge.net/Two_inst..._one_installer

-Stu


ahhh, so you can just address them as ints with the first section being 0. Cool :)

Unfortunately it actually didn't turn out as easy as I thought when wanting to loop over all sections.
First caveat: SectionGroupEnd 'sections' are selected somehow. odd.
Second caveat: Hidden sections are counted as well.

Workaround is a little IntOp, IntCmp and StrCmp messing, but looks like I've got it working now.