Windows 10: Solution for Failed Windows 10 Update Installation Error 0x80004005 Solved


  1. Posts : 1,591
    Windows 10 Home x64 (Laptop), Windows 10 Pro x64 (Desktop)
       05 Dec 2015 #1

    Solution for Failed Windows 10 Update Installation Error 0x80004005


    I've finally solved the problem preventing me from updating my Dell Inspiron 7537 laptop from Windows 8.1 Home to Windows 10 as described in https://www.tenforums.com/installatio...at-next-2.html.

    The installation was consistently failing at the point where Windows is about to restart for the first time with a grey information window titled "Something has happened" with the information "Windows 10 installation has failed".

    I've posted below how to diagnose and repair your PC to enable the Windows 10 installation to proceed. The installation should proceed smoothly once the error is corrected.

    Symptoms
    1. You are booting in UEFI mode i.e. you have a separate EFI System Partition (ESP) on your system disk.
    2. You are updating from Windows 8.1 to Windows 10 using the USB install disk, a mounted ISO update image or Windows Update.
    3. The installation consistently fails at the point where Windows is about to restart for the first time with a grey information window titled "Something has happened" with the information "Windows 10 installation has failed".
    4. The setuperr.log installation error logging file contains error 0x80004005 towards the end of the file and there is an error message referring to "Failed to backup BCD database".
    5. The command bcdedit /export <yourfilename> fails with the error "The store export operation has failed. The handle is invalid".


    Diagnosis
    1. The ESP partition has become corrupted causing the failure to export the boot configuration data and failure of the Windows 10 installer. Note your PC may boot to Windows 8.1 normally despite the corruption.
    2. The boot configuration data on the ESP partition needs to be repaired to enable the installation to proceed.


    Solution
    The successful solution I implemented is shown below.


    1. Perform a full backup of your Windows system (I recommend Macrium Reflect). Your PC may be unbootable if the repair is not implemented correctly.
    2. Boot the computer using the Windows 8 installation bootable DVD. Make sure you boot the media in the same configuration as your UEFI installation.
    3. On the ‘Windows Setup’ wizard click on ‘Next’ and click on ‘Repair your computer’.
    4. You will then see a blue screen and an option to choose.
    5. Click on ‘Troubleshoot’ then click on ‘Advanced Option’ and then click on ‘Command Prompt’.
    6. Type these commands on the Command Prompt for UEFI configuration:


    • diskpart (opens Disk Partitioning tool)
    • select disk 0 (or whichever disk is your system disk)
    • list volume (please note the number of the volume that has no drive letter assigned and has FAT32 listed in the FS column, usually the only FAT32 volume/partition)
    • select volume x <where x is the number of 100-500 MB FAT32 volume with no drive letter, or with label ESP, EFI or SYSTEM>
    • assign letter=Z: (gives drive letter Z: to EFI System Partition)
    • list volume (to check drive letter Z: is correctly assigned)
    • exit (closes Disk Partitioning tool)
    • cd /d Z:\EFI\Microsoft\Boot\ (changes current folder in Command Prompt window)
    • attrib Z:\EFI\Microsoft\Boot\BCD -h -r -s (removes hidden, read-only and system attributes from BCD folder)
    • bootrec /fixboot (writes a new boot sector to the system partition)
    • ren Z:\EFI\Microsoft\Boot\BCD BCD.old (renames BCD folder to BCD.old)
    • bcdboot c:\Windows /l en-gb /s z: /f ALL (en-gb is for the UK - use your own locale)



    Installation Checking

    Your boot configuration is probably correctly configured if the following commands report correctly.


    1. Confirm the PC boots
    2. Run bcdedit and confirm boot configuration is correct. You can use bcdedit /enum all for the full details,
    3. Run reagentc /info and check recovery configuration is correct. In my case, Windows RE was not configured and I had to run regaentc /enable to enable it.
    4. Run bcdedit /export <yourfilename> and confirm the command works
    5. Minitool Partition Wizard may be used to explore the EFI system partition and confirm the correct files have been copied


    Your Windows 10 installation should proceed correctly once the above error is fixed. I only wish Microsoft would use more informative error messages which would have saved me significant time and effort trying to solve this problem.
    Last edited by Steve C; 19 Jun 2016 at 00:13.
      My ComputerSystem Spec


  2. Posts : 1
    Windows 8.1 / Windows 10
       18 Jun 2016 #2

    This worked for me after 36 failed attempts and trying everything else


    [QUOTE=Steve C;491440]I've finally solved the problem preventing me from updating my Dell Inspiron 7537 laptop from Windows 8.1 Home to Windows 10 as described in https://www.tenforums.com/installatio...at-next-2.html.

    The installation was consistently failing at the point where Windows is about to restart for the first time with a grey information window titled "Something has happened" with the information "Windows 10 installation has failed".

    I've posted below how to diagnose and repair your PC to enable the Windows 10 installation to proceed. The installation should proceed smoothly once the error is corrected.

    Symptoms
    1. You are booting in UEFI mode i.e. you have a separate EFI System Partition (ESP) on your system disk.
    2. You are updating from Windows 8.1 to Windows 10 using the USB install disk, a mounted ISO update image or Windows Update.
    3. The installation consistently fails at the point where Windows is about to restart for the first time with a grey information window titled "Something has happened" with the information "Windows 10 installation has failed".
    4. The setuperr.log installation error logging file contains error 0x80004005 towards the end of the file and there is an error message referring to "Failed to backup BCD database".
    5. The command bcdedit /export <yourfilename> fails with the error "The store export operation has failed. The handle is invalid".



    1. Perform a full backup of your Windows system (I recommend Macrium Reflect). Your PC may be unbootable if the repair is not implemented correctly.
    2. Boot the computer using the Windows 8 installation bootable DVD. Make sure you boot the media in the same configuration as your UEFI installation.
    3. On the ‘Windows Setup’ wizard click on ‘Next’ and click on ‘Repair your computer’.
    4. You will then see a blue screen and an option to choose.
    5. Click on ‘Troubleshoot’ then click on ‘Advanced Option’ and then click on ‘Command Prompt’.
    6. Type these commands on the Command Prompt for UEFI configuration:


    • diskpart (opens Disk Partitioning tool)
    • select disk 0 (or whichever disk is your system disk)
    • list volume (please note the number of the volume that has no drive letter assigned and has FAT32 listed in the FS column, usually the only FAT32 volume/partition)
    • select volume x <where x is the number of 100-500 MB FAT32 volume with no drive letter, or with label ESP, EFI or SYSTEM>
    • assign letter=Z: (gives drive letter Z: to EFI System Partition)
    • list volume (to check drive letter Z: is correctly assigned)
    • exit (closes Disk Partitioning tool)
    • cd /d Z:\EFI\Microsoft\Boot\ (changes current folder in Command Prompt window)
    • attrib Z:\EFI\Microsoft\Boot\BCD -h -r -s (removes hidden, read-only and system attributes from BCD folder)
    • bootrec /fixboot (writes a new boot sector to the system partition)
    • ren Z:\EFI\Microsoft\Boot\BCD BCD.old (renames BCD folder to BCD.old)
    • bcdboot c:\Windows /l en-gb /s b: /f ALL (en-gb is for the UK - use your own locale)



    QUOTE]
    Thanks very much Steve C - This worked for me after everything else failed
    Minor correction needed to the last line of step 6: b: should be Z:
    bcdboot c:\Windows /l en-gb /s Z: /f ALL
    Thanks VERY much Gerry A
      My ComputerSystem Spec

  3.    17 Jul 2016 #3

    I considered posting in a separate thread but on consideration realised that it was this thread that pointed me in the right direction. I too was receiving the 80004005 error.

    After multiple attempts to upgrade from Win7 the upgrade process was failing consistently just at the point of the first boot. My system is BIOS not UEFI based. To get into the Windows recovery environment I found that I could use the recovery environment from the Media Creation Tool - although it is better to used the DVD rather than USB for this purpose ( the USB recovery environment assigned different letters to the hidden system and other recovery partitions).

    I could not though get Bootrec /fixboot to run correctly . I kept getting a message saying that there was no recognised file system on the volume/partition . Some Googling about this suggested corruptions on the partition. What then worked for me was to run
    CHKDSK X: /f /r on each drive replacing X with the drive/partition letter concerned

    Sure enough the system partition showed bad sectors and repairs on BOOT.DAT. Checked all the other drives and then re-ran the upgrade to Win10 . Upgraded successfully on the first attempt.
    @Steve C , @ivygda - thank you both for your posts - wish I had found them a couple of weeks ago
      My ComputerSystem Spec


  4. Posts : 11,659
    W10Prox64
       17 Jul 2016 #4

    Eireannach said: View Post
    I considered posting in a separate thread but on consideration realised that it was this thread that pointed me in the right direction. I too was receiving the 80004005 error.

    After multiple attempts to upgrade from Win7 the upgrade process was failing consistently just at the point of the first boot. My system is BIOS not UEFI based. To get into the Windows recovery environment I found that I could use the recovery environment from the Media Creation Tool - although it is better to used the DVD rather than USB for this purpose ( the USB recovery environment assigned different letters to the hidden system and other recovery partitions).

    I could not though get Bootrec /fixboot to run correctly . I kept getting a message saying that there was no recognised file system on the volume/partition . Some Googling about this suggested corruptions on the partition. What then worked for me was to run
    CHKDSK X: /f /r on each drive replacing X with the drive/partition letter concerned

    Sure enough the system partition showed bad sectors and repairs on BOOT.DAT. Checked all the other drives and then re-ran the upgrade to Win10 . Upgraded successfully on the first attempt.
    @Steve C , @ivygda - thank you both for your posts - wish I had found them a couple of weeks ago
    Thanks for creating an account and posting your results! Hopefully it will help others in the future. Cheers!
      My ComputerSystem Spec

  5.    09 Jan 2017 #5

    Worked!


    1. The setuperr.log installation error logging file contains error 0x80004005 towards the end of the file and there is an error message referring to "Failed to backup BCD database".

    Solution
    The successful solution I implemented is shown below.


    I've tried for months to get the Anniversary Update to work after the dreaded 0x80004005 error without success. I did start to suspect the UEFI as root cause and searching for the error and UEFI came back with this note. And it worked first time!
    At last. Thanks so much - and indeed: if Microsoft would have given a more informative message, it would have saved you (and me) a lot of time! Thanks again.
      My ComputerSystem Spec


  6. Posts : 1,591
    Windows 10 Home x64 (Laptop), Windows 10 Pro x64 (Desktop)
    Thread Starter
       10 Jan 2017 #6

    deklerkt said: View Post
    1. The setuperr.log installation error logging file contains error 0x80004005 towards the end of the file and there is an error message referring to "Failed to backup BCD database".

    Solution
    The successful solution I implemented is shown below.


    I've tried for months to get the Anniversary Update to work after the dreaded 0x80004005 error without success. I did start to suspect the UEFI as root cause and searching for the error and UEFI came back with this note. And it worked first time!
    At last. Thanks so much - and indeed: if Microsoft would have given a more informative message, it would have saved you (and me) a lot of time! Thanks again.
    I'm pleased my fix worked for you. My laptop still had some issues after upgrading to Windows 10 so I eventually did a clean install & upgraded to a SSD at the same time. However, the fix was useful to get Windows 10 working on the laptop and get the activation / digital entitlement allowing future installations.
      My ComputerSystem Spec

  7.    10 Jan 2017 #7

    Your description was for updating 8.1 to 10. That worked for me. My system failed going to the 1511 build last year (with finally clean installing it) but I was surprised that it also did not want to update to the Anniversary edition for - again - unclear reasons. The only change made was copying the entire system disc from 100 GB SSD to 200 GB. Maybe the UEFI partition wasn't copied correctly causing the less than informative error. But fortunately your fix works for many updates where the BCD file got corrupted.

    I had tried Paragon Hard Disc Manager's "Bootmanager" feature to replace the BCD but that did not do the trick - your manual procedure did. I'm very happy with that, so thanks again!
      My ComputerSystem Spec

  8.    10 Jan 2017 #8

    Steve C said: View Post
    6. Type these commands on the Command Prompt for UEFI configuration:


    • diskpart (opens Disk Partitioning tool)
    • select disk 0 (or whichever disk is your system disk)
    • list volume (please note the number of the volume that has no drive letter assigned and has FAT32 listed in the FS column, usually the only FAT32 volume/partition)
    • select volume x <where x is the number of 100-500 MB FAT32 volume with no drive letter, or with label ESP, EFI or SYSTEM>
    • assign letter=Z: (gives drive letter Z: to EFI System Partition)
    • list volume (to check drive letter Z: is correctly assigned)
    • exit (closes Disk Partitioning tool)
    • cd /d Z:\EFI\Microsoft\Boot\ (changes current folder in Command Prompt window)
    • attrib Z:\EFI\Microsoft\Boot\BCD -h -r -s (removes hidden, read-only and system attributes from BCD folder)
    • bootrec /fixboot (writes a new boot sector to the system partition)
    • ren Z:\EFI\Microsoft\Boot\BCD BCD.old (renames BCD folder to BCD.old)
    • bcdboot c:\Windows /l en-gb /s z: /f ALL (en-gb is for the UK - use your own locale)

    How to recreate the system partition boot files

    GPT partition style

    BCDBoot copies the boot files from the Windows 10 partition to the EFI system partition and creates the Boot Configuration Data (BCD) store in the same partition.

    Click image for larger version. 

