You are here

I got a few questions...

16 posts / 0 new
Last post
Pyromaniac
Pyromaniac's picture
Offline
Last seen: 9 years 8 months ago
Developer
Joined: 2008-09-30 19:18
I got a few questions...

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!

Devo
Offline
Last seen: 1 year 1 month ago
Joined: 2007-09-04 14:55
Isn't Flash Player just a

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.

Jimbo
Offline
Last seen: 4 years 11 months ago
Joined: 2007-12-17 05:43
Not quite

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.

Pyromaniac
Pyromaniac's picture
Offline
Last seen: 9 years 8 months ago
Developer
Joined: 2008-09-30 19:18
YES!

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.

ToJa92
Offline
Last seen: 11 years 4 months ago
Joined: 2008-05-27 15:16
Not sure if it work but how

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...

Pyromaniac
Pyromaniac's picture
Offline
Last seen: 9 years 8 months ago
Developer
Joined: 2008-09-30 19:18
Yes

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.

gluxon
gluxon's picture
Offline
Last seen: 4 years 3 months ago
Developer
Joined: 2008-06-21 19:26
For extracting .exe

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.

SomeWeirdLoop:
              FindProcDLL::FindProc "FirefoxPortable.exe"
              StrCmp $R0 "1" "NextLabel" ""
              Goto SomeWeirdLoop
OliverK
OliverK's picture
Offline
Last seen: 3 years 6 months ago
Developer
Joined: 2007-03-27 15:21
Don't forget some Sleep time.

Don't forget some Sleep time. Execwait is better.

SomeWeirdLoop:
Sleep 1000
              FindProcDLL::FindProc "FirefoxPortable.exe"
              StrCmp $R0 "0" "SomeWeirdLoop" "NextAction"

NextAction:
Whatever

My method:

Execwait FireFoxPortable.exe
ExecWait Whatever.exe

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

Pyromaniac
Pyromaniac's picture
Offline
Last seen: 9 years 8 months ago
Developer
Joined: 2008-09-30 19:18
I'll try that...

I hope to post my first "real" portable app (if flash could fall under that category) soon.

OliverK
OliverK's picture
Offline
Last seen: 3 years 6 months ago
Developer
Joined: 2007-03-27 15:21
Canabalt is flash

Canabalt is flash Smile

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

Pyromaniac
Pyromaniac's picture
Offline
Last seen: 9 years 8 months ago
Developer
Joined: 2008-09-30 19:18
Thanks dude!

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.

gluxon
gluxon's picture
Offline
Last seen: 4 years 3 months ago
Developer
Joined: 2008-06-21 19:26
You've installed the plugin,

You've installed the plugin, right? Blum

Pyromaniac
Pyromaniac's picture
Offline
Last seen: 9 years 8 months ago
Developer
Joined: 2008-09-30 19:18
where???

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.

Pyromaniac
Pyromaniac's picture
Offline
Last seen: 9 years 8 months ago
Developer
Joined: 2008-09-30 19:18
it works

I don't know why it hadn't before...

gluxon
gluxon's picture
Offline
Last seen: 4 years 3 months ago
Developer
Joined: 2008-06-21 19:26
Ah, okay It was probably

Ah, okay Smile

It was probably preinstalled since the PortableApps.com Installer uses it too.

Pyromaniac
Pyromaniac's picture
Offline
Last seen: 9 years 8 months ago
Developer
Joined: 2008-09-30 19:18
just kidding...

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

Log in or register to post comments