You are here

running portable firefox

7 posts / 0 new
Last post
LukaszW
Offline
Last seen: 16 years 1 month ago
Joined: 2006-12-22 12:01
running portable firefox

i've spent some time on making my own version of portable firefox (locales, plugins, additional search plugins etc.). After i had compiled launcher using NSIS 2.22, i spotted a problem: Portable Firefox opens another instance of already running regular firefox instead of showing a message, and closing. Everything seems to be OK, when regular firefox is turned of. I think, the solution is in the INI file(s), or in *nsi scripts, but i can't find it. Does anyone had same / similar problem, and solved it? Please help.

John T. Haller
John T. Haller's picture
Online
Last seen: 19 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
It does check

It does check to see if firefox.exe is already running. Are you sure you're using the latest launcher (bundled with the download)?

Also, remember that you can't distribute your custom version without permission from Mozilla unless you recompile Firefox, too and remove all Mozilla and Firefox references and logos.

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

LukaszW
Offline
Last seen: 16 years 1 month ago
Joined: 2006-12-22 12:01
Re

Thank You for you're fast reply. When I use launcher downloaded form this web page, everything is OK. Problems start, when i try to make my own launcher from:
FirefoxPortable/Other/FirefoxPortableSource/FirefoxPortable.nsi My launcher opens starts new instance of alredy running firefox, instead of showing messagebox. I don't know how to solve this

Thank you very much for the information about the licence, it is just for my, my father's private use.

Merry Christmas!

--
LukaszW
gentoomania

Ryan McCue
Ryan McCue's picture
Offline
Last seen: 14 years 6 months ago
Joined: 2006-01-06 21:27
It shouldn't

These lines detect:

	CheckIfRunning:
		;=== Check if running
		StrCmp $ALLOWMULTIPLEINSTANCES "true" ProfileWork
		FindProcDLL::FindProc "firefox.exe"
		StrCmp $R0 "1" "" ProfileWork
			;=== Already running, check if it is using the portable profile
			IfFileExists "$PROFILEDIRECTORY\parent.lock" "" WarnAnotherInstance
				StrCpy $SECONDARYLAUNCH "true"
				Goto RunProgram

----
Ryan McCue
Life is like a sewer. What you get out of it depends on what you put into it.
(Tom Lehrer)

"If you're not part of the solution, you're part of the precipitate."

LukaszW
Offline
Last seen: 16 years 1 month ago
Joined: 2006-12-22 12:01
Still doesn't work... what

Still doesn't work... what version of nsis compiler, and plugins do you have ?

--
LukaszW
gentoomania

Ryan McCue
Ryan McCue's picture
Offline
Last seen: 14 years 6 months ago
Joined: 2006-01-06 21:27
2.22

Version 2.22 and all the plugins I need Wink
Seriously though, if it's still not working, maybe you need to get the latest version of FindProcDLL?
----
Ryan McCue
Santa: Ho Ho Ho!
Kim: Yes, thank you Santa, I am.
(Kath and Kim)

"If you're not part of the solution, you're part of the precipitate."

LukaszW
Offline
Last seen: 16 years 1 month ago
Joined: 2006-12-22 12:01
OK, it works now. Don't know

OK, it works now. Don't know why, i had to change some stuff in the source code... whatever. Now it works goot for me. Smile Thank you!

--
LukaszW
gentoomania

Topic locked