Micro SD card inside USB adapter (MBR with 64-bit Tiano Core UEFI for the Raspberry Pi 3 & empty partition for Windows paging file)
diskpart
list disk
select disk X (micro sd)
clean
convert mbr
create partition primary size=124
format fs=fat32
active
assign letter q
create partition primary
format fs=ntfs quick
assign letter r
exit
copy the EFI files to q:\ (available from https://github.com/andreiw/RaspberryPiPkg)
bootcode.bin
fixup.dat
RPI_EFI
start.elf
config.txt
“arm_control=0x200
enable_uart=1
armstub=RPI_EFI.fd
disable_commandline_tags=1
disable_splash=1
disable_overscan=1
max_usb_current=1”
SSD USB (GPT with EFI System Partition and Windows)
A note about the driver INF files: https://www.youtube.com/watch?v=xYPZf8rzr4g
create c:\wim and c:\mount and c:\drivers (latter containing subfolders of the Core Driver Pack 1.4)
https://www.worproject.ml/downloads
Download Windows 10 ARM64 ISO from https://uupdump.ml/ or https://uup.rg-adguard.net/index.php (17134 recommended)
Extract ISO using 7-Zip (or mount it) and copy the install.wim from the source folder to c:\wim
diskpart
list disk
select disk x (external SSD)
clean
convert gpt
create partition efi size=124
format fs=fat32
assign letter s
create partition primary size=30000
format fs=ntfs quick
assign letter w
exit
One improvement here would be to add the recovery partition from the extracted/mounted ISO (another time!)
dism /mount-image /imagefile:c:\wim\install.wim /Index:1 /MountDir:c:\mount
dism /image:c:\mount /add-driver /driver:c:\drivers /recurse /forceunsigned
dism /unmount-wim /mountdir:c:\mount /commit
dism /apply-image /imagefile:c:\wim\install.wim /index:1 /applydir:W:
bcdboot W:\Windows /s s: /f UEFI
bcdedit /store s:\EFI\Microsoft\Boot\bcd /set {default} testsigning on
bcdedit /store s:\EFI\Microsoft\Boot\bcd /set {default} nointegritychecks on
Raspberry Pi
Plug MicroSD + hub-powered USB into Raspberry Pi and boot the UEFI from memory card (press ESC during Raspberry logo for UEFI menu) and then remove all boot options except USB (or change boot order so USB is at the top) then choose boot manager > boot from USB (or just save and hit continue to go straight into USB boot). There will be one restart during install.
Once at the desktop
Run batch script as admin to disable superfetch, etc. (https://gist.github.com/BenNottelling/9c43d168e8344ac7c971c701c5f5e455)
powershell -executionPolicy bypass -file decrapifier.ps1 -ClearStart -appaccess (see: https://community.spiceworks.com/scripts/show/4378-windows-10-decrapifier-1803-1809)
Adjust windows 10 for best performance
Disable windows defender
DISM /Online /Cleanup-Image /RestoreHealth (might not be needed anymore)
SFC /scannow (might not be needed anymore)
Reboot
Recommended apps
Firefox nightly aarch64 installer https://archive.mozilla.org/pub/firefox/nightly/latest-mozilla-central/
VLC - click dropdown arrow and choose ARM64 version https://www.videolan.org/vlc/download-windows.html