Clan x86

Technical (Development, Security, etc.) => General Programming => Topic started by: while1 on March 16, 2010, 09:34:56 PM

Title: [win32] Detecting Installs and windows updates
Post by: while1 on March 16, 2010, 09:34:56 PM
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.
Title: Re: [win32] Detecting Installs and windows updates
Post by: while1 on March 16, 2010, 09:59:31 PM
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
Title: Re: [win32] Detecting Installs and windows updates
Post by: LordVader on March 16, 2010, 11:53:13 PM
Thanks man, that is what i was looking for exactly in initial posts before :)