home forums resources search newsjoinmembers: 6375
Hiveminds Network PHP Flash Java Ruby Windows Linux
Hiveminds | Wed, 2008-07-09 12:49  tags: , ,

I keep getting email about IE7 and how this
website looks in this web browser. Well to make it publically known I am not at
all interested in IE7 and it is way too soon to be concerned with it. There are
a number of other reasons for this like how would I run both IE6 and IE7 on my
development PC? I would have to use some type of switcher. My experience with
such things has been bad or worse. They always seem to screw up something in
Windows because of the tight integration of IE and Windows.


Download Day

When I get IE7 email I sometimes ask if they have tried
Firefox3. In all of the IE7 hype developers (the ones that are
sending me email) tend to forget that Firefox is in constant
development
that Firefox 1.5 is not the only version.
Firefox3 is readily available for
download.
Unlike its predecessors FireFox development does not sit and wait for the entire
internet to complain about bugs and shortcomings before they start building a
better version.

I have a question. If Firefox 2 is a better browser with more
features than
IE7 will you install IE7 or just jump from Firefox 1.5.x to Firefox 3.0.x? I
like many others am unconcerned with web browser holy wars and make my choices
based on need and statistics not on hype. I am however interested and concerned
with the way websites look in Firefox 3 because it does not require me to have a
particular Windows OS installed. Normally to be able to check the differences on
a live site would mean replacing my Firefox 1.5 instance with the FF3. This is
not what I want to do, I want to be able to switch back and forth between them.
The following methods are the ones I discovered while surfing for information.
The main part of this tutorial comes from a post contributed by Vectorspace on
Aug Sat 26th 2006 on Mozilla.org.

The simple method

The simplest way is to just run two seperate versions using the same profile.
This satisfies the needs of most since the profile contains the websites that
they would be checking. Set MOZ_NO_REMOTE to 1 in the environment
variables. Create desktop shortcuts and name them accordingly the paths to use
are as follows:

"C:\Program Files\Mozilla Firefox\firefox.exe" -p default
"C:\Program Files\Deer_Park\firefox.exe" -p FF3Test

Both work with their different profiles and both can be running at the same
time. The flaw is that MOZ_NO_REMOTE=1 means all new firefox.exe
processes will want a separate profile, including links from external
applications and when you double-click a Firefox shortcut. It will also affect
other Mozilla aps, like Thunderbird. This makes this method fast to implement
but not the best for a development PC where any number of applications or
programs may call the firefox.exe

Complicated method

Normally when you try to run a second firefox.exe process, it just gets
redirected to a new window/tab in the existing firefox.exe process.
MOZ_NO_REMOTE=1
means that when you run a second firefox.exe process, it
stays a separate process and needs a separate profile. A mentioned previouly
there is the complication that MOZ_NO_REMOTE=1 means all new firefox.exe
processes will want a separate profile, including links from external
applications and when you double-click a Firefox shortcut.

 It will also affect other Mozilla applications, like Thunderbird. If you set
MOZ_NO_REMOTE=1 in Windows Environment Variables, then it is always on.
The batch file method means that the variable is only 1 when you want a new
firefox.exe process to start - links from external applications and the like
will be redirected to the most recently started profile, instead of bringing up
Profile Manager. I have a full solution to running a release and a new instance
using the batch file method - I use it and it does work:

First, remove MOZ_NO_REMOTE from Windows Environment Variables and restart
windows (to ensure that it is gone) I installed FF3 to a different location
(C:\Program Files\Firefox 3\) from 1.5 (C:\Program Files\Mozilla Firefox\). I
used Profile Manager to create a separate profile for FF3. The profile was
called "FF3" I did not start the profile. Then, I modified the target in Firefox
1.5's shortcut to read this:

"C:\Program Files\Mozilla Firefox\firefox.exe" -p "default"

That shortcut now starts FF 1.5 with the profile named default. And I modified
FF3's shortcut target to read this:

"C:\Program Files\Firefox3\firefox.exe" -p "FF3"

That shortcut now starts FF3 with the profile named 'FF3'. Copy this text
into a batch file, running it will start FF3 even if Firefox 1.5 is already
running: Code:

@echo off
set MOZ_NO_REMOTE=1 start "" "C:\Program Files\Firefox3\firefox.exe" -p "FF3" set MOZ_NO_REMOTE=0

And a version to start FF 1.5 even if FF3 is already running: Code:

@echo off
set MOZ_NO_REMOTE=1
start "" "C:\Program Files\Mozilla Firefox\firefox.exe" -p "default"
set MOZ_NO_REMOTE=0

If you want batch files to start Profile Manager for one of the builds, just
remove the profile name from the above examples. With this method you can run
more then two instances at the same time - I have had two 1.5 profiles and a FF3 profile running simultaneously using this method.

Save the file with a *.bat extension and create a shortcut to your desktop.
You can Right-Click the shortcut and rename it to whatever you want.

Change the path to your particular firefox.exe and the Profile name as
appropriate for your installation. When you double-click the Batch file desktop
shortcut, it will start Firefox with the appropriate Profile even if a
version/Profile of Firefox is already running.

There are some issues that need to be solved when using this method. When you
just run firefox.exe (like an external application will do) it will start
whichever is your default browser, but it will start with whichever profile was
last run from profile manager. So, make sure that FF 1.5's profile is the one
selected in profile manager. or you might get FF1.5 started with the FF3
profile. Just start FF1.5's profile manager and start it's profile, and that
profile will be selected in profile manager as the default. This is assuming
that FF1.5 is your default browser, If FF3 is, make sure that the FF3
profile is the default.

