Deployment Tools Foundation
RemovePatches Method (patches, productCode, commandLine)
Deployment Tools Foundation Namespaces ► Microsoft.Deployment.WindowsInstaller ► Installer ► RemovePatches(IList<(Of <<'(String>)>>), String, String)
Removes one or more patches from a single product. To remove a patch from
multiple products, RemovePatches must be called for each product.
Declaration Syntax
C# | Visual Basic | Visual C++ | F# |
public static void RemovePatches( IList<string> patches, string productCode, string commandLine )
Public Shared Sub RemovePatches ( patches As IList(Of String), productCode As String, commandLine As String )
public: static void RemovePatches( IList<String^>^ patches, String^ productCode, String^ commandLine )
static member RemovePatches : patches : IList<string> * productCode : string * commandLine : string -> unit
Parameters
- patches (IList<(Of <(<'String>)>)>)
- List of patches to remove. Each patch can be specified by the GUID of the patch or the full path to the patch package.
- productCode (String)
- The ProductCode (GUID) of the product from which the patches are removed. This parameter cannot be null.
- commandLine (String)
- optional command line property settings
Remarks
The RebootRequired and RebootInitiated properties should be tested after calling this method.
Win32 MSI API: MsiRemovePatches
Exceptions
Exception | Condition |
---|---|
InstallerException | There was an error removing the patches |
Assembly: Microsoft.Deployment.WindowsInstaller (Module: Microsoft.Deployment.WindowsInstaller.dll) Version: 3.0.0.0 (3.11.1.2318)