I want to make a launcher that launches an app after it closes another one...
I'm trying to make Abobe Flash Player Portable and I made a little exe that deletes the cookies you make on the computer and replaces them with original cookies that were on it (if any) but I don't know how to edit the Firefox Portable Launcher so that it launches the "cookie monster" after you close firefox.
Also, I'm working on another app that requires extracting a zip and in that zip there is an installer... How would I edit installer.ini to have to the installer extract the app from the original installer in the zip?
Or, if I can't do that... how do I have the installer extract an exe (so that I can extract the dll from the flash installer?
Thanks!
Isn't Flash Player just a plugin for browsers? For that you can just use John's Flash player installer for Firefox and then use the addon BetterPrivacy to remove flash cookies on exit.
Unless I'm totally missing something, this seems like a much easier way.
Your way will also remove all the pre-existing flash cookies from the machine you're using, which could be important to the owner of it.
To the OP: given that you'll have to run your app in advance of FFP starting so you can know which cookies were already there, why not run it either as a replacement for the FFP launcher, or as a launcher-launcher, that starts, does what it needs to, launches FFP, waits for it to exit, then cleans up.
Also, how are you going to cope with any LSOs that are created by other unrelated Flash based operations on the PC while FFP is running? This is a lot of the reason why nothing is done about them in the main FFP launcher - they are inextricably intermixed with the local ones.
I was going to have 2 apps run: first the first app runs to copy and paste the current cookies (if any) to C:\\FFPTemp. Then I would let FFP start and then have cookies do their thing when you use flash. On exit, cookiemonster.exe would gobble up the cookies then copy the pre-existing cookies from C:\\ to the regular folder (I don't remember it off the top of my head).
My question is, though, how do I make the launcher launch after FFP closes? I've looked at FFP's source for hours and experimented with different ideas but none of them worked.
And about the LSOs... aren't they stored with the cookies? If they are, they would move too because I copied the whole folder down.
Not sure if it work but how about you launch FFP(or let the user do it, or whatever you do), then check for a firefox.exe process. When you find one, let the script pause. When firefox.exe closes, do your thing.
As I said, I'm not sure if you can accomplish this...
but I was going to make this for portable browsers that don't have that addon (like Chrome and hopefully Opera).
I don't know if SeaMonkey has it but it won't, matter because I'm still gonna make it for that too.
I was also trying to make shockwave portable but that plan failed after the fact that it doesn't work on a computer that doesn't have it installed.
For extracting .exe installers, you can use the 7-Zip plugin for NSIS.
Remember that this doesn't work on all EXE's.
So in your code, use it once to undo the .zip, and again to unpackage the .exe
http://nsis.sourceforge.net/Nsis7z_plug-in
As for launching an app after Firefox Portable closes you could use the FindProc plugin.
http://nsis.sourceforge.net/FindProcDLL_plug-in
Use a loop such as this.
Don't forget some
Sleep
time. Execwait is better.My method:
Too many lonely hearts in the real world
Too many bridges you can burn
Too many tables you can't turn
Don't wanna live my life in the real world
I hope to post my first "real" portable app (if flash could fall under that category) soon.
Canabalt is flash
Too many lonely hearts in the real world
Too many bridges you can burn
Too many tables you can't turn
Don't wanna live my life in the real world
but I tried to see if the PortableApps.com installer would extract it for me (it would save a lot of time) but when I test the installer, I get an error message saying that it could not extract the exe.
I was pretty sure its possible because thats what I think John used for his functional flash player installer test but I don't know why his installer wasn't being nice to me.
You've installed the plugin, right?
I just got the PA installer installed to F:\PortableApps
Where would I put the plugin? I thought that the PA installer comes with the plugin? Its worked when I first tried to make TheOffByOneWebBrowserPortable Online installer...
I was thinking that first you had to rename the exe to zip and then extract, but I looked at the configuration of installer.ini under development and it never said anything about renameing stuff.
I don't know why it hadn't before...
Ah, okay
It was probably preinstalled since the PortableApps.com Installer uses it too.
it worked for flash portable... but I'm trying to make Graphical Analysis (Demo) work without a local install.
Look:
http://fancygadgetry.comlu.com/screenshot.24.png