View Full Version : Install feature based on Condition not working

03-04-2008, 11:52 AM
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.

03-05-2008, 07: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: