If you are unable to install windows and get the error-code
0x80004005 or error-code
0x80300024 windows is most likely confused about which drive the installation media should install Windows onto.
To resolve this, turn off your computer, unplug all of your internal drives except the drive were windows will be installed and reboot.
Upon rebooting you should be able to create a partition and continue with your installation. After the installation is complete make sure to reconnect your drives so that your OS-installation drive is in the first SATA-Port of your motherboard. Doing this prevents any boot-priority issues that you might otherwise come across. Also make sure to update your boot priority in your BIOS.
We couldn't install Windows in the location you chose. Please check your media drive. Here's more info about what happened: 0x80300024.*
We couldn't create a new parition. [Error 0x80004005]
Windows cannot be Installed to this disk. The selected disk is of the GPT partition style. Windows cannot be installed to this disk. This computer's hardware may not support booting to this disk. Ensure that the disk's controller is enabled in the computer's BIOS menu.
Unplugging all the internal disks except the drive that the OS will be installed on fixes the problem for me.
Installation now works!
Hope this helps.
Got another solution? Post it in the comments below!