News:

Happy New Year! Yes, the current one, not a previous one; this is a new post, we swear!

Main Menu

[win32] Detecting Installs and windows updates

Started by while1, March 16, 2010, 09:34:56 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

while1

Why are all the topics I can be helpful in get locked, damn.

\HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\
\HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update\
\HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update\Results
\HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update\Results\Detect
\HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update\Results\Download
\HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update\Results\Install

These registry keys have values that should give you adequate information to detect if an Windows Update is in progress, especially the latter three I listed.
I tend to edit my topics and replies frequently.

http://www.operationsmile.org

while1

Similarly, I'm assuming Windows Update uses the Windows Installer service to install the updates, thus you could always programmatically do it with something similar to this:  http://stackoverflow.com/questions/140820/how-do-i-test-if-another-installation-is-already-in-progress
I tend to edit my topics and replies frequently.

http://www.operationsmile.org

LordVader

Thanks man, that is what i was looking for exactly in initial posts before :)