Skip to 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.0+41e11442b2ca93e444b60213b5ae99dcbab787d8

FeatureName Property {#featurename}

Gets the name of the feature.

Declaration

public string FeatureName { get; set; }

Parent Property {#parent}

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 {#state}

Gets the installed state of the feature.

Declaration

public InstallState State { get; set; }

Remarks

Win32 MSI API: MsiQueryFeatureState

Usage Property {#usage}

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