Export (0) Print
Expand All

Uninstallable Patches

Whether a patch can be uninstalled depends upon how the patch was authored, the version of Windows Installer used to install the patch, and the changes made by the patch to the application. If a patch is not uninstallable, then the only way to remove the patch is to uninstall the entire application and reinstall without applying the patch being removed.

You can call for the uninstallation of patches applied with Windows Installer version 3.0 by using Command Line Options, the MsiRemovePatches function, or the RemovePatches method as described in the Uninstalling Patches section. The Windows Installer verifies that each of the patches listed for removal in the MSIPATCHREMOVE property is uninstallable. If the user does not have privileges to remove the patch, the patch is unknown for the product, patch policy prevents removal, or the patch was marked as not uninstallable, the installer returns an error indicating a failed installation transaction.

Windows Installer 2.0:  Not supported. Patches applied using a version of Windows Installer that is earlier than Windows Installer 3.0 are not uninstallable.

Patches that are Not Uninstallable

A patch (.msp file) applied to an installed application is not uninstallable in the following cases. The only method to remove a patch that is not uninstallable is to uninstall the patched application and then reinstall the application without reapplying the patch. In this case, you must reapply any patches that you do not wish to be removed from the application.

  • Patches applied using a version of Windows Installer that is less than Windows Installer 3.0 are not uninstallable.
  • Patches applied to applications installed on a computer that has had the DisablePatchUninstall policy set by an administrator are not uninstallable. When this machine policy has been set, no patches on the computer can be uninstalled, even by an administrator.
  • Patches that do not have a MsiPatchMetadata table in their database are not uninstallable.
  • Patches that do not include the following row in their MsiPatchMetadata table are not uninstallable. The patch is not uninstallable for other values of Company, Property, and Value.

    CompanyPropertyValue
    {Null}AllowRemoval1

     

  • The patch has been applied to an application installed in a context for which the user has insufficient privileges to uninstall patches. The words "Not Allowed" in the following table indicate that an administrator or non-administrator user cannot uninstall patches from patched applications installed in this context. The word "Allowed" in this table means that privileges do not prevent an administrator or non-administrator user from uninstalling patches, however for any of the other reasons discussed in this section, it still might not be possible to uninstall the patch.
    application Installation Context Administrator Uninstall of PatchNon-Administrator Uninstall of Patch
    Per-Machine AllowedGenerally Not Allowed

    The only exception is if the patch was applied using (LUA) patching. A patch marked as a LUA patch is uninstallable by either administrators or non-administrators. LUA patching is only available for packages installed per-machine from media and require special authoring.

    Per-User Non-Managed for Current User AllowedAllowed
    Per-User Non-Managed for Different User Not AllowedNot Allowed
    Per-User Managed for Current User AllowedNot Allowed
    Per-User Managed for Different User Not AllowedNot Allowed

     

  • A major upgrade applied by a patch is not uninstallable. Major Upgrades of an application should be performed by installing the upgraded application (.msi file) rather than a patch.
  • Patches applied to an administrative installation are not uninstallable. Patching administrative installations is not recommended. The current set of patches should be applied on the user's computer after the user installs the application from the administrative image. This can prevent the package code cached on the user's computer from becoming different than the package code on the administrative installation. If the package code cached on the user's computer becomes different from that on the administrative installation, reinstall the application from the administrative installation and then patch the client computer.
  • When a patch adds new content to any of the tables in the following list, Windows Installer marks the patch as being not uninstallable. An uninstallable patch can add new files, assemblies, registry entries, components, or features to an installation by adding new rows to database tables that are not included in this list.

Related topics

Patch Sequencing
Removing Patches
Uninstalling Patches
Patch Uninstall Custom Actions
MSIPATCHREMOVE
MsiEnumapplicationsEx
MsiGetPatchInfoEx
MsiRemovePatches

 

 

Community Additions

ADD
Show:
© 2014 Microsoft