PackageDeployment Module Help

Package Deployment Module

Install-MsiFeature Cmdlet

Version 3.1.0.0

Install-MsiFeature

Synopsis

Configure MSI-based software

Syntax

Install-MsiFeature [-ProductCode] <String> [[-DisplayName] <String>] [[-HintPath] <String>] [-ContinueOnError] [-FeatureList] <String[]> [[-ResultVariable] <String>] [[-Context] <String>] [<CommonParameters>]

Description

Changes the installation state of features of an already installed 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

5

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

-DisplayName <String>

The name of the software is displayed in the next field.

Required

False

Position

1

Accepts pipeline input

False

-FeatureList <String[]>

List of the features with installation state.

Required

True

Position

3

Accepts pipeline input

False

-HintPath <String>

Path to the MSI-based software.

Required

False

Position

2

Accepts pipeline input

False

-ProductCode <String>

The MSI-based software is identified via the product code (MSI-GUID).

Required

True

Position

0

Accepts pipeline input

False

-ResultVariable <String>

A variable that collects the result.

Required

False

Position

4

Accepts pipeline input

False

<CommonParameters>

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