< Back

Measure-MSIProduct

Sat Jan 18, 2020 4:45 pm

NAME Measure-MSIProduct



SYNOPSIS

Gets drive costs for components that would be installed to any drive.





SYNTAX

Measure-MSIProduct [-Destination <String>] -LiteralPath <String[]> [-Patch <String[]>] [-Properties <String[]>]

[-Transform <String[]>] [<CommonParameters>]



Measure-MSIProduct [-Path] <String[]> [-Destination <String>] [-Patch <String[]>] [-Properties <String[]>]

[-Transform <String[]>] [<CommonParameters>]





DESCRIPTION

You can use this command to get the costs for components that will be installed to any drive mounted to the

system. If multiple product packages are specified the total costs for all components in all specified products

are returned.





PARAMETERS

-Destination <String>

The target directory where the product should be installed.



Note that the product package must be authored to support installing to TARGETDIR.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-LiteralPath <String[]>

The path to a product package to measure. 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



-Patch <String[]>

The path to a patch package or packages to apply to the product package before measuring. Patches are applied

in sequence order.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Path <String[]>

The path to a product package to measure. 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? false



-Properties <String[]>

Additional properties to pass to the session.



Note that you can mark all features for installation using ADDLOCAL=ALL or set public directories using this

parameter.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Transform <String[]>

The path to a transform or transforms to apply to the product package before measuring.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



<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

System.Management.Automation.PSDriveInfo







NOTES









-------------------------- EXAMPLE 1 --------------------------



measure-msiproduct .\\example.msi -patch .\\example.msp -target X:\\Example



Gets the drive costs for example.msi with example.msp applied if installed to the X:\\Example directory.



RELATED LINKS