Sometimes when the installation of Windows fails, it is due to a corrupted registry. You will need to boot into safe mode and run an anti-virus scan on your computers hard drive in order for this issue to be resolved.