Good afternoon,
I'm working on a project for my company to run an update on the employees workstations. The file is located on a webserver on our domain. The user will click on a link and start up the script.
I made two functions one to download the file to the C:\ and another to run the installer. The file is a .exe (I wish it was a .msi).
'' //executes the file at the location: installPath
Function launchUpdate(installPath)
dim wshShell
Set wshShell = WScript.CreateObject ("WSCript.shell")
errReturn = wshshell.run(installPath, 6, true)
End function
I'm using wshshell.run(installPath, 0, true) to execute the file. From what I understand, this should hide the install window and wait until the execution is complete.
It will start it up but it will not wait to complete the install because there are two steps in the .exe. Once the "preparing to install" is done, the script goes on with its job.
I could place Wscript.sleep. However, not all the machine have the same processing speed. So, I will not know how long to wait.
Do you have any suggestion what I could do?
Thank you,
Brian