Measure-MSIProduct

Synopsis

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

Syntax

Measure-MSIProduct [-Path] <string[]> [-Destination <string>] [-Properties <string[]>] [-Patch <string[]>] [-Transform <string[]>] [<CommonParameters>]

Measure-MSIProduct -LiteralPath <string[]> [-Destination <string>] [-Properties <string[]>] [-Patch <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|
Accepts pipeline input? false
Accept wildcard charactrs? 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|
Accepts pipeline input? true (ByPropertyName)
Accept wildcard charactrs? 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|
Accepts pipeline input? false
Accept wildcard charactrs? 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|
Accepts pipeline input? true (ByValue, ByPropertyName)
Accept wildcard charactrs? 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|
Accepts pipeline input? true (FromRemainingArguments)
Accept wildcard charactrs? false

-Transform <string[]>

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

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

Outputs

  • System.Management.Automation.PSDriveInfo: A PSDriveInfo object with MSISpaceRequired and MSITemporarySpaceRequired properties attached (measured in bytes).

Examples

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.

Last edited Dec 26, 2014 at 6:38 AM by heaths, version 1

Comments

No comments yet.