wix - Why is MsiGetFeatureState() returning INSTALLSTATE_ADVERTISED for my un-advertisible feature? -
i've got msi built in wix defined below:
<feature id="core" display="0" absent="disallow" configurabledirectory="installdir" allowadvertise="no" level="1">...</feature>
i have 'commit' custom action loops through features of msi , determines install-state. log file shows "core" feature installed 'local', msigetfeaturestate returns installstate_advertised. thought impossible given set:
allowadvertise="no"
fwiw, msigetfeaturestate correctly returns installstate_local other installed features , installstate_absent other not-installed features.
edit more info:
- this occurs during fresh install.
- i not set advertise property (i still don't understand it's for)
- the "core" feature is parent feature children have wix attribute installdefault="followparent".
- the "core" feature (as children) have components attached them.
- all child features marked installstate_advertised well.
- i have commit custom action (scheduled before installfinalize) queries installed feature states ([productcode] passed in via customactiondata). assumed commit action right choice since msi officially installed point.
allowadvertise="no"
turns msidbfeatureattributesdisallowadvertise
in feature
table, says:
note bit works features listed advertise property.
iow, if became advertised other reason, bit won't stop that.
Comments
Post a Comment