When I started the installation of Windows I came to the window to select which disk I want to install it, previously I opened the console and with clean diskpart the disk in which I want to do the installation that incidentally is a Samsung evo 256 GB SSD, then the window in which
starts the installation of Windows but does not even pass 0%, after a few seconds the message "The Windows installation detected an unexpected error." Check if you have access to the installation's origins and then reinstall the installation. 0xC0000005 ".
Hi Pedro:
I had similar problems when I was mixing GPT partitions with legacy booting (without Clover) and the other way around: MBR partition with UEFI booting. Windows is very picky about this and gives all kinds of silly error messages.
In addition, if you already have a GPT disk, the size of the ESP is very important. I think this is more relevant for macOS, but it is something to be aware too.
And a 3rd thing is what someone already told you: having more than one disk in your system while trying to install Windows can lead to problems, and the errors reported by Windows are usually very confusing too.
So here's my advice:
* Disable CSM. This way, you are always sure to be booting in UEFI mode, never in legacy. I know that Asus told you to enable CSM, but ignore them. (I spent days trying to debug a Windows problem that was related to CSM being enabled; I'm trying to save you some grief here.)
* Remove all storage except where you are going to install Windows.
* Format your destination disk as GPT. It's been a while since I installed Windows, so I don't remember if the installer allows for choosing beween GPT or MBR. I tend to used a
bootable Gparted disk to format the destination drive accordingly. The disadvantage of Gparted is that you have to create the ESP manually, format it and set the correct boot bit. This is not for everyone, and I understand that. But it is important to note that
if you let Windows format the ESP for you, macOS Disk Utility might not behave correctly. IIRC, Disk Utility needs a ESP of at least 350MB to behave correctly, and I think Windows formats the ESP as 200MB. That's why I use Gparted and create an ESP with 512MB (0.5GB). This way I know that both Windows and macOS will behave properly. Then I also add a destination partition for Windows, that I reformat when I run the Windows installer.
* Boot into your USB and make sure you are booting in UEFI, not legacy mode. The installation should now proceed correctly. I always reformat the destination partition using the installer, even if it was formatted in Gparted previously.
Note that Gparted is not really necessary, just some program that allows you to set the ESP to a certain size while formatting the disk as GPT.
Good luck.