cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
mmccue
Level 4

vbScript LaunchAppAndWait?

Is there a vbscript alternative for Installscript's LaunchAppAndWait? If not, are there any examples of how to launch an external program from vbscript in my install, and wait until execution finished before continuing?

Thanks,
Mike
Labels (1)
0 Kudos
(3) Replies
esiemiat
Level 9

It is my understanding that the LaunchAppAndWait call either the CreateProcess or ShellExecuteEx Window's API functions, which is exactly what your VBScript will do.

Are you experiencing an issue with the LaunchAppAndWait function?
0 Kudos
nikhilgupta
Level 5

If project is basic msi or installscript msi, custom action to execute exe can be used. Even vb script is not required.
0 Kudos
ChristopheOce
Level 7

Hi,

you can use the command vbsript


Shell(YOUR_PROGRAM," PARAMETRE", vbNormalFocus)

this function return the id of the process who is run !
with a little coding a while for exemple you can check if the process run or not.
i
There is some sample on internet.

Christophe
0 Kudos