rizzi
12th April 2001 18:46 UTC
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
rm'
17th April 2001 06:40 UTC
?
Shouldn't what you have work anyway?
rizzi
18th April 2001 18:30 UTC
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
18th April 2001 22:56 UTC
I just noticed that rev 1.2g has
* Added /NOCUSTOM switch for InstType
Cool!
Thanks Jason, et al.
mike