cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
trevrobwhite
Level 4

Check Feature State in Basic MSI using InstallScript

Does anyone know if it is possible to check the pending feature state of a feature inside InstallScript within a Basic MSI product. Basically I want to check if the feature is selected for installation and to only run though a if loop if it is. I cannot run the script based on the state however as the script it iterating through a table and each record wants to check different feature.

It's a shame the FeatureIsItemSelected doesn't work.
Labels (1)
0 Kudos
(2) Replies
RobertDickau
Flexera Alumni

If nothing else, does something like MsiEvaluateCondition(hMSI, "&FeatureName=3") work?
0 Kudos
trevrobwhite
Level 4

That's even better, now I can use any condition in my custom table, didn't spot that one in the help.

Rob, Your an absolute star as always. Thanks. 🙂
0 Kudos