Author Topic: [win32] Detecting Installs and windows updates  (Read 3973 times)

0 Members and 1 Guest are viewing this topic.

Offline while1

  • x86
  • Hero Member
  • *****
  • Posts: 1013
    • View Profile
[win32] Detecting Installs and windows updates
« 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.
I tend to edit my topics and replies frequently.

http://www.operationsmile.org

Offline while1

  • x86
  • Hero Member
  • *****
  • Posts: 1013
    • View Profile
Re: [win32] Detecting Installs and windows updates
« Reply #1 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
I tend to edit my topics and replies frequently.

http://www.operationsmile.org

Offline LordVader

  • Full Member
  • ***
  • Posts: 113
  • Knowledge is power.
    • View Profile
    • James Moss on the web!
Re: [win32] Detecting Installs and windows updates
« Reply #2 on: March 16, 2010, 11:53:13 pm »
Thanks man, that is what i was looking for exactly in initial posts before :)