卸载过程如何在 Windows 中工作? [英] How does uninstall process work in windows?

查看:32
本文介绍了卸载过程如何在 Windows 中工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我从控制面板卸载程序时,它如何知道机器上安装了哪些组件和功能?如果我有 .msi 文件,我可以使用 ORCA 来查看 Windows 安装程序数据库并查看包中的所有操作和组件.但是如果用户删除了 .msi 文件,那么 Windows 安装程序如何知道已安装的功能?

When I'm uninstalling a program from control panel how does it know what components and features are installed on the machine? If I have the .msi file I can use ORCA to take a look inside windows installer database and see all the actions and components in the package. But if user have deleted .msi file then how does windows installer knows about installed features?

推荐答案

在安装过程中,MSI 的副本(较小,因为它已剥离媒体)使用短哈希缓存在 C:\Windows\Installer 目录中文档名称.(例如: a60a04.msi )此外,当在安装过程中运行标准操作 PublishComponents、PublishFeatures 和 PublishProduct 时,会将一堆元数据写入 HKEY_CLASSES_ROOT\Installer(实际上是 HKLM 或 HKCU,取决于 ALLUSERS 属性).Windows Installer 使用所有这些信息来了解已安装的产品并了解如何执行修复、恢复、维护(添加/删除功能)和卸载.MSI API 也使用它在请求时提供信息.

During the installation, a copy of the MSI ( smaller because it's been stripped of media ) is cached in the C:\Windows\Installer directory using a short hash filename. (example: a60a04.msi ) Also when the standard actions PublishComponents, PublishFeatures and PublishProduct are run during the installation a bunch of meta is written to HKEY_CLASSES_ROOT\Installer ( actually HKLM or HKCU depending on the ALLUSERS property ). The Windows Installer uses all of this information to have an understanding of the installed products and to know how to perform repair, resilience, maintenance (add/remove features) and uninstalls. It's also used by the MSI API to provide information when requested.

这篇关于卸载过程如何在 Windows 中工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