Uninstall Method of the Win32_Product Class

The Uninstall WMI class method uninstalls the associated instance of Win32_Product.

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

MOF
uint32 Uninstall();

Parameters

This method has no parameters.

Return Value

Returns one of the following values. For other integer values, see the error code documentation in the Windows Installer API.

Return codeDescription
0

Successful completion

2147549445

RPC Server Fault Error

 

Examples

For script code examples, see WMI Tasks for Scripts and Applications and the TechNet ScriptCenter Script Repository.

For C++ code examples, see WMI C++ Application Examples.

Requirements

Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
MOFMsi.mof
DLLMsiprov.dll
Namespace\root\cimv2

See Also

Installed Applications Classes
Win32_Product

Send comments about this topic to Microsoft

Build date: 11/3/2009

Tags :


Page view tracker