Login Register

Running multiple versions of Firefox (side by side)

UPDATE For your convenience, I've uploaded the scripts and alternate icon so you can download them yourself. This week, Mozilla released the much-anticipated Firefox 1.5 upgrade. While I'd love to start playing with the new features (SVG, fast forward and back, etc. etc. etc.), I need to be able to test in Firefox 1.0.x. Enter MOZ_NO_REMOTE. MOZ_NO_REMOTE allows you to run multiple versions and/or profiles of Firefox at once. The only downside, and this is a big downside, is that every time I launch a shortcut or open an HTML file, I get prompted by the Profile Manager to pick my profile. In the words of Cartman, Lame. Not cool. Hoping for a solution, I hopped onto #firefox at irc.mozilla.org and the good folks there pointed me to a solution: run the new version via a batch file. After a little experimenting, I've gotten the best results with the directions that follow. (Note that this is aimed at folks who have Firefox 1.0.x installed as their default browser and want to keep it that way, at least for the time being.)
  1. Download Firefox 1.5 and install it to somewhere other than the default Firefox location (I'll assume you used C:\Program Files\Mozilla Firefox 1.5). When it asks you if you want to launch Firefox, just say no.
  2. Browse to C:\Program Files\Mozilla Firefox 1.5 and make a copy of firefox.exe as firefox1.5.exe. (I'm not sure if this step is necessary, but it is nice to be able to view the differentiate between the running processes in the Task Manager.)
  3. Fire up your favorite text editor and create the following script:
    set MOZ_NO_REMOTE=1
    start "Firefox" "C:\Program Files\Mozilla Firefox 1.5\firefox1.5.exe" -P "Firefox1.5"
    set MOZ_NO_REMOTE=0
    
    Save it as Firefox1.5.bat.
  4. Run the batch file. (Some spyware/anti-virus products will ask you if you want to grant the file permission to run, click Yes.)
  5. The profile manager will appear. Create a new profile named Firefox1.5. From here on out, it won't ask you for a profile.
If you're like me and you hate the cmd window that shows up whenever you are running Firefox 1.5 and have cygwin, you can modify the script to run from cygwin and promptly ending. Nevermind that problem, thanks Eugene. But, if you still want to run it from cygwin...
#!/bin/bash

MOZ_NO_REMOTE=1
export MOZ_NO_REMOTE
/c/cygdrive/Program\ Files/Mozilla\ Firefox\ 1.5/firefox1.5.exe -P "Firefox1.5" &
MOZ_NO_REMOTE=0
export MOZ_NO_REMOTE
I've saved it as /usr/local/bin/ff15 and it'll launch whenever I run ff15 from the command line. That's that! I hope some folks find this useful. Add an icon If, like me, you want to be able to easily differentiate between a Firefox 1.5 and Firefox 1.0 window, you can grab my tweaked main-window.ico and place it in C:\Program Files\Mozilla Firefox 1.5\chrome\icons\default. I also highly recommend the Titlebar Tweaks extension which allows you to cuzomize the window titlebar. By the way, if anyone knows how to make windows batch files run Firefox and continue on (which & will accomplish for you in UNIX land), please post a comment! Thanks, Eugene. :)

start Run "start /?" from

start Run "start /?" from your command prompt to learn available options.

If you don't have Cygwin and

If you don't have Cygwin and you don't want to see the command window you can also accomplish the same functionality using Windows Scripting. Just save the following as Firefox1.5.wsf:
var shell = WScript.CreateObject("WScript.Shell");
              var env = shell.Environment("User");
              env("MOZ_NO_REMOTE") = 1;
              shell.Exec('C:\\Program Files\\Mozilla Firefox 1.5\\firefox1.5.exe -P "Firefox1.5"');
              env("MOZ_NO_REMOTE") = 0;

Ack! the xml portion didn't

Ack! the xml portion didn't post:
<?xml version="1.0"?>
<package>
   <job id="Firefox:1.5:Loader">
   <?job debug="true"?>
      <script language="javascript">
              var shell = WScript.CreateObject("WScript.Shell");
              var env = shell.Environment("User");
              env("MOZ_NO_REMOTE") = 1;
              shell.Exec('C:\\Program Files\\Mozilla Firefox 1.5\\firefox1.5.exe -P "Default User 1.5"');
              env("MOZ_NO_REMOTE") = 0;
      </script>
   </job>
</package>

I was wondering if I could

I was wondering if I could do the exacty same thing, but the other way around? I want Firefox 1.5 as my default, and the old version 1.07 as the one to run alongside

Crouwel- That is easy to do.

Crouwel- That is easy to do. Instead of creating the script to run 1.5, just have it point to 1.0.7.

When I installed FF 1.5 (in

When I installed FF 1.5 (in a separate dir) while having 1.0.7 installed both continued to operate perfectly, without any of the mentioned hacks. But when I later uninstalled and reinstalled FF 1.0 it (1.0) stopped working. It should therefore still be possible to have both running side-by-side without the hack, I just don't know how. Any ideas?

I have done all the steps

I have done all the steps from the above article but now when I click on a link in an external application like to say in the mail clent I get the profile chooser window and when I choose one of the profile that's already running it will refuse to open a new tab on the running instance. Is this normal? TIA

ONE MORE STEP for users that

ONE MORE STEP for users that want to keep their old profile, not the one he said to call "Firefox1.5". You also must call the new one by that name - or change the last entry in the batch file command to include it. 1. If you want to keep your old one as default, AFTER creating the new profile and BEFORE clicking "Start Firefox" uncheck the "Don't ask at startup". Then start it. 2. Close all of your Firefoxes. 3. Start up your DEFAULT Firefox (Desk icon, etc) and switch back to old profile when it asks you. RECHECK the "Don't ask at startup". 4. Now rerun your batch file to have a separate Firefox copy. BYW - Thanks, this was very useful.

Perfect! Thank you very

Perfect! Thank you very much! I love it. I can run both FireFox v1.5.0.2 & MineField v3.0a1 (VIETNAM, April 14, 2006)

Let me clarify. This does

Let me clarify. This does work. But if I have firefox open(default profile) and I try to open the new profile with the batch file, it opens up the same as my default profile. Basically, I can't run both simultaneously.

This has not worked for

This has not worked for me. I am developing a web app for my company. I want to setup everyone's computer to have their default profile, which will include their bookmarks, etc. Then I want each employee to have a company profile which will open up the web app's home page and the browser has no visible toolbars or progress bar.

[...] Consious of not

[...] Consious of not replacing my primary browser with a beta, I used the batch file method of running Firefox 2 with it’s own profile. Running several installs of Firefox is fine, but you shouldn’t use the same user-profile, as they would use the same files at the same time. Firefox does the right thing in terms of user-experience, when you download a new version it updates your profile for you. [...]

This is a great tutorial.

This is a great tutorial. Found myself putting one together too. Here's mine: http://cherny.com/webdev/32/new-firefox-2-and-multiple-firefox-version-i...

[...] Für den normalen

[...] Für den normalen Nutzer weniger interessant, für den Webentwickler dagegen sehr: Running multiple versions of Firefox (side by side) Top Anleitung auf Englisch, die auch bei neueren Versionen klappt. [...]

[...] 14. August

[...] 14. August 2006Software Im Englischsprachigen Artikel Running multiple versions of Firefox wird beschrieben, wie man mehrere Firefox-Versionen parallel installieren kann. [...]

[...] dojotoolkit [...]

[...] dojotoolkit [...]

[...] Se volete eseguire le

[...] Se volete eseguire le due versioni di Firefox fianco a fianco per confrontare le differenze di rendering, dovete settare il valore di MOZNOREMOTE a 1 e creare un profilo di Firefox separato. Alcune istruzioni su come farlo su Windows e Linux lo potete trovare qui. [...]

[...] Bookmarked on furl –

[...] Bookmarked on furl – More – [...]

You don't need to include

You don't need to include 'set MOZ_NO_REMOTE=0' in the batch file. The batch file will cause Firefox (and any other applications then started by it) to inherit this environment setting. The environment settings are scoped specifically to the batch file and its DOS console session, nothing else, so it will not affect other applications and therefore there is no need to 're-set' the 'MOZ_NO_REMOTE' environment key to '0'. Hope this helps :-)

I guess I'm the only one

I guess I'm the only one using the cygwin script (Cygwin rocks people!), so nobody noticed that it has a mistake. It should be /cygdrive/c/Program.... instead of /c/cygdrive/... Alternatively, you can use c:/Program.... similar to DOS. Great tip, btw, thanks!