PackageDeployment Module Help

Package Deployment Module

Install-MsiProduct Cmdlet

Version 3.1.0.0

Install-MsiProduct

Synopsis

Install MSI-based software

Syntax

Install-MsiProduct [-Path] <String> [[-InstallationMode] <String>] [[-Target] <String>] [-ContinueOnError] [-SecureParameters] [-VerifyInstallation] [[-Options] <String[]>] [[-LogLevel] <String>] [[-ResultVariable] <String>] [[-Context] <String>] [<CommonParameters>]

Description

Installs an MSI-based software.

Parameters

-Context <String>

User: Execution under user account; logging in HKEY_CURRENT_USER, i.e. for the user.
UserPerService: User-related command, execution in Service context.
Computer: Execution under user account; logging in HKEY_CURRENT_MACHINE, i.e. for the computer.
ComputerPerService: Execution in service context; logging in HKEY_LOCAL_MACHINE, i.e. for the computer.

Required

False

Position

6

Accepts pipeline input

False

-ContinueOnError <SwitchParameter>

Continues script execution in spite of errors in the respective command

Required

False

Position

Named

Accepts pipeline input

False

-InstallationMode <String>

Advertise: The MSI Package is installed only for a specified user. Other users cannot work with the installed application.
AsProject: The MSI Package is installed only for a specified user. Other users cannot work with the installed application.

Required

False

Position

1

Accepts pipeline input

False

-LogLevel <String>

Please specify the detail level for logging. Possible values: NORMAL, DEBUG. Recommended: NORMAL.

Required

False

Position

4

Accepts pipeline input

False

-Options <String[]>

Transforms and Parameters.

Required

False

Position

3

Accepts pipeline input

False

-Path <String>

Path to the MSI-based software. You can use variables in the path specification.

Required

True

Position

0

Accepts pipeline input

False

-ResultVariable <String>

A variable that collects the result.

Required

False

Position

5

Accepts pipeline input

False

-SecureParameters <SwitchParameter>

The command is not written to the log file. Use this option if you do not want the installation parameters to be read out.

Required

False

Position

Named

Accepts pipeline input

False

-Target <String>

AllUsers: The MSI Package is installed only for a specified workstation. All users working on this specific workstation can use the application.
CurrentUser: The MSI Package is installed only for a specified user. Other users cannot work with the installed application.

Required

False

Position

2

Accepts pipeline input

False

-VerifyInstallation <SwitchParameter>

Performs additional, detailed tests to determine whether the MSI-based software has been correctly installed. Only this option ensures that the logging as a successful installation actually corresponds to the facts.
Without this option, only the status provided by MSI returns. Experience has shown that this status sometimes suggests a successful installation, while the installation actually was not successful.

Required

False

Position

Named

Accepts pipeline input

False

<CommonParameters>

For more information about common parameters, type "Get-Help about_CommonParameters".