|
|
#1 |
|
Junior Member
Join Date: Dec 2008
Posts: 4
|
Hello all
I have started to use Nsis for the first time and got most of it to do what I require. However I have 2 sections that the user can choose or not as the case may be to install. THe checkboxes are checked by default but I want them to be unchecked. Here is a sample of the code. ; Optional section (can be disabled by the user) Section "Java for 2000/XP ONLY" setOutPath $INSTDIR # define what to install and place it in the output path ExecWait '"$INSTDIR\jre6.exe"' Delete $INSTDIR\jre6.exe SectionEnd ;-------------------------------------------------- ; Optional section (can be disabled by the user) Section "Java for 98 ONLY" ExecWait '"$INSTDIR\jre15.exe"' Delete $INSTDIR\jre15.exe SectionEnd Thanks Wayne |
|
|
|
|
|
#2 |
|
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
Read up on Section in the documentation. Namely the bit about /o
Stu |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Dec 2008
Posts: 4
|
Thanks for the hint
Section /o
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|