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 6.0.0+8c7432e50072e009353ea5f2c956ccf453476f71

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