Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Syntax

$cs.MSI_GetPropertiesFromMSI(string msifile, Array property)

Parameters

msifile

MSI file to get properties from

...

Array of properties to retrieve

Example

Code Block
languagepowershell
$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"]
}

...