Archive: Starting with section unselected


Starting with section unselected
Hi all,

I try to make an installation kit which has to start with a section not selected. All I tried with SectionGetFlags/SectionSetFlags had no results. I can make it bold but I can't touch the selection state of the section.

Can anyone had the same problem ?

TIA.


If you are using 1.98 see http://nsis.sourceforge.net/archive/....php?pageid=59.
If you are using 2 see Examples\one-section.nsi.

You basically need to set the section flags in .onInit.


I think there is a bug in NSIS 2: The use of SectionSetFlags to select/unselect on init a section is override by SectionIn directive.
So I still not know how to use SectionSetFlags to unselect a section on init if I have several installation types. Without InstType is working well.


If you want to set the initial section selection when using Installation types put the default InstType first. If for some reason you prefer not to set the sections from .onSelChange when it is called for the first time.