次の方法で共有


Admin method of the Win32_Product class

The Admin WMI class method performs an administrative install of an associated Win32_Product using the installation package provided through the PackageLocation parameter, and any supplied command line options.

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 Admin(
  [in] string PackageLocation,
  [in] string TargetLocation,
  [in] string Options
);

Parameters

PackageLocation [in]

Path to the package to be administered.

TargetLocation [in]

Location for the administrative image to be installed.

Options [in]

Command line options for the upgrade. 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