Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 12th April 2001, 17:46   #1
rizzi
Junior Member
 
Join Date: Apr 2001
Posts: 6
Is there a way to disable the Custom install type?

What I need is for each InstType to only be allowed to have specific sections. For example:

InstType "Typical"
InstType "Typical w/ Eval Server"
InstType "Typical w/ Stage Server"

Section "Kenamea Desktop Software"
SectionIn 1,2,3
...

Section "Eval Server Support"
SectionIn 2
...

Section "Stage Server Support"
SectionIn 3
...

Where "Typical" can only have
"Kenamea Desktop Software" selected,
OR
"Typical w/ Eval Server" can only have
"Kenamea Desktop Software" and "Eval Server Support" selected,
OR
"Typical w/ Stage Server" can only have
"Kenamea Desktop Software" and "Eval Server Support" selected.

thanks a lot,
mike rizzi
rizzi is offline   Reply With Quote
Old 17th April 2001, 05:40   #2
rm'
Banned
 
rm''s Avatar
 
Join Date: Jul 2000
Posts: 11,361
?

Shouldn't what you have work anyway?
rm' is offline   Reply With Quote
Old 18th April 2001, 17:30   #3
rizzi
Junior Member
 
Join Date: Apr 2001
Posts: 6
Sadly, no.

Ideally, I was looking for a way to *only* allow one of the Installation Types. In other words, disallow the user from selecting more than the sections associated with that InstType. In my case, I didn't want to allow the user to select both "Eval Server" and "Stage Server," it needed to be one or the other.

After looking at the source code, I couldn't find a way to disable the "Custom" InstType, so I created a workaround that involved inserting some custom C++ code into main.c of exehead and writing a conditional NSI file. Unfortunately, it isn't generic enough code to submit to Jason for possible inclusion in the main NSIS code path. I'll need to think of a better approach for that.

thanks,
mike rizzi
p.s. FYI, y'all can add Kenamea (www.kenamea.com) to your list of companies that is using NSIS.

rizzi is offline   Reply With Quote
Old 18th April 2001, 21:56   #4
rizzi
Junior Member
 
Join Date: Apr 2001
Posts: 6
I just noticed that rev 1.2g has
* Added /NOCUSTOM switch for InstType

Cool!

Thanks Jason, et al.

mike
rizzi 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