I am trying to write a script to deploy mathcad 12, mathsoft did most of the work thankfully. The problem i have is when i run this command it calls the msi and then setup ends thus wscript thinks its completed and moves on to the next line which in my case is cacles to set folder permissions. Problem is the msi portion of the install isn't finished when setup terminates and thus cacles runs before there is even a folder. I need to either have it actually wait until the msi is finished, or have a 60sec timer after i called the setup so it can have time to finish. wait until finished is more approprate.

Snipit of the code i trying to get to work. Product code removed

rCommand = sTempDir & "install\Setup.exe /v""/qb PRODUCTTYPE=SU ALLUSERS=1 PRODUCT_CODE=xxx"""

oWsh.run rCommand,1,True
0 Comments   [ - ] Hide Comments


Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
Answer this question or Comment on this question for clarity


There is a fourth parameter to RUN that causes it to wait until a process ends before continuing (is this what you're trying to do with your third parameter?), but if SETUP end when MSIEXEC launches (if this is an MSI), then this wont help.

For that scenario, if the setup is from InstallShield, I think there is an /SMS switch that must be all caps, and must be at the end.
Answered 03/07/2006 by: usachrisk
Purple Belt

Please log in to comment