Old 3rd December 2008, 10:04   #1
wlmoate
Junior Member
 
Join Date: Dec 2008
Posts: 4
Post Set Checkbos state?

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
wlmoate is offline   Reply With Quote
Old 3rd December 2008, 13:24   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
Read up on Section in the documentation. Namely the bit about /o

Stu
Afrow UK is offline   Reply With Quote
Old 3rd December 2008, 15:21   #3
wlmoate
Junior Member
 
Join Date: Dec 2008
Posts: 4
Thanks for the hint

Section /o
wlmoate is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump