< Back

Get-MSIProperty

Sat Jan 18, 2020 4:44 pm

NAME Get-MSIProperty



SYNOPSIS

Gets properties from a product or patch package.





SYNTAX

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

<String[]>] [<CommonParameters>]



Get-MSIProperty [[-Property] <String[]>] [-Path] <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 None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-PassThru [<SwitchParameter>]

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



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? 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 None

Accept pipeline input? False

Accept wildcard characters? 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 None

Accept pipeline input? True (ByPropertyName, ByValue)

Accept wildcard characters? true



-Property <String[]>

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



Required? false

Position? 0

Default value None

Accept pipeline input? False

Accept wildcard characters? 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 None

Accept pipeline input? False

Accept wildcard characters? true



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS

Microsoft.Tools.WindowsInstaller.Record





System.IO.FileInfo







NOTES









-------------------------- 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

Get-MSITable