Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 8th January 2002, 20:08   #1
myndblur
Junior Member
 
Join Date: Jan 2002
Posts: 10
Choosing Sections

Is there a way to make it so the user can only choose one section to install. In other words, I want them to make a choice, but only one.
myndblur is offline   Reply With Quote
Old 9th January 2002, 02:23   #2
Schultz
Member
 
Join Date: Oct 2001
Posts: 71
use the InstType /NOCUSTOM which don't allow users to do custom Install types and then have a InstType for each one..
Schultz is offline   Reply With Quote
Old 9th January 2002, 04:34   #3
nIRV
Senior Member
 
Join Date: Dec 2000
Posts: 156
no what he means is can the user select only ONE section from a list of sections... but I can't answer that question
nIRV is offline   Reply With Quote
Old 9th January 2002, 07:22   #4
Schultz
Member
 
Join Date: Oct 2001
Posts: 71
Yes i know what he means.. And doing what i said will give the same result.. Removing the Custom makes it so the user can only select what you have setup in the InstType
So do an example like this
code:

Outfile test.exe
InstType "Test1"
InstType "Test2"
InstType "Test3"
InstType /NOCUSTOM

Section "App Name Since this Always ON"
;Do install initialise or what not (This just here for place holder since can't deactive it
SectionEnd

Section "Test1"
SectionIn 1
;Do what you need for this selection
SectionEnd

Section "Test2"
SectionIn 2
;Do what you need here..
SectionEnd

Section "Test3"
SectionIn 3
;And again what you need
SectionEnd



This is the only way to allow this.. They will only be able to choose the install types that you specified like he asked. And the first one you can use what base files you want to be installed and what extra ones you want.. Or in the case like i use it.. I just use it as a place holder in cause you are using nsis to install something that there is nothing that is always required.
Schultz is offline   Reply With Quote
Old 9th January 2002, 17:12   #5
myndblur
Junior Member
 
Join Date: Jan 2002
Posts: 10
Thank you..that pretty much did what I wanted.
myndblur is offline   Reply With Quote
Reply
Go Back   Winamp 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