/build/static/layout/Breadcrumb_cap_w.png

wsf, Wait till finished not working as i Need

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   [ + ] Show comments

Answers (1)

Posted by: usachrisk 18 years ago
Purple Belt
0
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.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