PackageDeployment Module Help

Package Deployment Module

Repair-MsiProduct Cmdlet

Version 2.1.0.0

Repair-MsiProduct

Synopsis

Reinstall Or Repair MSI-Based Software

Syntax

Repair-MsiProduct [-ProductCode] <String> [[-DisplayName] <String>] [[-RepairOptionFlags] <String>] [-ContinueOnError] [[-UiLevelFlags] <String>] [[-AssistanceFlags] <String>] [[-ResultVariable] <String>] [[-Context] <String>] [<CommonParameters>]

Description

Repairs or reinstalls (portions) of an MSI-based software.

Parameters

-AssistanceFlags <String>

* Use NCP Settings (ICDB): Uses the settings of the switch Disable Windows Installer user interface. This setting is defined in the ICDB on ORG, Region and site level in the MSI Settings section: No uses the Basic level, Yes the Automatic level.
* Enable MSI logging: MSI-specific logging in debug (detailed) or standard mode.

Required

False

Position

4

Accepts pipeline input

False

-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

-DisplayName <String>

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

Required

False

Position

1

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

-RepairOptionFlags <String>

Options:
* Reinstall if file is missing
* Reinstall if file is missing or available only in an older version
* Reinstall if file is missing or available only in an older version or if it is identical
* Reinstall if file is missing or available in another version
* Verify check sums and reinstall if files are missing or corrupt
* Force reinstallation of files
* Rewrite registry entries (HKCU and HKU)
* Rewrite registry entries (HKLM and HKCR)
* Reinstall all shortcuts and icons
* Run from the source package and re-cache the local package.

Required

False

Position

2

Accepts pipeline input

False

-ResultVariable <String>

A variable that collects the result.

Required

False

Position

5

Accepts pipeline input

False

-UiLevelFlags <String>

Defines the display and the scope of the user interface for installing an MSI package.Use the following values to define the scope.
* All: User interface with wizards, dialogs, progress and errors.
* Reduced: User interface with suppressed wizards and dialog windows.
* Basic: Basic progress and error handling.
* Standard: The Installer selects an appropriate level of user interface.
* Automatic: The installation runs automatically in the background in 'silent' mode.
Options
* Show final dialog: In combination with a value specified above, the Installer displays a dialog at the end of a successful installation or if an error occurred.The dialog is not displayed when the user cancels the installation.
* Show progress only: In combination with the above 'basic' value, the Installer displays simple progress dialogs, but does not show dialog boxes or error messages.
* Hide Cancel button: In combination with the above 'basic' value, the Installer shows simple progress dialogs but it does not show dialog options for canceling the installation.This keeps a user from canceling the installation.
Please note that only some combinations of options and list values are useful.

Required

False

Position

3

Accepts pipeline input

False

<CommonParameters>

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