PDA

View Full Version : Restart application automatically



Infohos
10-30-2002, 09:23 AM
Hi,

I'm trying to apply a patch using the AutoUpdate method.
When the patch ran it detected that my application was still running and asked to close it and try again. Now I quit the program automatically after calling AutoUpdate but I would like to have it started again after applying the patch.
So it should behave like this:
- application starts
- call AutoUpdate
- quit
- patch runs
- application starts again automatically

Basically, I need this to prevent that users have to launch the program twice (once to update and once to start working with it).

Is this possible?

Thanks!

Mark at IS
10-30-2002, 01:15 PM
Launch the application from within your patch, after the files have been transferred. (In InstallShield Professional, you can do this by calling the LaunchAppAndWait function.)