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
- :
- Install feature based on Condition not working
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
Mar 04, 2008
10:52 AM
Install feature based on Condition not working
I am trying to create a basic MSI install that will install a main feature and a product specific feature. I have a custom dialog with 2 radio buttons on it that sets a property PRODUCT_TO_INSTALL. I have 3 features defined: Main (set to install level 1) and 2 others A and B both set to level 0. I then added a condition for feature A to set the install level to 1 when PRODUCT_TO_INSTALL = 1 likewise I set a condition on B when PRODUCT_TO_INSTALL = 2. Neither feature A or B are installed, Main always is. What am I missing? I have tried using different syntax for the condition ="1" etc... I can also see in the debug session where the value of the property is being set to either 1 or 2 depending on which radio button I select.
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Mar 05, 2008
06:13 AM
I added the condition to the component instead of the feature and that works but I would rather add it to the feature instead so I don't have to replicate the condition for every component. Ideas?:confused: