Reinstall method of the Win32_Product class

Using the specified reinstallation mode, the Reinstall WMI class method reinstalls 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

uint32 Reinstall(
  [in] uint32 ReinstallMode
);

Parameters

ReinstallMode [in]

The reinstallation mode. Can be one of the following values.

Value Meaning
1
FileMissing
2
FileOlderVersion
3
FileEqualVersion
4
FileExact
5
FileVerify
6
FileReplace
7
UserData
8
MachineData
9
Shortcut
10
Package

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