important updates available on Windows 7, or on Windows generally.
I have had problems with various methods so far:
- FindWindow: works on Windows XP, doesn't work on Windows 7
- check system tray icons: fiddly, and the method varies depends on the Windows version
- ComObjCreate("Microsoft.Update.Session"): extremely slow or doesn't work
- Run, control /name Microsoft.WindowsUpdate: cannot be run as a hidden window
Btw on Windows XP I could check for Windows updates via:
I used the Windows XP method on a backup script, that notified you of any updates,
at the point where it asked if you wanted to shutdown/restart after backup.