0x80040c97 Error: OneDrive Couldn’t be Installed [Fix]

Stopping existing OneDrive processes before reisntallation is helpful

by Afam Onyimadu
Afam Onyimadu
Afam Onyimadu
Editor
Afam is a geek and the go-to among his peers for computer solutions. He has a wealth of experience with Windows operating systems, dating back to his introduction... read more
Reviewed by Alex Serban
Alex Serban
Alex Serban
Windows Server & Networking Expert
After moving away from the corporate work-style, Alex has found rewards in a lifestyle of constant analysis, team coordination and pestering his colleagues. Holding an MCSA Windows Server... read more
Affiliate Disclosure
  • The error code 0x80040c97 typically indicates that the installation process for OneDrive has encountered a problem and cannot be completed successfully.
  • Corrupted installation files, insufficient permissions, and a corrupted Windows registry, among other elements, may cause the error.
XINSTALL BY CLICKING THE DOWNLOAD FILE
Easily get rid of Windows errors Fortect is a system repair tool that can scan your complete system for damaged or missing OS files and replace them with working versions from its repository automatically. Boost your PC performance in three easy steps:
  1. Download and Install Fortect on your PC.
  2. Launch the tool and Start scanning
  3. Right-click on Repair, and fix it within a few minutes
  • 0 readers have already downloaded Fortect so far this month

OneDrive is a Microsoft file hosting service that allows registered users to synchronize and share their data. However, issues like the 0x80040c97 error will restrict its installation on your device.

There are a few practical solutions, and in this guide, we will share them and some probable causes.

What causes the OndeDrive 0x80040c97 error?

  • Corrupt setup files – If there are corrupt system or app files, the installation may not go through, triggering the OneDrive error 0x80040c97. Note that corruption may be a sign of malware.
  • Antivirus or Windows firewall – Your antivirus Windows Firewall may be blocking OneDrive’s setup files from installing, thereby triggering the error. We recommend using only a compatible antivirus.
  • Incorrect permissions – If you do not have the right to install the app, you may also get this error.
  • Corrupted Windows registry – If your Windows registry is corrupted or edited, it can cause various problems, including this OneDrive error.

How do I fix error 0x80040c97?

We recommend you first start with these easy workarounds:

  • Scan for malware with reliable antivirus software.
  • Disable your antivirus or firewall temporarily, as it may block the installation.
  • Try installing OneDrive with an administrator account.
  • Have your hardware checked to rule out the error due to a bad device component.

However, if after the above pre-solutions, the error persists, proceed to the more detailed steps below.

1. Properly uninstall any old OneDrive installation

  1. Press the Windows key, type PowerShell, and click on Run as administrator.
    0x80040c97
  2. Paste the script below in PowerShell and hit Enter.
    taskkill /f /im OneDrive.exe
    0x80040c97
  3. If you use a 32-bit system, paste the uninstall script below and hit Enter.
    %SystemRoot%\System32\OneDriveSetup.exe /uninstall
  4. While for a 64-bit device, paste the script below and hit Enter.
    %SystemRoot%\SysWOW64\OneDriveSetup.exe /uninstall
    0x80040c97
  5. Try reinstalling the app and see if the 0x80040c97 error is fixed.

2. Edit the DisableFileSyncNGSC registry value

  1. Press Windows + R to open the Run dialog.
  2. Type regedit and hit Enter to open the Registry Editor.
    0x80040c97
  3. Navigate to the path below:
    HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\OneDrive
  4. On the right pane, double-click DisableFileSyncNGSC and change the value to 0.
  5. Restart the installation or any process that triggered the error and see if it is fixed.

3. Give the current user full admin control

  1. Press Windows + R to open the Run dialog.
  2. Type regedit and hit Enter to open the Registry Editor. 0x80040c97
  3. Navigate to the path below:
    HKEY_CURRENT_USER\Software\Classes\CLSID
    0x80040c97
  4. Right-click on CLSID and select Permissions...
  5. Click on your user, give it Full control, and click Apply and OK.
  6. Restart the computer and rerun the process that triggered the error to verify it is fixed.

We love to refer you to our guide on opening the Registry if you encounter difficulty accessing this Windows utility.

These solutions have been the most helpful for most of our readers, so you should be able to fix the error with any of them. We recommend you start from the first and walk your way to the bottom.

Lastly, if we have left out any solution, please indicate in the comments section, as we update our guides regularly to ensure our readers always know the best fixes.

Still experiencing issues?

SPONSORED

If the above suggestions have not solved your problem, your computer may experience more severe Windows troubles. We suggest choosing an all-in-one solution like Fortect to fix problems efficiently. After installation, just click the View&Fix button and then press Start Repair.

This article covers:Topics: