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

When is it safe to call MsiGetFeatureState,MsiGetComponentState?

When in installscript sequence can i call MsiGetComponentState?

Thanks in advance
Labels (1)
0 Kudos
(1) Reply
joshstechnij
Level 10 Flexeran
Level 10 Flexeran

If you are calling MsiGetComponentState from a custom action, it should be sequenced after CostFinalize. Any earlier and the component state will likely be invalid.

If this is an InstallScript MSI project, the feature functions (such as FeatureGetData or FeatureIsItemSelected) should be used in script events instead of MSI APIs.
0 Kudos