从注册表中删除程序-----------转载于 http://bbs.krshadow.com/thread-54432-1-1.html
来源:互联网 发布:linux系统启动自检 编辑:程序博客网 时间:2024/04/27 06:56
有时候我们安装在 Windows 系统中的应用程序因为出错而无法卸载,需要我们手动将其删除,应该如何做呢?此时我们应该先从注册表中将应用程序的注册信息删除,然后再从资源管理器中手动删除应用程序的安装文件夹。那么,这个注册表项是哪里呢?可能不少人都知道,是 HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows/CurrentVersion/Uninstall。
但是,当我们把 HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows/CurrentVersion/Uninstall 中的所有注册表项都浏览过一遍后,却发现在控制面板中的“添加删除程序”列表中的应用程序好像并没有全部显示在这里,例如我们常用的 Office 系列就找不到相应的注册表项。这是怎么回事呢?
原来,除了 HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows/CurrentVersion/Uninstall 之外,还有其它两个注册表项用来保存已注册的应用程序信息,它们就是 HKEY_CLASSES_ROOT/Installer/Products 和 HKEY_CURRENT_USER/Software/Microsoft/Installer/Products。如果我们把这三个注册表项定义的全部应用程序都加在一起,就是我们在“添加删除程序”列表中看到的所有程序了。
HKEY_CLASSES_ROOT/Installer/Products 和 HKEY_CURRENT_USER/Software/Microsoft/Installer/Products 主要用来保存那些基于 Windows Installer 安装的应用程序,例如 Office;而 HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows/CurrentVersion/Uninstall 则主要用来保存那些基于其它安装程序的应用程序,例如常见的基于 InstallShield 安装的应用程序。因此,如果我们需要手动删除应用软件时,如果在 HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows/CurrentVersion/Uninstall 中找不到相应的注册表项,请务必再检查一下 HKEY_CLASSES_ROOT/Installer/Products 和 HKEY_CURRENT_USER/Software/Microsoft/Installer/Products。
- 从注册表中删除程序-----------转载于 http://bbs.krshadow.com/thread-54432-1-1.html
- http://bbs.blueidea.com/thread-2717864-1-1.html
- http://bbs.phppx.com/thread-29-1-1.html
- http://www.boobooke.com/bbs/thread-51022-1-1.html
- http://bbs.dospy.com/thread-545779-1-1.html
- http://bbs.dospy.com/thread-9113535-1-236-1.html
- http://bbs.blueidea.com/thread-3024031-1-1.html
- http://www.boobooke.com/bbs/thread-10284-1-1.html
- http://bbs.ithome.com/thread-542583-1-1.html
- http://bbs.mx3g.com/thread-447875-1-1.html
- http://bbs.ichunqiu.com/thread-10048-1-1.html
- http://bbs.itheima.com/thread-338469-1-1.html
- http://bbs.cmnxt.com/thread-5688-1-1.html
- http://bbs.51cto.com/thread-1094686-1.html
- http://www.linuxdiyf.com/bbs/thread-90655-1-8.html
- 遍历一个表单,读出表单中所有文本框(來源:http://bbs.51js.com/thread-30328-1-1.html)
- 近代数学七大难题及其解释http://bbs.kaoyan.com/thread-1545672-1-1.html
- Js的MessageBox http://bbs.blueidea.com/thread-2697900-1-1.html
- 青花瓷(java版)
- smart gwt 中文显示
- Ubuntu
- 一个清华学生留学香港后对人生的思考[转帖]
- hdu 1719
- 从注册表中删除程序-----------转载于 http://bbs.krshadow.com/thread-54432-1-1.html
- [short]POJ2000
- hdu 1720
- Ycnd 多语言版开发进度
- 什么是静态链接库,什么是动态链接库
- 关于SQL2005的IP地址连接问题
- 比较容易的windows7下硬盘安装 Ubuntu 9.10(非wubi)不需要其他工具
- c陷阱与缺陷 心得体会 1
- ASP.NET C# 限制显示字段长度的方法总结