I have written a vb program to perform some actions and then call the WSUS Office and Windows updater silently through calling the DoUpdate.cmd file. The program seems to be working fine; however, when i shut the computer down the updates are never configured. When i restart the computer and run the updates again it then reinstalls the same updates. The odd thing is when i call the UpdateInstaller.EXE and run it through the GUI, the updates install correctly and windows configures them on shutdown. Also, this issue only occurs when i run the program on 64 bit windows 7 and vista. The 32 bit OS will run the program seemlessly. Any suggestions or reasons to why this is occuring would be fantastic. The vb code I am running is posted below.
- Code: Select all
Dim myProcess as New System.Diagnostics.Process
myProcess.StartInfo.FileName = ProcessPath
myProcess.StartInfo.UseShellExecute = False
myProcess.StartInfo.RedirectStandardOutput = False
myProcess.StartInfo.Arguments = myArgs
myProcess.Start()
I have also made sure to always use the "Run as Administrator" option when beginning my program. Also, I have tried starting the process as an administrator the vb way by setting the verb to "runas".