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

Dev*_*per 10 windows registry arp

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

appwiz.cpl在Windows 2008服务器计算机上运行时,它显示了大量的修补程序和安全更新,但它们中没有任何条目HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall.看起来Windows已经改变了Windows 2008服务器和Windows 7的注册表位置.

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

0xC*_*22L 14

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

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

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