views:

623

answers:

2

Hi All,

I am working on windows 7 support. In my application I want to gather installed updates and patches. Currently I am gathering it from WIn32_QuickFixEngineering. But it is not giving information for InstalledSDate , Description.

I need to get this either from registry or API (C++ application). In other operating system like XP, 2k3 registry keys are- HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Hotfix HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates

But these are not present on windows 7.

Can any one give thought on this..

+1  A: 

Windows Update Agent API

Sheng Jiang 蒋晟
+1  A: 

I was also trying to figure out where the registry key for "Hotfix" had moved to.

I am setting up a debug symbol server on Windows 7. While I was following instructions from the book Debugging Applications for Microsoft ... Windows (by John Robbins), I was getting the error "Unable to enumerate the hot fix key" from a piece of vbscript code that Mr. Robbins recommends.

I realized that the vbs code is looking for the reg key SOFTWARE\Microsoft\Windows NT\CurrentVersion\HotFix, which is not present on Windows 7.

While searching for a substitute key (or any other alternative), I found some helpful information here: http://forums.cnet.com/5208-12546_102-0.html?threadID=327588

The command shown on that cnet forum was a viable substitute in my case:

wmic qfe list full

shown at the cmd.exe prompt:

C:\Users\All Users>wmic qfe list full
que que