Share via


Reinstall method of the Win32_SoftwareFeature class

The Reinstall WMI class method reinstalls the associated instance of Win32_SoftwareFeature using the specified reinstallation mode.

Note

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

Syntax

uint32 Reinstall(
  [in] uint16 ReinstallMode
);

Parameters

ReinstallMode [in]

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_SoftwareFeature