Remove-MSISource

Synopsis

Removes a registered network source or URL from a product or patch.

Syntax

Remove-MSISource [-ProductCode] <string> -LiteralPath <string[]> [-PassThru] [-PatchCode <string>] [-UserSid <string>] [-UserContext <UserContexts>] [<CommonParameters>]

Remove-MSISource [-ProductCode] <string> [-Path] <string[]> [-PassThru] [-PatchCode <string>] [-UserSid <string>] [-UserContext <UserContexts>] [<CommonParameters>]

Description

Windows Installer products and patches can have zero or more registered locations that direct Windows Installer where to look for package source. This cmdlet will remove a location registered to a product or patch and optionally return the remaining locations through the pipeline.

Parameters

-LiteralPath <string[]>

The directory or URL to unregister. 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

-PassThru <SwitchParameter>

Whether to return the remaining registered source through the pipeline.

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

-PatchCode <String>

The patch code for a patch.

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

-Path <string[]>

The directory or URL to unregister. Wildcards are permitted. You can specify * in any part of the path to select all matching files.

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

-ProductCode <String>

The ProductCode for a product or applied patch.

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

-UserContext <Microsoft.Deployment.WindowsInstaller.UserContexts>

The user context for a product or patch.

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

-UserSid <String>

The user SID for a product or patch.

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

Outputs

  • Microsoft.Tools.WindowsInstaller.SourceInfo: Source information for an installed product.
  • Microsoft.Tools.WindowsInstaller.PatchSourceInfo: Source information for an applied patch.

Examples

Example 1

remove-msisource '{707ABAE4-4DC5-478C-9D36-7CC5C1A85A3C}' 'C:\Package Cache\'
Removes the C:\Package Cache source location from the specified product.

Related Links


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

Comments

No comments yet.