cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Yuri_1
Level 3

How to access Fetaure Property <Required>

Hello,
I'd like to check for environmental variable during installation and depending on result make Feature either required or not. I could not find in documentation how to access that property.
Please advice.
Thank you,
Yuri
Labels (1)
0 Kudos
(1) Reply
Dan_Galender
Level 10

A feature's Required property is not something that can be set dynamically at runtime (without writing a custom action that modifies the in-memory copy of the MSI). Perhaps an acceptable approach would be to make the feature Not Visible, and put a condition on the feature that "selects" or "deselects" it to be installed based on the value of the environment variable.
0 Kudos