[Lazarus] Starting another program to run once original terminates

ADTEC (Pty) Ltd adtec at adtec.co.za
Sat Oct 18 12:17:10 CEST 2014


Hi

I need to start an external program that will execute once the program
that starts it has terminated. The external program will update the
starting program, so it must terminate before the update can take
place. This needs to be cross-platform.

I've looked at TProcess but I don't see a way to start the process
that won't destroy it when the starting program terminates. Am I
missing something?

I have tried using the TAutoUpdate program created by Leonardo M. Ramé
which does everything I need to do , EXCEPT run the program
(RunUpdateFPC procedure is empty). I'm now trying to populate this
procedure.

Any pointers or suggestions?

Thanks

Graham Cooke




More information about the Lazarus mailing list