Windows 11 will not install with error code

M ike 0 Reputation points
2025-10-14T22:07:49.4566667+00:00

I have used the Installation assistant used to upgrade my PC to Windows 11 from Windows 10.

However, this PC has been through a number of upgrades from Win XP pro, then Win 7 to Win 10 and now trying to install Win 11

During that time it was originally MBR disk (Win 7) then upgraded to an M2 drive running GPT for Win 10.

The original problem I encountered was that the install, would get to the boot screen and hang.

After fixing both the EFI and BcdBoot which showed errors, the upgrade now states that it cannot determine if I can run Win 11 with the error code 0x8007000 - 0x40008

The machine is capable, having been tested through the microsoft checking app.

  • A 6-core processor with a clock speed of 4 GHz. Intel I5 9th generation
  • 32 GB of RAM.
  • 2 TB of available storage space.
  • An Nvidia RTX
  • A Secure Boot Capable UEFI.
  • TPM 2 is enabled by default on the Gigabyte gaming X motherboard
  • An active internet connection.

The Windows 11 OS is the Win11_25H2_English_x64

I have tried absolutely everything suggested so far from many different sources.

Everything is turned off in startup files and all devices disconnected apart from mouse keyboard and monitor.

Windows for home | Other | Windows update
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. M ike 0 Reputation points
    2025-10-14T22:15:05.9433333+00:00

    Addendum

    EFI Partition size is 400GB and has been recreated.

    My original thought was that when Windows 11 install hung at the startup screen, it looked as if it was trying to boot into Windows rather than going through the efi start.

    This was because if I selected the windows to boot from, it looked exactly the same.

    Which is why the EFI and Boot were recreated.

    0 comments No comments

  2. Jeronimo Fuerte 21,995 Reputation points Independent Advisor
    2025-10-14T23:33:58.5433333+00:00

    Hi! I believe the error code means that setup is failing while preparing the SafeOS phase, which very could point to disk-layout issues aften been through multiple migrations (MBR>GPT, rebuilt EFI/BCD, etc.).

    Please confirm the disk is GPT, that only one EFI partition exists on Disk 0, and right-size partitions per Microsoft’s guidance (EFI ≥200 MB FAT32; WinRE ≥300 MB with free space).

    While retrying, leave only the system drive, keyboard, mouse, and display connected (detach other disks/USB devices) to eliminate peripheral conflicts.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.