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

How can I detect what features are selected in Basic MSI Custom action

I have an install that has many features. Each feature has things that need to be done after the installation if they were installed. How can I check to see if a feature was selected to be installed.
MsiGetFeatureState will tell me if it is installed local or going to be installed local but I need something more like FeatureIsItemSelected.

So using installscript in a Basic MSI custome action how can I check to see if the feature is selected or not?

Thank you
Brandon
Labels (1)
0 Kudos
(1) Reply
MichaelU
Level 12 Flexeran
Level 12 Flexeran

You're headed down the right path. I think the mapping would be along the lines of ((is-installed and not-removing) or is-installing), where is-installed reflects the current state, and not-removing and is-installing each reflect the action state. The only other approach I know would be to use MsiEvaluateCondition on a condition string which checks the same thing using MSI's Conditional Statement Syntax.
0 Kudos