- WMI Library -
WMI Libraly > Win32_Product Class

Win32_Product Class

Instances of this class represent products as they are installed by MSI. A product generally correlates to a single installation package.
Namespace value is root/CIMV2.
WMI Provider value is MSIProv.


Properties

  • AssignmentType
  • Assignment type of the product.

  • Caption
  • A short textual description (one-line string) for the Product.

  • Description
  • A textual description of the product.

  • HelpLink
  • The support link for the product.

  • HelpTelephone
  • The support telephone for the product.

  • IdentifyingNumber
  • Product identification such as a serial number on software, a die number on a hardware chip, or (for non-commercial Products) a project number.

  • InstallDate
  • The installation date. The InstallDate property has been deprecated in favor of the InstallDate2 property which is of type DateTime rather than String. New implementations should use the InstallDate2 property.

  • InstallDate2
  • The InstallDate2 property represents the installation date of the product.

  • InstallLocation
  • The location of the installed product.

  • InstallSource
  • The installation source directory of the product.

  • InstallState
  • The installed state of the product.

  • Language
  • The language of the product.

  • LocalPackage
  • The location of the locally cached package for this product.

  • Name
  • Commonly used product name.

  • PackageCache
  • The location of the locally cached package for this product.

  • PackageCode
  • The identifier for the package from which this product was installed.

  • PackageName
  • The original package name for the product.

  • ProductID
  • The product ID.

  • RegCompany
  • The company registered to use the product.

  • RegOwner
  • The owner registered to use the product.

  • SKUNumber
  • Product SKU (stock keeping unit) information.

  • Transforms
  • The transforms of the product.

  • URLInfoAbout
  • The URL information for the product.

  • URLUpdateInfo
  • The URL update information the product.

  • Vendor
  • The name of the Product's supplier, or entity selling the Product (the manufacturer, reseller, OEM, etc.). Corresponds to the Vendor property in the Product object in the DMTF Solution Exchange Standard.

  • Version
  • Product version information. Corresponds to the Version property in the product object in the DMTF Solution Exchange Standard.

  • WordCount
  • Summary information word count for the product


    Methods

  • Install
  • This method Will install an associated Win32_Product using the installation package provided through PackageLocation and any command line options that are supplied. The method can return the following values:
    0 - Success.
    2147549445 - RPC Server Fault Error.
    Other - For integer values other than those listed above, refer to the documentation on error codes returned by the Windows Installer API and the Win32 error codes.

  • Admin
  • This method will preform an administrative install of an associated Win32_Product using the installation package provided through PackageLocation and any command line options that are supplied. The method can return the following values:
    0 - Success.
    2147549445 - RPC Server Fault Error.
    Other - For integer values other than those listed above, refer to the documentation on error codes returned by the Windows Installer API and the Win32 error codes.

  • Advertise
  • This method will advertise an associated Win32_Product using the installation package provided through PackageLocation and any command line options that are supplied. The method can return the following values:
    0 - Success.
    2147549445 - RPC Server Fault Error.
    Other - For integer values other than those listed above, refer to the documentation on error codes returned by the Windows Installer API and the Win32 error codes.

  • Reinstall
  • This method will reinstall the associated instance of Win32_Product using the specified reinstallation mode. The method can return the following values:
    0 - Success.
    2147549445 - RPC Server Fault Error.
    Other - For integer values other than those listed above, refer to the documentation on error codes returned by the Windows Installer API and the Win32 error codes.

  • Upgrade
  • This method will upgrade the associated Win32_Product using the upgrade package provided through PackageLocation and any command line options that are supplied. The method can return the following values:
    0 - Success.
    2147549445 - RPC Server Fault Error.
    Other - For integer values other than those listed above, refer to the documentation on error codes returned by the Windows Installer API and the Win32 error codes.

  • Configure
  • This method will configure the associated instance of Win32_Product to the specified install state and level. The method can return the following values:
    0 - Success.
    2147549445 - RPC Server Fault Error.
    Other - For integer values other than those listed above, refer to the documentation on error codes returned by the Windows Installer API and the Win32 error codes.

  • Uninstall
  • This method will uninstall the associated instance of Win32_Product. The method can return the following values:
    0 - Success.
    2147549445 - RPC Server Fault Error.
    Other - For integer values other than those listed above, refer to the documentation on error codes returned by the Windows Installer API and the Win32 error codes.


    Example WQL

    SELECT * FROM Win32_Product
    About this site information

    This contents is created by WMI having class information.
    WMI Environment is Windows Server 2008 R2 Enterprise Edition.

    This link is Microsoft documents for "Managing Windows with WMI".
    That is VB(Visual Basic) scripting sample.
    This link is Microsoft documents for "Advanced Programming Topics in WMI .NET".
    That is VB.net(Visual Basic .net) scripting sample.

    - WMI Library -
    http://library.wmifun.net/

    WMI useful by VB,VB.Net,VC,VC.Net,VC#.Net,VBS(WSH),PowerShell for PC asset management, system monitoring and collecting hardware and software inventory.

    This website is created by Toh.
    Copyright(C) 1997-2016 WMI Fun !!. All rights reserved.
    ^ Go to the top...