Get-Msi

Gets details about an MSI file.

Syntax

Get-Msi [-Path] <String[]> [<CommonParameters>]

Description

The Get-Msi function reads the installer properties from an MSI file and returns a Carbon.Msi.MsiInfo object representing an MSI's properties. Carbon.Msi.MsiInfo has properties for the following required MSI properties:

All other properties are accessible via the Properties property, which is a hashtable of property name/value pairs.

There is an additioanl Path property to capture the path of the MSI the properties came from.

Get-Msi was introduced in Carbon 2.0.

Related Commands

Parameters

Name Type Description Required? Pipeline Input Default Value
Path String[]

Path to the MSI file whose information to retrieve. Wildcards supported.

true true (ByValue, ByPropertyName)

Return Values

Carbon.Msi.MsiInfo.

EXAMPLE 1

Get-Msi -Path MyCool.msi

Demonstrates how to read the properties from MyCool.msi file.

EXAMPLE 2

Get-ChildItem *.msi -Recurse | Get-Msi

Demonstrates how you can pipe file info objects into Get-Msi.