This project is read-only.

Install-MSIProduct

Synopsis

Installs or modifies a product package.

Syntax

Install-MSIProduct [-Path] <string[]> [-Destination <string>] [-PassThru] [-Log <string>] [-Properties <string[]>] [-Chain] [-Force] [<CommonParameters>]

Install-MSIProduct -Product <ProductInstallation[]> [-PassThru] [-Log <string>] [-Properties <string[]>] [-Chain] [-Force] [<CommonParameters>]

Install-MSIProduct -LiteralPath <string[]> [-Destination <string>] [-PassThru] [-Log <string>] [-Properties <string[]>] [-Chain] [-Force] [<CommonParameters>]

Install-MSIProduct -ProductCode <string[]> [-PassThru] [-Log <string>] [-Properties <string[]>] [-Chain] [-Force] [<CommonParameters>]

Description

Installs a product package or adds features to existing products.

Ultimately, this cmdlet can install, modify, repair, and even uninstall a product package or install patches but specialized cmdlets have been added for those tasks.

Progress, warnings, and errors during the install are sent through the pipeline making this command fully integrated.

Parameters

-Chain <SwitchParameter>

Whether to install all packages together.

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

-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? true (ByPropertyName)
Accept wildcard charactrs? false

-Force <SwitchParameter>

Whether to suppress all prompts.

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

-LiteralPath <string[]>

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

-Log <String>

The path to the log file. This use the file name as the base name and will append timestamp and product-specific information.

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

-PassThru <SwitchParameter>

Whether to pass the newly installed product information after installation to the pipeline.

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

-Path <string[]>

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

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

-Product <Microsoft.Deployment.WindowsInstaller.ProductInstallation[]>

An existing product to modify.

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

-ProductCode <string[]>

The ProductCode of an existing product to modify.

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

-Properties <string[]>

Additional property=value pairs to pass during install.

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

Inputs

  • Microsoft.Deployment.WindowsInstaller.ProductInstallation: An existing product to modify.

Outputs

  • Microsoft.Deployment.WindowsInstaller.ProductInstallation: Information for the newly installed or modified product.

Examples

Example 1

install-msiproduct .\example.msi NOBLOCK=1

Installs the example.msi product package passing the ficticious NOBLOCK=1 property.

Example 2

get-msiproductinfo -name TEST | install-msiproduct ADDLOCAL=Addin -log $env:TEMP\install.log

Modifies the existing product with ProductName TEST to add the "Addin" feature locally and log to the TEMP directory.

Related Links


Last edited Jun 11, 2013 at 10:41 AM by heaths, version 2

Comments

No comments yet.