windows 安全更新和修补程序的注册表项位置

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/5102900/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-09 08:05:55  来源:igfitidea点击:

Registry key location for security update and Hotfixes

windowsregistryarp

提问by Devloper

In my application i want to query the Security update and Hotfixes on windows box. For this i have queried the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\UninstallEverything went well on the OS other than windows 2008 server and windows 7...

在我的应用程序中,我想查询 Windows 框上的安全更新和修补程序。为此,我查询了HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall除 Windows 2008 服务器和 Windows 7 以外的操作系统上的一切顺利...

When running appwiz.cplon Windows 2008 server machine it is showing the lot of Hotfixes and security updates but their is no entry for any of them in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall. It seems like windows has changed the registry location for windows 2008 server and Windows 7.

appwiz.cpl在 Windows 2008 服务器机器上运行时,它会显示大量修补程序和安全更新,但在HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall. Windows 似乎更改了 Windows 2008 服务器和 Windows 7 的注册表位置。

I need to query the details of the Security updates and Hotfixes.

我需要查询安全更新和修补程序的详细信息。

回答by 0xC0000022L

With Windows 7 they introduced patches that are being applied using .msu files (MSU == Microsoft System Update).

在 Windows 7 中,他们引入了使用 .msu 文件(MSU == Microsoft System Update)应用的补丁。

One way is to enumerate the keys on HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packagesand then check the (string) value InstallClientfor the "WindowsUpdateAgent".

一种方法是枚举密钥HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages,然后检查(字符串)值InstallClient"WindowsUpdateAgent"

You can apparently use the Windows Update Agent APIto read it independent of the registry location.

您显然可以使用Windows Update Agent API来独立于注册表位置读取它。

回答by IronRod

The best location I have found for Security and Hotfixes applied to the system is the WMI QFE object list (WMIC QFE GET). This has proven accurate on all 6.x and later OS (Vista, W2008, Win7). W2003 also provides QFE but the entries are duplicated in the standard uninstall list.

我发现应用到系统的安全和修补程序的最佳位置是 WMI QFE 对象列表 (WMIC QFE GET)。这在所有 6.x 和更高版本的操作系统(Vista、W2008、Win7)上都被证明是准确的。W2003 也提供 QFE,但条目在标准卸载列表中是重复的。