Installer. ConfigureFeature, méthode
La méthode ConfigureFeature de l’objet installer configure l’état installé d’une fonctionnalité de produit.
Syntaxe
Installer.ConfigureFeature(
Product,
Feature,
InstallState
)
Paramètres
-
Produit
-
Spécifie le code de produit du produit.
-
Fonctionnalité
-
Spécifie l’ID de fonctionnalité de la fonctionnalité à configurer.
-
InstallState
-
Spécifie l’état d’installation de la fonctionnalité. Ce paramètre doit avoir l’une des valeurs suivantes.
Valeur Signification - msiInstallStateAdvertised
La fonctionnalité est publiée - msiInstallStateLocal
La fonctionnalité est installée localement. - msiInstallStateAbsent
La fonctionnalité est désinstallée. - msiInstallStateSource
La fonctionnalité est installée pour s’exécuter à partir de la source. - msiInstallStateDefault
La fonctionnalité est installée à son emplacement par défaut.
Valeur de retour
Cette méthode ne retourne pas de valeur.
Spécifications
| Condition requise | Valeur |
|---|---|
| Version |
Windows Installer 5,0 sur Windows Server 2012, Windows 8, Windows Server 2008 R2 ou Windows 7. Windows Installer 4,0 ou Windows Installer 4,5 sur Windows Server 2008 ou Windows Vista. Windows Installer sur Windows Server 2003 ou Windows XP |
| DLL |
|
| IID |
IID _ IInstaller est défini en tant que 000C1090-0000-0000-C000-000000000046 |