Muokkaa

Jaa


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

Installer.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

Requirement Value
Version
Windows Installer 5.0 on Windows Server 2012, Windows 8, 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 or Windows XP
DLL
Msi.dll
IID
IID_IInstaller is defined as 000C1090-0000-0000-C000-000000000046

See also

MsiUseFeatureEx