Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2014-10

Starting another program to run once original terminates

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

ADTEC Pty Ltd

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

Reply by email

Mattias Gaertner
to ADTEC Pty Ltd
Show quoted text 17 lines
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

Reply by email