You are here

Closing the launcher

7 posts / 0 new
Last post
twnty3svn
Offline
Last seen: 16 years 7 months ago
Joined: 2006-04-10 03:24
Closing the launcher

Is it possible to use the close or kill process to close any of the portable app launchers, but by doing so, this still closes the actual program properly?

ie. close/kill firefoxportable.exe and it closes the firefox.exe program as well

John T. Haller
John T. Haller's picture
Online
Last seen: 9 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
No

The correct way to close an application is to send a WM_CLOSE message to it. In the case of Firefox Portable, you should send a WM_CLOSE to firefox.exe. Once closed the launcher automatically cleans up (if needed) and then closes itself within about 2 seconds.

Sometimes, the impossible can become possible, if you're awesome!

twnty3svn
Offline
Last seen: 16 years 7 months ago
Joined: 2006-04-10 03:24
Thanks for the reply

so is there a way to then close the process automatically from PSTART using a program using like nircmd.exe and the closeprocess opeation? Or is there someway to make a launcher which you can run that automatically does this?

arqbrulo
arqbrulo's picture
Offline
Last seen: 4 years 9 months ago
Joined: 2006-08-10 16:38
Close with nircmd

Create a shortcut to nircmd, right click the shortcut & select properties. At the end of target add "closeprocess firefox.exe" (obviously without "). Add this shortcut to PStart, edit the properties of the shortcut within pstart to always run upon exit.
---------------
Teen1: Oh, here comes that cannonball guy. He's cool.
Teen2: Are you being sarcastic, dude?
Teen1: I don't even know anymore.

"In three words I can sum up everything I've learned about life: it goes on." -- Robert Frost
"In three words I can sum up everything I've learned about life: baby ain't mine." -- Adam Holguin

twnty3svn
Offline
Last seen: 16 years 7 months ago
Joined: 2006-04-10 03:24
thanks for the suggestion...

but i think you misunderstand why i want to close the "launcher" as apposed to the exe file. By closing the EXE, it leaves all my personal settings on the computer which the launcher wraps (as i understand it), so therefore, i want to close the launcher instead, so it also deletes any personal infomation.

Any other suggestions?

arqbrulo
arqbrulo's picture
Offline
Last seen: 4 years 9 months ago
Joined: 2006-08-10 16:38
I use it like this

and I've never had any problems leaving information behind. Like John said above, you should close Firefox.exe and the launcher will do the cleaning up.
---------------
Teen1: Oh, here comes that cannonball guy. He's cool.
Teen2: Are you being sarcastic, dude?
Teen1: I don't even know anymore.

"In three words I can sum up everything I've learned about life: it goes on." -- Robert Frost
"In three words I can sum up everything I've learned about life: baby ain't mine." -- Adam Holguin

twnty3svn
Offline
Last seen: 16 years 7 months ago
Joined: 2006-04-10 03:24
oh how stupid of me

yes you are right, closeprocess works! At the time of my first post i was also trying to close miranda which did not work with the closeprocess. And for some reason didn't try that with firefox, but this works fine, thanks.

By the way, the killprocess is what leaves the user info behind. Now to find a way to close miranda without using the killprocess... hummm

Topic locked