You can start Firefox by just typing firefox.exe into Start>Run, or by typing
start firefox.exe into a command prompt - no path. If you install FF1.5 first
and FF3 second, FF3 will take over this so that it will start FF3 instead of
FF1.5. You need the version that is started by this to be the same version that
is set as the default browser, otherwise again you will get one version using
the other's profile. The simple solution would be to just reinstall 1.5.

Alternatively, there is a registry entry you can change to set this back if
you wish: HKEY_LOCAL_MACHINE > Software > Microsoft > Windows > CurrentVersion >
App Paths > firefox.exe. In that location, change the values of the (Default)
and Path keys to match your original Firefox installation instead of FF3. If you
are not familiar with editing the registry then do not try.

 

Happy Publishing!

Hiveminds's picture
This article brought to you by the Hiveminds Magazine - Staff. Contact us if you want to post an article or announcement anonymously
 
a Visitor posted on: Sat, 2006-12-02 02:38.
>like how would I run both IE6 and IE7 on my development PC? I would have to use some type of switcher. You can install the free MS Virtual PC software from http://www.microsoft.com/windows/virtualpc/default.mspx

Then create a virtual pc and install ie7 into it. It won't interfere at all with your base pc configuration (ie6 etc).

a Visitor posted on: Sat, 2006-12-02 09:27.

I have just done this and it works fine!

ie6 and ie7 together

a Visitor posted on: Mon, 2006-12-11 09:00.

The fact remains that IE is the dominant web browser the world over so ensuring that sites look correct in IE (whether it's 6 or 7) would greatly benefit any website owner/developer.

a Visitor posted on: Thu, 2007-04-05 16:55.

There is an even easier way.

Microsoft released a standalone version of IE 7 that easily runs in paralell with IE 6.

http://tredosoft.com/files/IE7s/IE7S-setup.exe

Also, if you're interested in earlier versions of IE (I still have to code for IE 5.0 in some cases), you can install this suite, which allows you to run versions 3.0 - 6.0 independently.

http://tredosoft.com/Multiple_IE

a Visitor posted on: Tue, 2007-05-15 10:03.

I installed this, but Help/About in 5.5 reveals IE 7.xxx sometime later, so wondering exactly how 'standalone' these versions really are, seems windows updates got its hooks into it somehow.

a Visitor posted on: Wed, 2007-05-16 15:07.

I'm using the following command line in a shortcut instead of a separate batch file:

%SystemRoot%\System32\cmd.exe /C set MOZ_NO_REMOTE=1 & start "Firefox" "C:\Program Files\Mozilla Firefox\firefox.exe"

In the "Shortcut" tab of the shortcut properties I also set the window to start "Reduced", so the Cmd.exe window is hidden.

Olivier Mengué.

a Visitor posted on: Tue, 2007-11-20 19:28.

Oliver, great tip, but you need to append your beta profile to the end of the line, such as:

-p "Beta2"

Without that, it's just going to use the default profile. Perhaps you left it off accidentally when copying and pasting here.

a Visitor posted on: Fri, 2008-03-21 16:37.

One problem - this method, in Fx 2.0.0.12 and Fx 3b4 on Vista Ultimate, cause Fx to not respond to 3rd party URL clicks (such as in Thunderbird) - in deed, Thunderbird then tries to open a new instance of Fx that sits there lost, because it is already running.

When I run Fx normally (using shortcut and manually selecting profile) without the environment variable it accepts URLs from 3rd party apps.

This problem may manifest only on Vista, I don't have any XP boxes to test with anymore.

Fx 2.0.0.12 / Fx 3b4 on Vista Ultimate

a Visitor posted on: Sun, 2008-05-11 18:21.

There is a huge drawback to the NO REMOTE switch. You will no longer be able to click on links in external applications (such as your email client) if Firefox is already running! Instead you will receive the error message "Firefox is already running but is not responding".

a Visitor - posted on: Tue, 2008-07-08 23:31.

The standalone versions are not actually full versions, and neither were they released by Microsoft.

What they are is a collection of DLLs that simulates a particular version of IE by over-riding the functionality of whatever version of IE you happen to have installed. If you have IE 7 installed, a 5.5 standalone package would work like 5.5 but would say IE 7 in the about info.

My experience with the standalone packages has been generally good, however they crash for me when using certain javascript methods... especially AJAX related stuff.

I've found the best solution is to install IE 7 and them grab Microsoft Virtual PC (free) and install IE 6 on that. Actually Microsoft provides a image with XP and IE 6 installed details.

I love Firefox, but the fact remains that it has on average 20% market penetration. Not designing for IE compatibility as well is a mistake, regardless of your target audience.

The good news is that IE 7 is much more standards compliant, as long as you don't use "quirks mode" HTML. It's still far from perfect, but better CSS and PNG 32 support is a godsend. Other browsers have had this for ages, but with IE's huge market share it didn't really matter if they did or not. We can only hope IE 7 takes over from IE 6 as soon as possible.




Bitrix Site manager - fast to create, easy to manage CMS Comparison Matrix
Put Your Site Here Developer Links
 

Newsletter

Get updates on Hiveminds services, articles and downloads by signing up for the newsletter.

Editor's choice

Some of the better articles, stories and tutorials found at Hiveminds.

Find more

Find more of Hiveminds articles, stories, tutorials and user comments by searching.




Picked links

Hand picked websites and articles from around the web that provide quality reading.