Installer.UseFeature Method

Windows Installer

Installer.UseFeature Method

The UseFeature method of the Installer object increments the usage count for a particular feature and returns the installation state for that feature. This method should be used to indicate an application's intent to use a feature.

Syntax

Script
UseFeature(
  Product,
  Feature,
  InstallMode
)

Parameters

Product

Specifies the product code of the product.

Feature

Identifies the feature to be used.

InstallMode

This parameter must be msiInstallModeNoDetection.

Return Value

This method does not return a value.

Remarks

The UseFeature method should only be used on features known to be published. The application should determine the status of the feature by calling either the FeatureState property or Features property or their API equivalents.

Requirements

VersionWindows Installer 5.0 on Windows Server 2008 R2 or Windows 7. Windows Installer 4.0 or Windows Installer 4.5 on Windows Server 2008 or Windows Vista. Windows Installer on Windows Server 2003, Windows XP, and Windows 2000
DLLMsi.dll
IIDIID_IInstaller is defined as 000C1090-0000-0000-C000-000000000046

See Also

MsiUseFeatureEx

Send comments about this topic to Microsoft

Build date: 8/13/2009

© 2009 Microsoft Corporation. All rights reserved.