Gets details about an MSI file.
Get-Msi [-Path] <String[]> [<CommonParameters>]
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.
| 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) |
Carbon.Msi.MsiInfo.
Get-Msi -Path MyCool.msi
Demonstrates how to read the properties from MyCool.msi file.
Get-ChildItem *.msi -Recurse | Get-Msi
Demonstrates how you can pipe file info objects into Get-Msi.