Feed on
Posts
Comments
Email訂閱

去年底換了筆電,裝了windows8,但就沒有了xp + IE8的測試環境,畢竟目前IE8的使用比率還是頗高。加上IE8並不支援HTML5,所以若是使用到HTML5的新功能,如pushState,在IE8變無法正常運作。於是有必要加開發好的網頁程式在xp+IE8的環境下再測試一次。但由於隨機版的windows8只是家庭版,而虛擬機器Hyper-V,要專業版才有,所以若不想花銀子升級專業版,只好回頭裝Virtual PC。但壞消息是Virtual PC並不能正常在Win8上運作,而好消息是只要替換vmm.sys,win8上還是可以跑Virtual PC。

接下來關於XP + IE系統的映像檔(image)的取得,微軟官網上XP+IE8在2003.2.15之後就不能使用了,幸好還是有網友找到從XP mode萃取出xp image的方法。當然若不想這麼麻煩,也是可以直接在Virtual PC上安裝XP。

歸結以安裝Virtual PC 2007在win8建立Windows XP + IE8的測試環境的步驟是:

 

Install Virtual PC 2007. or something (to get round the Windows 8 saying this isn’t compatible dialog).

Install the Windows Phone SDK 7.1 (will say that 2 parts of the install have failed on mine, but didn’t matter)

Install the Windows Phone SDK 7.1.1.

  1. 取得Virtual PC 2007,64bits 中文版。參考這篇文章
  2. 安裝Virtual PC 2007,參考這篇文章讓win8上可以跑Virtual PC 2007。
    • Rename Virtual PC.exe to vpc.exe
    • Install the Windows Phone SDK。主要是取得更新版本的vmm.sys。之後可以把這個SDK移除。
  3. 取得xp的image。參考這篇文章取得Windows XP Mode 繁體中文版。微軟官方的其他image下載點在此
  4. 開啟XP VM後,在Action選單中安裝Virtual Machine Additions讓實體機器與虛擬機器之間的運作更順暢,並可分享檔案。不過奇怪的是Windows8的C:\Users,也就是使用者資料夾的共用,才能被XP VM正常存取。或許是有一些共用的權限我還沒有了解完全。

 

留言區