Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   Set Checkbos state? (http://forums.winamp.com/showthread.php?t=300592)

wlmoate 3rd December 2008 10:04

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

Afrow UK 3rd December 2008 13:24

Read up on Section in the documentation. Namely the bit about /o

Stu

wlmoate 3rd December 2008 15:21

Thanks for the hint

Section /o :)


All times are GMT. The time now is 05:32.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.