1.正常安装Windows XP x64，并安装显卡驱动
2.禁用SFC，进BIOS启用UEFI模式，进入PE
3.如果想UEFI+MBR启动，则建立一个Fat32格式的小分区，将efi目录下的文件复制进去，将OS目录下的文件复制到系统盘，如果系统盘是FAT32分区，则可全部复制到系统盘。
	如果想UEFI+GPT启动，则需要使用工具将整个磁盘转换成GPT分区，并建立ESP分区，将efi目录下的文件复制到这个ESP分区中。 
下面的命令中，FAT32分区为S:，系统分区为C:
4.将EFI\Microsoft\Boot下的BCC文件重命名为BCD，以便bcdedit识别
5.修正BCD文件
执行以下命令

	bcdedit /set {bootmgr} device partition=S: 
	bcdedit /set {ntldr} device partition=C:
	bcdedit /set {ntldr} custom:21000001 partition=C:
	bcdedit /set {9eb8f329-85ae-4953-aba6-2c7d803aa4fe} device partition=C:
	bcdedit /set {9eb8f329-85ae-4953-aba6-2c7d803aa4fe} custom:21000001 partition=C:
	bcdedit /set {0ef2423f-74c2-4688-b906-99c3dc77d8ba} device partition=C:
	bcdedit /set {0ef2423f-74c2-4688-b906-99c3dc77d8ba} custom:21000001 partition=C:
	bcdedit /set {fwbootmgr} displayorder {bootmgr} /addfirst

6.将BCD文件改回BCC。
7.禁用系统自带的VGA驱动
执行以下命令：
	del c:\Windows\Inf\display.* >nul
	reg load HKLM\123 c:\windows\system32\config\SYSTEM
	reg delete "HKLM\123\ControlSet001\Services\vga" /f >nul
	reg delete "HKLM\123\ControlSet001\Hardware Profiles\0001\System\CurrentControlSet\Control\VIDEO" /f >nul
	reg add "HKLM\123\ControlSet001\Hardware Profiles\0001\System\CurrentControlSet\Control\VIDEO\{23A77BF7-ED96-40EC-AF06-9B1F4867732A}\0000" /v "Attach.RelativeX" /t REG_DWORD /d "0" /f >nul
	reg add "HKLM\123\ControlSet001\Hardware Profiles\0001\System\CurrentControlSet\Control\VIDEO\{23A77BF7-ED96-40EC-AF06-9B1F4867732A}\0000" /v "Attach.RelativeY" /t REG_DWORD /d "0" /f >nul
	reg add "HKLM\123\ControlSet001\Hardware Profiles\0001\System\CurrentControlSet\Control\VIDEO\{23A77BF7-ED96-40EC-AF06-9B1F4867732A}\0000" /v "Attach.ToDesktop" /t REG_DWORD /d "1" /f >nul
	reg add "HKLM\123\ControlSet001\Hardware Profiles\0001\System\CurrentControlSet\Control\VIDEO\{23A77BF7-ED96-40EC-AF06-9B1F4867732A}\0000" /v "DefaultSettings.BitsPerPel" /t REG_DWORD /d "32" /f >nul
	reg add "HKLM\123\ControlSet001\Hardware Profiles\0001\System\CurrentControlSet\Control\VIDEO\{23A77BF7-ED96-40EC-AF06-9B1F4867732A}\0000" /v "DefaultSettings.FixedOutput" /t REG_DWORD /d "0" /f >nul
	reg add "HKLM\123\ControlSet001\Hardware Profiles\0001\System\CurrentControlSet\Control\VIDEO\{23A77BF7-ED96-40EC-AF06-9B1F4867732A}\0000" /v "DefaultSettings.Flags" /t REG_DWORD /d "0" /f >nul
	reg add "HKLM\123\ControlSet001\Hardware Profiles\0001\System\CurrentControlSet\Control\VIDEO\{23A77BF7-ED96-40EC-AF06-9B1F4867732A}\0000" /v "DefaultSettings.Orientation" /t REG_DWORD /d "0" /f >nul
	reg add "HKLM\123\ControlSet001\Hardware Profiles\0001\System\CurrentControlSet\Control\VIDEO\{23A77BF7-ED96-40EC-AF06-9B1F4867732A}\0000" /v "DefaultSettings.VRefresh" /t REG_DWORD /d "1" /f >nul
	reg add "HKLM\123\ControlSet001\Hardware Profiles\0001\System\CurrentControlSet\Control\VIDEO\{23A77BF7-ED96-40EC-AF06-9B1F4867732A}\0000" /v "DefaultSettings.XPanning" /t REG_DWORD /d "0" /f >nul
	reg add "HKLM\123\ControlSet001\Hardware Profiles\0001\System\CurrentControlSet\Control\VIDEO\{23A77BF7-ED96-40EC-AF06-9B1F4867732A}\0000" /v "DefaultSettings.XResolution" /t REG_DWORD /d "3840" /f >nul
	reg add "HKLM\123\ControlSet001\Hardware Profiles\0001\System\CurrentControlSet\Control\VIDEO\{23A77BF7-ED96-40EC-AF06-9B1F4867732A}\0000" /v "DefaultSettings.YPanning" /t REG_DWORD /d "0" /f >nul
	reg add "HKLM\123\ControlSet001\Hardware Profiles\0001\System\CurrentControlSet\Control\VIDEO\{23A77BF7-ED96-40EC-AF06-9B1F4867732A}\0000" /v "DefaultSettings.YResolution" /t REG_DWORD /d "2160" /f >nul
	reg unload HKLM\123

8.重启后正常启动。
