I have a NSIS installer, here I have some components that 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 one unchecked? By default they all are checked
Nullsoft Scriptable Install System (NSIS) is a script-driven installer authoring tool for Microsoft Windows backed by Nullsoft, the creators of Winamp. NSIS is released under a combination of free software licenses, primarily the zlib license.
2.4 Compiler It reads your script, parses it and creates an installer for you. To compile you can right-click your . nsi file and select Compile NSIS Script. This will cause MakeNSISW, the NSIS Compiler Interface, to launch and call MakeNSIS to compile your script.
; 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
Apart from Section /o, you can also use SectionIn to control default sections. The latter might be useful if you have several sections and you plan to offer several installation types (see InstType). Lastly, you can control the state of a section based on logic, using SectionSetFlags.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With