I'm looking for a way to prevent Windows from restarting/installing updates while my program is running.
Currently, I've been setting a registry key which is located in:
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU
called "AUOptions". I'm setting this to "2", however this doesn't seem to work in Vista, as my computer restarted last night. UAC is currently completely off. Any other ideas?