在WIN7下使用XP Mode安裝IE6+

來源:互聯網
上載者:User

我想看過來的人肯定是搞前端或者跟前端有關的人,讓我們默念IE6 Must die~~~!!!

引用:http://blog.dotsmart.net/2009/06/24/using-windows-7s-xp-mode-to-run-ie-6-and-ie-7-side-by-side/

Windows 7’s XP Mode is essentially a Windows XP virtual machine that runs in the new Windows 7 version of Virtual PC. This new edition of Virtual PC includes cool features such as seamless windows. The main reason I’m interested in this is to run older versions of Internet Explorer for testing purposes. IE8’s compatibility mode does a pretty good job of emulating IE7 but there are differences, so I investigated how to get “real” IE7 running under Windows 7’s XP Mode, without losing IE6.

Out of the box, the Virtual PC image is Windows XP SP3 with IE6. The trick to getting IE6 to appear as a seamless window like this is to launch the Virtual Windows XP virtual machine and in the VM, create a shortcut in the “All Users” Start Menu or desktop:

After a short delay, the shortcut will be duplicated into the Windows 7 host’s start menu:

When you launch this shortcut in Windows 7, the main Virtual PC window will close and the application will be launched and projected onto your desktop.

Creating a VM for IE7

You can’t install IE7 side-by-side with IE6 on the same machine, so to run IE7 at the same time as IE6 we will need to create a new VM. Unfortunately, if you run the VirtualWindowsXP.msi setup again you’ll get a message saying “Setup has detected that Virtual Windows XP is already installed”:

The workaround is to create a new instance of the VM manually using the supplied VHD as the base disk image. To do this do the following:

Open the Virtual Machines folder from the Start Menu and click Create virtual machine:

Specify a name and location for the virtual machine:

For memory I specified 256MB, which should me more than enough for just running IE7:

Here’s the important bit. Choose “Create a virtual hard disk using advanced options”

…and then choose a Differencing disk. This is the same way that the default Virtual Windows XP VM is set up:

If you want, you can change the default name and location (I didn’t bother):

For the parent virtual hard disk choose the original Virtual Windows XP virtual disk, which on my machine was at C:\Program Files\Virtual Windows XP\Virtual Windows XP.vhd:

Now start the new Virtual PC you just created from the Virtual Machines folder and complete Windows Setup as appropriate, choosing a computer name unique for your network and an Administrator password:

When that’s done:

  • Enable Integration Features from the Tools menu of the Virtual PC window
    • For credentials enter Administrator and the password you entered during setup.
    • I chose to Remember my credentials for convenience
  • download and install IE7 in the VM,

When IE7 has installed and rebooted, create a shortcut to IE7 in the “All Users” start menu which, after a short delay, will create a corresponding shortcut in the Windows 7 start menu of the host.

So here’s the end result, IE6, IE7 and IE8 all running on Windows 7:

 

注意點:

1、未裝WIN7 SP1的朋友請先安裝XP Mode的功能補丁;

2、初次安裝XPMode時可以設定預設的VM路徑,我想大部分朋友的C盤都不富裕,而且方便重裝後使用;

3、在上文中安裝第二個虛擬機器時,如果您用的是中文版就要選擇差異盤,意思顧名思義,當然了穩中有歧義的是您不必非搞差異盤,如果您願意選哪個都行;

4、使用差異盤的話注意父磁碟的選擇,不要把多個系統高多級啊什麼的,我嘗試後就是狂報錯,還是使用預設的吧,路徑上文中有;

5、安裝整合工具時要小心,最好先選自動更新,我不知道是不是這個原因,等整合工具安裝成功後再關更新不遲;

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.