Unfortunately this did not actually work for me. It helped the install go through to Windows, but any updates after that would send it into hard BSDO + boot-loop mode. Can't even boot to USB, or if it does, the USB installer screen is completely non-responsive. Nothing can be clicked/touched, does not respond to keyboard (including to open the command prompt with Shift-F10), cannot be exited, etc.
Updated: Tried a few more times and eventually got into USB in an responsive way. I repeated the steps and noticed that some of the reg values got reset, so I set them again. Also, this time the diskpart disk/volume numbers were slightly different than before, so anyone running it from the script should double-check.
No luck.
So I manually added the above key that wasn't available by default, and set the values as recommended. Then it took a few more restarts for Windows to fix itself, and now I managed to get back into the full system.