Link to home
Start Free TrialLog in
Avatar of tchous
tchous

asked on

wsh.run: executing multiple commands in order

I have a website that a user can go to install software on their computer. They select a piece of software, and then click on submit. It executes an MSI script on a server that we have.

What I would like to do is allow them to select multiple pieces of software then install them in an order when the one finishes, the other picks up. Here is the command I use to execute the application:

<script language=VBscript>
Set wsh3 = createObject("WScript.Shell")    
'Comstring = path to msi script
wsh3.run comstring
'msgbox comstring
</script>

Is there a way to accomplish this. I haven't even attempted, thinking that it will not wait for the first piece to finish.
ASKER CERTIFIED SOLUTION
Avatar of PaulHews
PaulHews
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of tchous
tchous

ASKER

Paul,


That seems to work. Is there anyway to get the normal text on  the page to load first, then run the vbscript job. The screen turns white until the jobs are finished..