Configure method of the Win32_Product class

The Configure WMI class method configures the associated instance of Win32_Product to the specified install state and level.

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(
  [in] uint32       InstallState,
  [in] uint32       InstallLevel,
  [in] string Options
);

Parameters

InstallState [in]

Installation state. Can be one of the following values.

Value Meaning
1
Default
2
Local
3
Source

InstallLevel [in]

Installation level. Can be one of the following values.

Value Meaning
1
Default
2
Minimum
3
Maximum

Options [in]

The command line options for configure. These should be in the form of property**=**setting.

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_Product

WMI Tasks: Computer Software