Uninstall-MSIPatch

Synopsis

Installs a patch package or packages for all or only specified products.

Syntax

Uninstall-MSIPatch [-Path] <string[]> [-ProductCode <string[]>] [-UserContext <UserContexts>] [-UserSid <string>] [-Log <string>] [-Properties <string[]>] [-Chain] [-Force] [<CommonParameters>]

Uninstall-MSIPatch -Patch <PatchInstallation[]> [-ProductCode <string[]>] [-UserContext <UserContexts>] [-UserSid <string>] [-Log <string>] [-Properties <string[]>] [-Chain] [-Force] [<CommonParameters>]

Uninstall-MSIPatch -LiteralPath <string[]> [-ProductCode <string[]>] [-UserContext <UserContexts>] [-UserSid <string>] [-Log <string>] [-Properties <string[]>] [-Chain] [-Force] [<CommonParameters>]

Description

Uninstalls one or more packages from all products which they're applied or only from the specified set of products based on their ProductCode.

Progress, warnings, and errors during the install are sent through the pipeline making this command fully integrated.

Parameters

-Chain <SwitchParameter>

Whether to install all packages together. If elevated, a single restore point is created for all packages in the chain.

Required? false
Position named
Default value|
Accepts pipeline input? false
Accept wildcard charactrs? false

-Force <SwitchParameter>

Whether to suppress all prompts.

Required? false
Position named
Default value|
Accepts pipeline input? false
Accept wildcard charactrs? false

-LiteralPath <string[]>

The path to a patch package to uninstall. The value of -LiteralPath is used exactly as typed. No characters are interpreted as wildcards.

Required? true
Position named
Default value|
Accepts pipeline input? true (ByPropertyName)
Accept wildcard charactrs? false

-Log <String>

The path to the log file. This use the file name as the base name and will append timestamp and product-specific information.

Required? false
Position named
Default value|
Accepts pipeline input? false
Accept wildcard charactrs? false

-Patch <Microsoft.Deployment.WindowsInstaller.PatchInstallation[]>

Information about a patch or patches to uninstall.

Required? true
Position named
Default value|
Accepts pipeline input? true (ByValue)
Accept wildcard charactrs? false

-Path <string[]>

The path to a patch package to uninstall. Wildcards are permitted. You can specify * in any part of the path to select all matching files.

Required? true
Position 0
Default value|
Accepts pipeline input? true (ByValue, ByPropertyName)
Accept wildcard charactrs? true

-ProductCode <string[]>

The ProductCode or ProductCodes from which patches are removed.

Required? false
Position named
Default value|
Accepts pipeline input? true (ByPropertyName)
Accept wildcard charactrs? false

-Properties <string[]>

Additional property=value pairs to pass during uninstall.

Required? false
Position named
Default value|
Accepts pipeline input? true (FromRemainingArguments)
Accept wildcard charactrs? false

-UserContext <Microsoft.Deployment.WindowsInstaller.UserContexts>

The user context for the product listed in the ProductCode parameter.

Required? false
Position named
Default value Machine
Accepts pipeline input? true (ByPropertyName)
Accept wildcard charactrs? false

-UserSid <String>

The user security identifier for product listed in the ProductCode parameter.

Required? false
Position named
Default value|
Accepts pipeline input? true (ByPropertyName)
Accept wildcard charactrs? false

Examples

Example 1

get-msiproductifo -name TEST | get-msipatchinfo | uninstall-msipatch -log $env:TEMP\unpatch.log
Uninstalls all patches applied to the product with ProductName TEST and logs to the TEMP directory.

Related Links


Last edited Dec 26, 2014 at 6:40 AM by heaths, version 1

Comments

No comments yet.