About Windows Installer, the .NET Framework, and Visual Studio.
When attempting to uninstall a patch from the products listed in the Applies To section below, the following error may occur.
Internal Error 2771. M953297
The last part of the error message will vary with each patch, where the last 6 digits are the knowledge base article related to the patch.
One possible reason the error has occurred is because a system policy is set. You can temporarily disable this system policy and attempt to reinstall the patch.
Warning If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk.
You need to disable the EnforceUpgradeComponentRules Windows Installer system policy using the steps below.
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\Installer
EnforceUpgradeComponentRules
To optionally re-enable the EnforceUpgradeComponentRules system policy, follow the steps below.
Installer
Patches created for the products listed in the Applies To section above support the appearance of uninstall by installing an obsolescing patch and installing older baseline files. Back when these products were first released and entered the servicing lifecycle, Windows Installer did not support real patch uninstall. The only way to uninstall patches back then was to installing a patch that obsolesces (the predecessor to supersedence) another patch, optionally carrying a file payload to avoid prompts for source to replace older files. This is shown in the log fragment below where the "anti-patch" {D5C479FB-3609-4A1D-A106-830635BF50B0} obsolesces the related patch {AAC3F1F0-5649-4670-A698-F1523729F015}.
{D5C479FB-3609-4A1D-A106-830635BF50B0}
{AAC3F1F0-5649-4670-A698-F1523729F015}
MSI (c) (14:DC) [02:44:31:310]: Final Patch Application Order: MSI (c) (14:DC) [02:44:31:310]: {411EDCF7-755D-414E-A74B-3DCD6583F589} - MSI (c) (14:DC) [02:44:31:310]: {D5C479FB-3609-4A1D-A106-830635BF50B0} - D:\Users\Test\AppData\Local\Temp\MSPE928.tmp MSI (c) (14:DC) [02:44:31:310]: Other Patches: MSI (c) (14:DC) [02:44:31:310]: Obsolete: {AAC3F1F0-5649-4670-A698-F1523729F015} -
So because another patch is being installed, it cannot remove components from an existing feature. When the EnforceUpgradeComponentRules Windows Installer system policy is set, the installation will fail as shown below.
MSI (s) (EC:C8) [02:44:34:835]: Machine policy value 'EnforceUpgradeComponentRules' is 1 MSI (s) (EC:C8) [02:44:34:835]: SELMGR: Component 'DDPatch.UpdateGac' is registered to feature 'M953297', but is not present in the FeatureComponents table. Removal of components from a feature is not supported! MSI (s) (EC:C8) [02:44:34:835]: Note: 1: 2771 2: M953297
This does not otherwise pose a problem because the patch is being uninstalled and the feature affected is specific only to that patch. And if the patch is reinstalled, the feature is explicitly added locally by a custom action anyway since Windows Installer back then also did not automatically determine feature actions during patch installation.
hello im wondering on how to delete my windows\installer folder orphaned files cause its too hard too understand and when i run MsiZap.exe its nsays its has an error.
so i need a simple way to dlete my old orphaned files in total it has more than 30 GB of files.
my pc is only 70GB so i really need help man
AZAP
danygo, it's rare that there are orphaned packages in the Installer cache. Most often there are patches that are superseded - registered to the product but not applied. If those are removed the affected products cannot be serviced, repaired, or even uninstalled.
msizap.exe G! usually will do the trick, but you need to tell me what the error reports exactly.
In my case, the EnforceUpgradeComponentRules is already set to zero and yet the error occurs.
Machine policy value 'EnforceUpgradeComponentRules' is 0
SELMGR: Component 'Registry_DMS.F2D586C6_754A_4AD8_93A4_8F22EF0C9D16' is registered to feature 'MgrWAC', but is not present in the FeatureComponents table. Removal of components from a feature is not supported!
MSI (s) (80:60) [12:57:45:290]: SELMGR: Removal of a component from a feature is not supported
Please suggest.
@Pranay, the effect will still happen. The policy - when set to 1 - just tells Windows Installer whether to actually err and terminate. The only way to avoid the issue is to not remove a component in a small update or minor upgrade.