Search code examples
wixdtfwix-extension

wix save feature state to property or get feature state in custom action


Can i save feature state and action into property value? Like <Property id="prop" Value=[!MyFeature]" />

If it's not possible, how i can get feauture state in custom action? Only using MsiGetFeautureState from msi.dll?


Solution

  • The state operators aren't formattable, so yes, you're expected to get state using the MSI API (or wrappers like FeatureInfo in DTF).