cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
tomerdr
Level 6

Conditionally installing a feature,but still selected?!

I am trying to Conditionally installing a feature based on a value of a registry value.

Added search for a registry value,saved it in a custom property
and added this property to the feature condition,but still the feature is selected in the tree.

i also tried the example( AdminUser and Not AdminUser ) and got same result
the feature is always selected!

thanks in advance
Labels (1)
0 Kudos
(5) Replies
RobertDickau
Flexera Alumni

What did you set as the install level for the feature condition?
0 Kudos
tomerdr
Level 6

I set to 200 and the INSTALLLEVEL Property is set to 100
0 Kudos
RobertDickau
Flexera Alumni

Is this a Basic MSI project or an InstallScript MSI project? If the latter, perhaps call FeatureSelectItem in your script to control the selection? (Mentioned at the bottom of the "Conditionally Selecting Features" help topic.)
0 Kudos
tomerdr
Level 6

So the UI is not affected by the feature condition?!?!

I wanted to avoid this, any way i will give it a try, thanks.
0 Kudos
irenejia
Level 4

How did you set your feature condition? If the INSTALLEVEL property is set to 100, only the components with smaller install level numbers will be selected. so you should set your feature's install level as, say, 200, and in the condition, if the condition is true, the install level should be, say, 1. With this setting, it should work.
0 Kudos