Disclosure: These steps (at least for me) worked until it was time to actually install the files, in the Windows installer. This may be a configuration or hardware issue, but I am not totally sure.
This will help you set up a boot drive to install Windows 10, using a Mac. If you have a PC, this should be easier, using instructions at: https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/install-windows-from-a-usb-flash-drive
- You will use a US version of Windows 10 (if not, then you may need to change the variables a bit)
- You have a detachable USB device (minimum 5GB)
- Get a Windows 10 ISO file from: https://www.microsoft.com/en-gb/software-download/windows10ISO
- Install Homebrew if you don't have it:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
- Install
wimlib
(which allows splitting the big WIM file, included in ISO):brew install wimlib
- Get a key; there is a grey market for OEM keys, for example Kinguin: https://www.kinguin.net/category/19429/windows-10-professional-oem-key
- Plug in your USB device (minimum 5GB)
- Ensure the below variables are correct; you can of course export them as you go, and as you get to see the values
export DISK_NAME=/dev/disk2
export ISO_NAME=Win10_2004_V1_English_x64.iso
export VOLUME_NAME=CCCOMA_X64FRE_EN-US_DV9
- List devices:
diskutil list
diskutil eraseDisk MS-DOS "WIN10" GPT $DISK_NAME
; Absolutely ensure this is correct from yourdiskutil list
command!hdiutil mount ~/Downloads/$ISO_NAME
rsync -vha --exclude=sources/install.wim /Volumes/$VOLUME_NAME/ /Volumes/WIN10
mkdir /Volumes/WIN10/sources
wimlib-imagex split /Volumes/$VOLUME_NAME/sources/install.wim /Volumes/WIN10/sources/install.swm 4000