Windows 7 x64 on UEFI without Legacy Support/CSM

If your MB supports CSM, install Windows 7 with CSM enabled but select "UEFI" as boot device and install Windows 7 normally. After all the updates and drivers are installed. you can remove the standard VGA drivers and boot without CSM. That's the script i used to remove it automatically:

rem disable vga.sys 640x480 16 colors
rem ren %SystemRoot%\system32\drivers\vga.sys *.off
set Services=HKLM\SYSTEM\CurrentControlSet\Services
reg.exe add "%Services%\Vga" /f /t REG_DWORD /v "Start" /d 4
reg.exe add "%Services%\VgaSave" /f /t REG_DWORD /v "Start" /d 4

rem disable VGA at bootmgr
bcdedit.exe /set {current} bootlog yes
bcdedit.exe /set {current} bootstatuspolicy IgnoreAllFailures
bcdedit.exe /set {current} novesa on
bcdedit.exe /set {current} quietboot on