Archive: Sections


Sections
I would normally check Wiki before asking a question but I can't get it to load right now.

I was wondering how in NSIS to not let the user select a section (a mandatory install) and then have only one of the remaining two sections allowed. To be more specific, I want the program to have to be installed and then have the user choose a basic help files or more advanced help files but not both.


Use a bank section:

Section
...
SectionEnd

Or:
Section "-Hidden"
SectionEnd

-Stu


That removes the choice of the one I want them to have to install but is there a way where it can be shown with the check box greyedout?

Also is there a way to exclude one section if another is chosen, like with two seperate help sections?


Thanks for the help before. I figured out another way to do it by disabling Custom with the /NOCUSTOM option and using InstType and SectionIn