Partager via


Configure method of the Win32_SoftwareFeature class

The Configure WMI class method configures the associated instance of Win32_SoftwareFeature to the specified install state.

Note

For more information about support or requirements for installation on a specific operating system, see Operating System Availability of WMI Components.

This topic uses Managed Object Format (MOF) syntax. For more information about using this method, see Calling a Method.

Syntax

uint32 Configure(
   uint16 InstallState
);

Parameters

InstallState

Installation state. Can be any of the following values.

Value Meaning
1
Default
2
Advertise
3
Local
4
Absent
5
Source

Return value

Return code Description
0
Successful completion.
2147549445
RPC Server Fault Error.

Requirements

Minimum supported client
Windows XP
Minimum supported server
Windows Server 2003
Namespace
Root\CIMV2
MOF
Msi.mof
DLL
Msiprov.dll

See also

Installed Applications Classes

Win32_SoftwareFeature