View Full Version : LaunchAppandWait Problem

07-22-2004, 12:48 PM
Hi, Ive got a little problem with LaunchAppandWait.
At the end of my install I need to launch a 3rd party installer that installs drivers and needs a reboot. If I use LaunchAppandWait, the driver install asks if it you would like to reboot and if the user selects yes, then the machine does not reboot. I can only guess that after the yes is selected, control is returned to the original install which does not reboot and maybe cancells the driver install reboot? Am I missing something here?

07-22-2004, 02:57 PM
Hi Jeff,
Though I could understand your problem that there is no reboot occuring even if you select yes from the driver install program, what I feel as a workaround would be this:
In the On End event call the LaunchAppAndWait with NOWAIT option ie.,
LaunchAppAndWait("Driver program","command line if any",NOWAIT);

So at this point the user would have clicked the finish button and then in the End event this is called and the control is handed over to your driver program. So if any restarts needed by your driver program will be honored.

Hope the above information helps :)