Name:	GPT - fix bootloader.png 
Views:	3 
Size:	36.7 KB 
ID:	116515

    MBR partition style

    BCDBoot copies the boot files from the Windows 10 partition to the system partition (active partition) on the primary hard drive and creates the Boot Configuration Data (BCD) store in the same partition. If the System Reserved partition exists, it is the system partition, if not, the Windows 10 partition is the system partition.

    Click image for larger version. 

Name:	MBR - fix bootloader.png 
Views:	1 
Size:	41.3 KB 
ID:	116516

    For more info look at post #24 in this thread: https://www.tenforums.com/installati...tml#post901772
      My ComputerSystem Spec


 

Related Threads
I'm trying to upgrade my HP Envy 15 J2E89EA from 8.1 Home to 10 Home but it keeps failing with the above message. It also gives me 0xC1900101 - 0x40017. I've been using a Win 64 ISO DVD, I did a windows Update check beforehand but it was already up...
Bought a new PC with Windows 10 already installed, but have not been able to install a printer in the couple of weeks that I've had it. The print spooler will not start will not start manually or automatically when I try to get it going from the...
Solved Windows Update error 0x80004005 for KB3087040!!! in Windows Updates and Activation
Hallo. Today i tried to install an update (KB3087040) a security update for Internet Explorer Flash Player and it cant install due to that error message 0x80004005! What is happening! Is it critical? Thank you!
When I try to download the cummulitive update KB3081436, I get no where passed 0%. After about 3 minutes, the screen changes to recieve the error 0x80004005. According to the microsoft windows website, I need to activate my windows(Already been...
About 24 percent into the Windows 10 upgrade installation from Windows 8.1, using the Windows Media Creation Tool, I get the error "Windows 10 installation has failed" error. I searched around, and found a similar post. The popup looks the same....
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 17:41.
Find Us