[Lazarus] Starting another program to run once original terminates
Mattias Gaertner
nc-gaertnma at netcologne.de
Sat Oct 18 12:39:17 CEST 2014
On Sat, 18 Oct 2014 12:17:10 +0200
"ADTEC (Pty) Ltd" <adtec at adtec.co.za> wrote:
> 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?
I added an example:
http://wiki.lazarus.freepascal.org/Executing_External_Programs#Run_detached_program
Mattias
More information about the Lazarus
mailing list