PackageDeployment Module Help

Package Deployment Module

Test-InstallMode Cmdlet

Version 4.0.0.5

Test-InstallMode

Synopsis

Check for installation or execution mode

Syntax

Test-InstallMode [[-InstallMode] <String>] [<CommonParameters>]

Description

Checks the mode the current installation is executed with.
Installation mode: user portion or computer portion
Execution mode: repair, reinstallation, modification, update, uninstallation
Due to compatibility with older scripts, a check for reinstallation will also return "true" if the actual execution mode is modification or update.
In a script with more than one CheckInstallMode, make sure to check for modification or update before checking for reinstallation.

Parameters

-InstallMode <String>

InstallUserPart: Check for user portion.
InstallComputerPart: Check for computer portion.
Repair: Check for repair.
Reinstall: Check for reinstallation.
Modify: Check for modification
Update: Check for Update.
Uninstall: Check for uninstallation.

Required

False

Position

0

Accepts pipeline input

False

<CommonParameters>

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