This project is read-only.

Get-MSIProperty

Synopsis

Gets properties from a product or patch package.

Syntax

Get-MSIProperty [[-Property] <string[]>] [-Path] <string[]> [-PassThru] [-Patch <string[]>] [-Transform <string[]>] [<CommonParameters>]

Get-MSIProperty [[-Property] <string[]>] -LiteralPath <string[]> [-PassThru] [-Patch <string[]>] [-Transform <string[]>] [<CommonParameters>]

Description

Selects all or matching properties from a product or patch package and either returns them to the pipeline or attaches them to a file object for a product or patch package if -PassThru is specified. When propertie are attached to a file object you can select them all using the "MSIProperties" property set.

Parameters

-LiteralPath <string[]>

The path to a product or patch package to open. The value of -LiteralPath is used exactly as typed. No characters are interpreted as wildcards.

Required? true
Position named
Default value|
Accepts pipeline input? true (ByPropertyName)
Accept wildcard charactrs? false

-PassThru <SwitchParameter>

Whether to pass the file object back to the pipeline with selected properties attached.

Required? false
Position named
Default value|
Accepts pipeline input? false
Accept wildcard charactrs? false

-Patch <string[]>

The path to a patch package to apply to the product package. Multiple patches are applied in authored sequence order.

Wildcards are permitted. You can specify * in any part of the path to select all matching files.

Required? false
Position named
Default value|
Accepts pipeline input? false
Accept wildcard charactrs? true

-Path <string[]>

The path to a product or patch package to open. Wildcards are permitted. You can specify * in any part of the path to select all matching files.

Required? true
Position 1
Default value|
Accepts pipeline input? true (ByValue, ByPropertyName)
Accept wildcard charactrs? true

-Property <string[]>

Optional list of property names to select. Wildcard are permitted.

Required? false
Position 0
Default value|
Accepts pipeline input? false
Accept wildcard charactrs? true

-Transform <string[]>

The path to a transform to apply to the product package.

Wildcards are permitted. You can specify * in any part of the path to select all matching files.

Required? false
Position named
Default value|
Accepts pipeline input? false
Accept wildcard charactrs? true

Outputs

  • Microsoft.Tools.WindowsInstaller.Record: The selected properties from the product or patch package.
  • System.IO.FileInfo: The original file object with selected properties attached and referenced by the "MSIProperties" property set.

Examples

Example 1

get-msiproperty Product*, UpgradeCode -path example.msi
Gets the identifying properties from the example.msi product package.

Example 2

get-childitem -filter *.msi | get-msiproperty -passthru | select Name, MSIProperties
Attaches all properties from each product package and shows them all along with the file name.

Related Links


Last edited Dec 26, 2014 at 7:31 AM by heaths, version 1

Comments

No comments yet.