You are here

Close an application/service

5 posts / 0 new
Last post
Gaber
Offline
Last seen: 3 years 10 months ago
Joined: 2017-07-16 15:33
Close an application/service

Good morning.

The programs I'm trying to portabilize opens other applications, and I have to close it manually.
How can I close dependencies after closing main application?

Thanks

Gord Caswell
Gord Caswell's picture
Offline
Last seen: 4 months 1 week ago
DeveloperModerator
Joined: 2008-07-24 18:46
WaitForExe ?

Without knowing what the application is, you may be looking for the WaitForEXE option: https://portableapps.com/manuals/PortableApps.comLauncher/ref/launcher.i...

Gaber
Offline
Last seen: 3 years 10 months ago
Joined: 2017-07-16 15:33
Thanks for the anwer, but I

Thanks for the anwer, but I don' understand how to use it.

Ex: I have an app MyApp, that launch MyChildApp.
If I close MyApp, MyChildApp which is an independent process still remain opened...

I want close (automatically) this process when closing the main app.
WaitForExe is good (as I understand) ex: with splash screen, until all the credits are loaded...

Have you other suggestion? (Someone will have planned something about these possibilities)...

Is there a command to call a specific executable?

Gord Caswell
Gord Caswell's picture
Offline
Last seen: 4 months 1 week ago
DeveloperModerator
Joined: 2008-07-24 18:46
Close Automatically

Ah, you're wanting to close the child app, not just run it.

If you were wanting just to run it, WaitForEXE will clean up settings after the child process is closed.

However, as you're looking to close the process automatically, you'll need to include custom code to do so at the moment.

Here's the link to information about custom code, and here's a not-yet-released implementation that I believe does what you want. Note that this will require some slight modification to work for you. I'll see if I can work out the specifics over the next week or so for you. Here's the documentation for what it will do when it is released, scroll down to the RunAfterN section.

Gaber
Offline
Last seen: 3 years 10 months ago
Joined: 2017-07-16 15:33
Yes, you have understood!

Yes, you have understood!

I need few days to study this code, I 'll write soon.

Will you ( I don'know if you are the author of Launcher) implement some kind of CLOSEPROCESS = App.exe in the next release of PA?

Thanks again. (And sorry for the spelling errors. I don't read what I write!!!)

Log in or register to post comments