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.


- 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

The RebootRequired and RebootInitiated properties should be tested after calling this method.
Win32 MSI API: MsiRemovePatches

Exception | Condition |
---|---|
InstallerException | There was an error removing the patches |