Skip to main content

FeatureInstallation Class

Represents an instance of a feature of an installed product.

Properties

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.2+aa65968c419420d32e3e1b647aea0082f5ca5b78

FeatureName Property

Gets the name of the feature.

Declaration

public string FeatureName { get; set; } 

Parent Property

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

Declaration

public FeatureInstallation Parent { get; set; } 

Remarks

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.

State Property

Gets the installed state of the feature.

Declaration

public InstallState State { get; set; } 

Remarks

Win32 MSI API: MsiQueryFeatureState

Usage Property

Gets the usage metrics for the feature.

Declaration

public FeatureInstallation+UsageData Usage { get; set; } 

Remarks

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