How can I make a feature on my InstallShield project to be installed only if a registry value contains a certain value? That value may be only \"YES\" or \"NO\".
I tried
INSTALLLEVEL: Quick review of the INSTALLLEVEL
concept courtesy of Chris Painter: Set sub-features to not install by default. Essentially: there is a level value for every feature and an overall INSTALLLEVEL
for the whole setup. Every feature at or below the INSTALLLEVEL
gets installed by default. I think the default INSTALLLEVEL
in Installshield is 100
(adjustable).
Installshield: Here is a feature condition sample with Installshield screenshots: Preselecting Features within an InstallShield Basic MSI Project. A special case is when you set the Level
to 0
- then you do not install the feature and also hide it from the setup GUI (see link below on why this is a very bad idea to set as default for a feature - I think it is OK to assign in a condition however, just don't make it default).
Suggestions: You could try something like this:
Option 1: Level: 0, Condition: ISVALUE=NO
(hide feature in GUI and do not install feature if ISVALUE=NO)
Option 2: Level: 101, Condition: ISVALUE=NO
(do not install feature if ISVALUE=NO)
For both options, remember to set the default feature level to "install by default". In other words at or below the setup's overall INSTALLLEVEL. For example 100
.
Some Links: