有时,即使您卸载了某个程序,其条目仍会列在“控制面板(Control Panel)”中当前安装的程序下的“添加或删除程序(Add or Remove Programs)”或“程序和功能( Programs and Features)”列表中。
这通常是由于编写不当的程序没有正确卸载自身造成的。该条目不会从注册表中删除,因此仍保留(registry and therefore remains)在列表中。如果您再次尝试卸载它,您很可能只会收到一条错误消息(error message)。
较新(Newer)版本的Windows会检测到这个问题,并会询问您是否要删除该条目,这很好。但是,如果您仍在运行Windows 7或Vista 或 XP(Vista or XP),您仍然会遇到此问题。
删除卡住的程序 - 注册表
幸运的是,有一种简单的方法可以手动从列表中删除这些卡住的条目。它需要一些注册表编辑(registry editing),所以一定要先备份你的注册表,以防你搞砸了。
要打开注册表,请单击开始并(Start and type)输入regedit。现在导航到以下注册表项(registry key)并展开它。
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall
您会看到列出了很多条目,其中一些具有友好的名称,而另一些则具有很长的标识符。
您只需单击它并在右侧查找DisplayName即可轻松识别具有长标识符的程序。(DisplayName)在上面的示例中,您可以看到其中一个用于名为VMware Tools的程序。
找到卡在程序列表(program list)中的程序,然后在左侧菜单中右键单击它并选择Delete。
现在您可能想知道为什么您在程序和功能(Programs and Features)下列出的所有程序都没有显示在此注册表项(registry key)下?原因是您可能在 64 位版本的Windows上安装了 32 位程序。
对于所有这些程序,您需要导航到以下注册表项,您可能会在其中找到更多条目:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\
例如,在这里,您将找到Java的所有条目(如果您已安装)。如果您安装了 32 位版本,您还会找到一堆Microsoft Office条目。(Microsoft Office)同样(Again),只需右键单击该条目并选择删除(Delete)即可将其删除。
最后,如果程序是通过 .MSI 包安装的,在企业环境中可能就是这种情况,您还应该检查此注册表项(registry key):
HKEY_CLASSES_ROOT\Installer\Products
您需要重新启动计算机,然后在控制面板(Control Panel)中打开程序列表以查看更改。它应该希望消失。
微软修复解决方案
如果您不想自己弄乱注册表,Microsoft有一个免费的Fix It 工具可供您下载,该工具专门处理无法完全卸载的程序问题。
https://support.microsoft.com/en-us/mats/program_install_and_uninstall
该程序将在Windows XP、Vista、7 和 8.1 上运行。它不适用于Windows 10,但希望您永远不会在Windows 10上遇到此问题。
第三方工具
最后,还有另一种方法可以解决这个问题,那就是使用第三方工具。我最喜欢的用于清理注册表的程序之一是CCleaner,因为它使用起来非常安全。它实际上是我推荐用于修复Windows 注册表(Windows registry)问题的唯一程序。
希望(Hopefully)使用上述方法之一,您将能够清除任何拒绝消失的条目!如果您有任何问题,请随时发表评论。享受!
Remove Stuck Entries from Programs and Features
Sometimes even after yоu’ve uninstalled a program, its entry will remain listed in thе Add or Remove Programs or Programs and Features list under currently installed programs in the Control Panel.
This is usually caused by a badly written program that doesn’t properly uninstall itself. The entry is not removed from the registry and therefore remains in the list. If you try to uninstall it again, you’ll most likely just get an error message.
Newer versions of Windows will detect this problem and actually ask you if you want to remove the entry, which is nice. However, if you’re still running Windows 7 or Vista or XP, you’ll still run into this problem.
Remove Stuck Programs – Registry
Luckily, there is an easy way to manually remove these stuck entries from the list. It requires some registry editing, so be sure to make a backup of your registry first in case you mess something up.
To open the registry, click on Start and type in regedit. Now navigate to the following registry key and expand it.
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall
You’ll see quite a few entries listed, some of which have friendly names and some that have a really long identifier.
You can easily identify the programs with the long identifier by just clicking on it and looking for DisplayName at the right. In the above example, you can see one of them is for a program called VMware Tools.
Find the program that is stuck in your program list and then right-click on it in the left-hand menu and choose Delete.
Now you might be wondering why all the programs you have listed under Programs and Features are not showing up under this registry key? The reason is because you might have 32-bit programs installed on a 64-bit version of Windows.
For all of these programs, you need to navigate to the following registry key where you will probably find a lot more entries:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\
Here, for example, you will find all the entries for Java, if you have that installed. You’ll also find a bunch of entries for Microsoft Office, if you have the 32-bit version installed. Again, just right-click on the entry and choose Delete to remove it.
Lastly, if the program was installed via a .MSI package, which might be the case in corporate environments, you also should check this registry key:
HKEY_CLASSES_ROOT\Installer\Products
You’ll need to restart your computer and then open up the list of programs in Control Panel to see the changes. It should hopefully be gone.
Microsoft Fix It Solution
If you don’t want to mess around with the registry yourself, Microsoft has a free Fix It tool you can download that specifically deals with this issue of programs that cannot be completely uninstalled.
https://support.microsoft.com/en-us/mats/program_install_and_uninstall
The program will run on Windows XP, Vista, 7 and 8.1. It does not work on Windows 10, but hopefully you should never have this issue on Windows 10.
Third-Party Tools
Finally, there is one other way to go about fixing this problem and that is using third-party tools. One of my favorite programs for cleaning up the registry is CCleaner because it’s super safe to use. It’s actually the only program I recommend for fixing problems in the Windows registry.
Hopefully, using one of the methods above, you will be able to clear out any entries that were refusing to go away! If you have any questions, feel free to comment. Enjoy!