由於需要開發Windows Embedded CE 6的程式,所以保留了一台XP的PC,但是官方的Windows Phone Developer Tools不支援Windows XP,在網上找了一個曲線救國的方法,成功在XP上安裝上Windows Phone Developer Tools。
方法如下:
1. Download the Windows Phone Developer Tools RTM
2. Extract the contents of the setup package by running vm_web.exe /x and choosing a path to extract to
3. Go to the folder you extracted to in step 2 and open the file baseline.dat in notepad
4. Look for the section named [gencomp7788]
5. Change the value InstallOnLHS from 1 to 0
6. Change the value InstallOnWinXP from 1 to 0
7. Save and close baseline.dat
8. Run setup.exe /web from the folder you extracted to in step 2
[gencomp7788]BlockorWarn=1CleanCost=0CommandLine=blocker.exeComponentType=1DetectKey=DetectKeyVal=DetectKeyValData=EncryptionOpt=0EstInstallTime=0Executable=sp.exeIgnoreLaterVersions=1GFN=GFN_MID Block on all OS except Vista and Win7HelpLink=WPDT_OSRequirements.htmInstallOnAMD64=1InstallOnFutureNT=1InstallOnVista=0InstallOnWin7=0InstallOnLHS=0InstallOnIA64=1InstallOnNetServer=1InstallOnWin2k=1InstallOnWinNT4=1InstallOnWinXP=0InstallOnx86=1InstallOnWin7Server=1LangSensitive=optionalmoduleid=61862971-5445-44AE-87AE-3EA15736F848Reboot=0RebootLaterOk=1ReturnType=IeReturnCheckUninstall=0VersionCheck=Blocker
注意,如果不是使用Windows 7和Vista,注意需要為相關係統安裝相應版本的SP
Windows XP Service Pack 3
Windows Server 2003 Service Pack 2
Windows Vista Service Pack 2
Windows Server 2008 Service Pack 2
Windows Server 2008 R2
測試發現,Emulator運行時出錯,其他工具沒有問題。我想應該是DirectX和WDDM的問題,再查一下。 畢竟不是官方支援的工具,使用時有風險。
參考 http://social.msdn.microsoft.com/Forums/en-US/windowsphone7series/thread/6657c1ff-45a6-466a-b20d-f5640e3f0c1f/