Multiple versions of IE in one Windows PC – Prepare for IE7

Update 2006-09-28: All IE Browsers Standalone On Same PC (September 28, 2006) solves the problem.

UPDATE 2006-02-03: The method described below will sometimes not work. To run IE7 and IE6 side-by-side, see the new post “IE7 beta running side by side with IE6“. For older versions of IE, this still works and you could safely continue as described below, (but you should acknowledge that this is still “unsupported”, and is likely to make Internet Explorer less stable).

For some time I’ve used a trick from Quirksmode.org (Peter Paul Koch) to test webpages with different versions if Microsoft Internet Explorer (IE) on the same machine. This trick can come in handy if you want to run usability tests with old versions of IE.

How would you test a webpage in IE 6 when IE 7 is released? Here’s a simple way that does not require multiple machines or complicated setups of multiple operating systems.

Usually IE upgrades and removes the old version of the browser. This is OK for most web users, but when I test and develop pages, its often convenient to have an old IE version available.

The method has been known for quite some years, and today I found information on how to transform Internet Explorer 6 to a standalone version. In that way, you’re prepared when IE7 is released.
The following is a comment from IE blog (comment by NocturnDragon):

Make IE6 standalone and then upgrade to IE7 when you’ll get it.you just need to copy this files to a folder of your choice (almost all of them are in the system32 folder)browseui.dll
dispex.dll
iexplore.exe
inetcpl.cpl
jscript.dll
mshtml.dll
mshtml.tlb
shdocvw.dll
urlmon.dll
vbscript.dll
xpsp2res.dlland do not forget to create a empty file inside that folder called: iexplore.exe.localI wonder why MS is so reluctant to let you do this with a simple checkbox during the install!I’ve been running IE5.0, IE5.5 and IE6.0 standalone for some time now. That’s the simplest way to test your webpages on all of them.

Just for the record, here is a reference to Peter Paul Koch’s original article, which I’m confident that he’ll update when IE7 is released.

A solution has been found however, by web developer Joe Maddalone who deserves eternal fame. Read his page for the technical details.

Web developer Ryan Parman made the customized browsers files available on his site. I copied them to my server to make sure this valuable resource doesn’t disappear. Subsequently I found similarly doctored Explorer 3 and 4 versions on nachtarchiv.de.

Here’s how it works:

  1. Start with a Windows XP box with Explorer 6 installed on it. I have heard, but not tested, that this will also work on Windows 2000.
  2. Download the browsers of your choice:
  3. Unzip the zip files and put them somewhere in a directory.
  4. To run the browsers, execute the IEXPLORE.EXE files in each directory. This works. Nonetheless, keeping the versions apart is not simple.
  5. I verified that this were in fact working copies of 5.01 and 5.5 by some simple CSS tests you can do right here on this site. See below.
  6. Nonetheless you’ll find problems. The Help -> Info screen, for instance, always shows the Explorer 6.0 version number, even though the image above it says “Explorer 4” in 4.0, “Explorer 5” in 5.0, but “Explorer 6.0” in 5.5.
  7. The user agent string seems to work fine, though. To help you keep these versions apart I wrote a simple script that precedes the document title by the IE version.

I’ve been using this trick on several occations, and even on Windows XP it introduces some stability problems in Internet Explorer.

  • It sometimes crash when you choose bookmarks.
  • It also shows IE6 information in the “about” box in all the installed versions
  • Internet Explorer 4 address bar does not work (instead press CTRL+L to load a page)

Decide for your self if you can use this trick. I can live with the crashes becaus it has a huge advantage for me that I can test HTML and CSS early in the development.

Technorati Tags: , , , , , , , , , , ,

8 Responses to “Multiple versions of IE in one Windows PC – Prepare for IE7”

  1. Casper Fabricius Says:

    This works as expected for me with IE4, IE5 and I5.5 – great tip!

    However, I’m running the beta of IE7, and I’ve just grabbed the IE6 files from another computer to try this out, and the behaviour seems to get a bit funky. When I enter a url in the address bar of my “fake” IE6, it opens up the page in Firefox, which is my default browser!

    If I make IE my default browser and enters a url in IE6, it is opened in a new IE6 browser window, however, if IE7 is also running, the page is opened in a new tab in IE7. It seems like IE6 is making a “system call” or something to let Windows decide who should open the page, instead of just opening it, I don’t know …

    But it works, you just have make IE6 you default browser and make sure you don’t have IE7 running!

  2. Jesper Rønn-Jensen Says:

    Casper,
    thanks for sharing your experience. Due to the nature of this hack, I’d be surprised if it were just working smoothly with no problems.

    I must say that one of the primary reasons I use this trick, is to have browsers up and runninng side-by-side. If you’re not able to run IE6 and IE7 simultaneouosly, the hack looses its purpose.

    Please share any updates if you get it working!

  3. Jesper Rønn-Jensen Says:

    Just tried this with todays release of IE7 pre beta 2 (on Windows XP service pack 2). It resulted in exactly the same problem as Casper describes above.
    I have a feeling that a dll file or two might be missing in the file list in the post.

    There might be another way around: How about an IE7 standalone version on a machine that still defaults to IE6?

    IE7 Standalone Launch Script
    Run I.E.7 beta and I.E.6 side-by-side
    Should IE7 and IE6 work side-by-side?
    Multiple IEs in Windows (this one mentions the same files as mentioned by NocturnDragon above)
    IE7 beta side-by-side with IE6
    I’ll post an update when I’ve tried it. There are some references about this I’d like to check out. Please post a comment and share your own experiences!

  4. User Interface Blog » Internet Explorer 7 Beta 2 Released Says:

    […] Jesper Rønn-Jensen has written a blog entry on how to run multiple version of IE on a PC. […]

  5. justaddwater.dk | IE7 beta running side by side with IE6 Says:

    […] In the comments of “Multiple versions of IE in one Windows PC” I could see that other people also had problems with the suggestion to make IE6 standalone. […]

  6. justaddwater.dk | All IE Browsers Standalone On Same PC Says:

    […] Standalone versions of Internet Explorers have been available for a long time. (i blogged about it before back in January and February). The new and best thing is that it’s now dead simple and really really easy to use. […]

  7. Max Gates Says:

    Great tips thanks. I didn’t knew it was possible to run two versions of IE side by side. But don’t you think its really not required to do this. Microsoft gives you the option to roll back to previous version of IE if you are not satisfied with the current one. Of course if you just want to use two IE versions at same time then this trick is very handy.