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 |
|
IID |
IID_IInstaller is defined as 000C1090-0000-0000-C000-000000000046 |
See also
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기