This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: Optional Prerequisites
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Nov 01, 2007
03:17 PM
Optional Prerequisites
InstallScript MSI
I've noticed that some redistributables are only available as "prerequisites". Is it possible to have a conditional prerequisite based on a user selection (feature)?
My real-world example is that our product needs a SQL Server to store data. The user has essentially 3 choices :
1. Use a previously installed database server on a remote computer.
2. Use a previously installed database server on the local computer.
3. Install Microsoft SQL 2005 Express.
I need to ask the user which option they'd like instead of assuming they'll need Microsoft SQL 2005 Express.
I'd like to leverage InstallShield's SQL 2005 Express prerequisite but I'm not certain if this is possible given my constraints. Is it possible and how could I accomplish this?
I've noticed that some redistributables are only available as "prerequisites". Is it possible to have a conditional prerequisite based on a user selection (feature)?
My real-world example is that our product needs a SQL Server to store data. The user has essentially 3 choices :
1. Use a previously installed database server on a remote computer.
2. Use a previously installed database server on the local computer.
3. Install Microsoft SQL 2005 Express.
I need to ask the user which option they'd like instead of assuming they'll need Microsoft SQL 2005 Express.
I'd like to leverage InstallShield's SQL 2005 Express prerequisite but I'm not certain if this is possible given my constraints. Is it possible and how could I accomplish this?
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Nov 02, 2007
10:48 AM
You cannot tie prerequisites to features. One approach might be to document the requirements, then only offer the options that are truly available at the time of installation. (I.e. mark the database prerequisite as optional, then detect its presence in the installer; only enable the local database option when it's present.)
Another approach might be to make some wrapper project (perhaps an InstallScript one) which can ask the user which they want, will install the database if relevant, then run the MSI (perhaps silently) by passing in the settings acquired in the wrapper project.
Another approach might be to make some wrapper project (perhaps an InstallScript one) which can ask the user which they want, will install the database if relevant, then run the MSI (perhaps silently) by passing in the settings acquired in the wrapper project.