Skip to content

FeatureInstallation Class

Represents an instance of a feature of an installed product.

PropertyDescription
FeatureNameGets the name of the feature.
ParentGets the parent of the feature, or null if the feature has no parent (it is a root feature).
StateGets the installed state of the feature.
UsageGets the usage metrics for the feature.
WixToolset.Dtf.WindowsInstaller.dll version 5.0.0+41e11442b2ca93e444b60213b5ae99dcbab787d8

Gets the name of the feature.

public string FeatureName { get; set; }

Gets the parent of the feature, or null if the feature has no parent (it is a root feature).

public FeatureInstallation Parent { get; set; }

Invocation of this property may be slightly costly for products with many features, because it involves an enumeration of all the features in the product.

Gets the installed state of the feature.

public InstallState State { get; set; }

Win32 MSI API: MsiQueryFeatureState

Gets the usage metrics for the feature.

public FeatureInstallation+UsageData Usage { get; set; }

If no usage metrics are recorded, the «see P:WixToolset.Dtf.WindowsInstaller.FeatureInstallation.UsageData.UseCount» value is 0. Win32 MSI API: MsiGetFeatureUsage