Old 24th December 2003, 23:19   #1
digital ice
Junior Member
 
Join Date: Jul 2003
Location: Didn't I already answer this? On the moon far away from the Teletubbies!
Posts: 11
Send a message via AIM to digital ice
Section Default State

I want to be able to set the state of a section as default, like if I had a section that can possibly be installed, but HAS to be chosen to be installed, you could have something like 'state on'

does this kind of thing exist, or would you need to add it to the next version of NSIS?
digital ice is offline   Reply With Quote
Old 25th December 2003, 10:59   #2
vbgunz
Senior Member
 
Join Date: Jun 2003
Posts: 284
Send a message via AIM to vbgunz
Hello, if you're trying to make a component in the component section visible and required (meaning user cannot uncheck it). Simply add RO to SectionIn.

SectionIn RO ;(read only)

Good luck!
vbgunz is offline   Reply With Quote
Old 25th December 2003, 23:37   #3
digital ice
Junior Member
 
Join Date: Jul 2003
Location: Didn't I already answer this? On the moon far away from the Teletubbies!
Posts: 11
Send a message via AIM to digital ice
thats not the problem. sections, when you view them, are automatically checked. I want to keep sections from being checked automatically, which is to have their state as 0 (off) by default. It gets annoying cause I have some potentially dangerous operations that can be executed, and I don't need them executed unless the user absolutely wants them to be. I can't have any accidents.
digital ice is offline   Reply With Quote
Old 26th December 2003, 00:24   #4
vbgunz
Senior Member
 
Join Date: Jun 2003
Posts: 284
Send a message via AIM to vbgunz
Hello,

Ok at the top of your script you should have something which looks like this...

InstType "Full Installation"
InstType "Minimal Installation"
InstType "etc"

Depending on the exact order depends on what sections will be effected.

SectionIn 1 means the section will be included in a full
installation.

SectionIn 2 means the section will be included in a minimal installation.

SectionIn 3 means the section will be included in a etc installation.

So under every section you can have something like a combination of numbers

SectionIn 1 3 < full and minimal installation
SectionIn 2 3 < minimal and etc installation
SectionIn 3 < etc installation...

These are all applied to Sections...

Section "helmdeeps" SEC_HELMSDEEP
SectionIn 2 ; only apply this to a minimal installation
...
SectionEnd

Good luck!
vbgunz is offline   Reply With Quote
Old 26th December 2003, 11:18   #5
Comm@nder21
Major Dude
 
Join Date: Jul 2003
Location: germany, b-w
Posts: 734
Send a message via ICQ to Comm@nder21
i think, what u want to use is the '/o'-switch.
this code forces a section beeing unchecked by default:
code:
Section /o "section1" sec1
...
SectionEnd

Comm@nder21 is offline   Reply With Quote
Old 26th December 2003, 16:16   #6
digital ice
Junior Member
 
Join Date: Jul 2003
Location: Didn't I already answer this? On the moon far away from the Teletubbies!
Posts: 11
Send a message via AIM to digital ice
thanks! that O thing is just what I need!
digital ice is offline   Reply With Quote
Old 11th February 2004, 20:12   #7
rainmanp7
Member
 
Join Date: Jan 2004
Posts: 55
Yes this is how it works as a Example

;old Version -> ;Section "MySQL 4.0.17 (required)"
;to make it uncheckable -> ;SectionIn RO


;Working Unchecked State
;---This is what your looking for
Section /o "MySQL 4.0.17 (required)" sec1


SectionEnd
;---End of This is what your looking for


Example of the Not checkable
Section "MySQL 4.0.17 (required)"
SectionIn RO


SectionEnd
rainmanp7 is offline   Reply With Quote
Old 12th February 2004, 13:15   #8
Comm@nder21
Major Dude
 
Join Date: Jul 2003
Location: germany, b-w
Posts: 734
Send a message via ICQ to Comm@nder21
rainmanp7 ???
the last post before yours was at 26.11.2003
this topic is ended for nearly 3 months.
Comm@nder21 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