How can I make a partition in NSIS not installed by default

I have an NSIS installer, here I have some components that the user can choose to install:

Section "Modules" SecModules SetOutPath "$INSTDIR" CreateDirectory $INSTDIR\modules ... SectionEnd Section "Freenode util" SecFreenode SetOutPath "$INSTDIR" CreateDirectory $INSTDIR\modules ... SectionEnd 

how can i make the second unchecked? By default, all of them are checked.

+6
source share
2 answers
 ; unselected because it is /o Section /o "Modules" SecModules SetOutPath "$INSTDIR" CreateDirectory $INSTDIR\modules ... SectionEnd ; selected Section "Freenode util" SecFreenode SetOutPath "$INSTDIR" CreateDirectory $INSTDIR\modules ... SectionEnd 
+14
source

In addition to Section / o , you can also use SectionIn to manage partitions by default. The latter may be useful if you have several partitions and you plan to offer several types of installation (see InstType ). Finally, you can control the state of a section based on logic using SectionSetFlags .

+4
source

All Articles