Test-InstallMode
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. |
||||||
|
<CommonParameters> |
For more information about common parameters, type "Get-Help about_CommonParameters". |