Archive: Dynamically including/excluding sections


Dynamically including/excluding sections
I would like to be able to completely hide a section and have it not presented in the components page. Whether or not this section should be made available is based on the current registry settings. Therefore, the script can determine before the components page is called whether this section should be available.

I see that it's possible to make the section unselected and read only. But, instead of showing an option that the user can not activate, I'd rather have it not appear at all.

Is this possible? If so, how would I remove (or add) an entire section from the components page?

Thanks in advance.


Change the section text to "" with SectionSetText to hide it.

-Stu


Duh. Nothing like overthinking a problem until you can't see the obvious!

Thanks!


Really the expected behaviour here is that the section still appeared but had no text, but NSIS somehow interprets "" as "hide that damn thing". Maybe SectionShow [0|1] would be better, that way you don't need to keep the section text around in a !define.