Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Version History

Version 1 Current »

Syntax

$cs.MSI_GetPropertiesFromMSI(string msifile, Array property)

Parameters

msifile

MSI file to get properties from

property

Array of properties to retrieve

Example

$MsiProperties=$cs.MSI_GetPropertiesFromMSI('c:\windows\temp\pdfsam.msi',@("ProductVersion","UpgradeCode","ProductCode","ProductName","Manufacturer"))
if ($MsiProperties)
{
  [string]$global:Msiproductversion = $MsiProperties["ProductVersion"]
  [string]$global:Msiupgradecode = $MsiProperties["UpgradeCode"]
  [string]$global:Msiproductcode = $MsiProperties["ProductCode"]
  [string]$global:MsiProductName = $MsiProperties["ProductName"]
  [string]$global:MsiManufacturer = $MsiProperties["Manufacturer"]
}

returns Hashtable containing properties

  • No labels