How to Troubleshoot: OneDrive Installation Error Code 0x80040c97 on Windows 10 PC

When installing OneDrive on Windows 10, the installation process may stall and display this error message – “OneDrive installation error code 0x80040c97”. This problem usually occurs when the OneDrive application is already installed. However, the same message can be displayed due to functionality issues. Whatever the reason, if you want to find an effective solution to this problem, follow these tips.

What causes OneDrive installation error code 0x80040c97?

Windows Registry: It has been observed that the error may be due to problems in the Windows registry settings. The Windows registry is a hierarchical database that stores low-level settings for the Microsoft Windows operating system and for applications that want to use the registry, and OneDrive is one of those applications.

Corrupted certificates: If certificates or network protocols are not properly configured, the error described here can sometimes occur. Incorrectly configured certificates can cause a connection to Microsoft’s servers to fail, eventually leading to the error described here.

Damaged installation file: It has been observed that this error may occur due to a corrupted OneDrive installation file that you intend to use to perform the installation. This file may be corrupted or incomplete due to a failed download or third-party intervention.

Windows Firewall: Since OneDrive runs when the Internet is running, it is understandable that if the OneDrive installation file cannot access the Internet, it will result in errors like the one in question.

Third-party software: Obviously, an installed anti-virus program may be blocking the downloaded installation file from installing its components on your computer. As a rule, Microsoft installers do not warn antivirus programs about infiltration, but in some rare cases, they do. This prevents the components of the installation file from being extracted, which ultimately causes this error.

How to resolve the OneDrive installation error code 0x80040c97?

Perform a Windows Update

An outdated version of Windows is prone to errors. If you encounter OneDrive installation error code 0x80040c97 on Windows 10, the first thing to do is to install all pending updates.

Since Windows updates include advanced features and bug fixes, updating Windows to the latest version can quickly fix problems.

  1. Go to Settings and select Updates and Security.
  2. Now click Check for updates and install the pending updates one by one.
  3. After downloading all the updates, restart your computer and check if the error is resolved.

If the cause of the problem on your PC is an outdated version of Windows, fix it by downloading the latest updates. You should now be able to install OneDrive without any problems.

Uninstalling and reinstalling OneDrive

If you are trying to install the latest version of OneDrive without uninstalling the previous version, this could be the cause of the error code 0x80040c97.

Usually, older versions of programs block the installation of newer versions. A simple but effective solution to this problem is to uninstall the previous version before attempting to install the latest version.

  1. Open the Control Panel and click on Uninstall a program.
  2. Find OneDrive in the list of available programs and right-click on it.
  3. Now select Uninstall and follow the instructions on the screen to uninstall OneDrive.
  4. Then restart your computer.

Forcing the OneDrive process to close

Background processes can slow down your computer. By closing these processes, you can free up your system’s resources so that it runs smoothly again.

If the OneDrive process is running in the background, try closing it. The background process can disrupt system operation and prevent the installation of new programs. In this case, closing the OneDrive process can help solve the problem on your computer.

  1. Type Task Manager in the search bar and click Open.
  2. On the Processes tab, check to see if OneDrive is active.
  3. If OneDrive is running, right-click it and select End Task to close the application.
  4. Now right-click on the Start menu and open Windows Powershell (Admin).
  5. Type the following command into Windows Powershell and press Enter.
    taskkill /f /im OneDrive.exe

Perform an SFC scan

Windows 10 is prone to errors, but fortunately, there are several built-in troubleshooting utilities that make this operating system much more bearable. One such tool is the System File Checker (SFC), which scans protected system files, detects errors, and tries to fix them automatically.

If error 0x80040c97 appears on your screen when you try to install OneDrive, try running an SFC scan. If the problem is caused by a corruption error in the system, the SFC scan will fix the problem and you can install OneDrive without any problems.

Frequently Asked Questions

  1. Run the command line as an administrator. To do this, press the key with the Windows logo + R and type cmd.
  2. Click "Yes" for the changes to be made on your computer.
  3. In the command prompt window, type sfc /scannow directly after the cursor and press Enter.

  1. Restore synchronization.
  2. Compress files and folders.
  3. Update Windows.
  4. Manually connect your OneDrive account to Windows.
  5. Select the folders you want to sync.
  6. Disable Office downloads.
  7. Check to see if the file path is too long.
  8. Disconnect OneDrive from your system.

  1. Click the Start button.
  2. On the General tab, click Selective startup, then uncheck Load startup items.
  3. Click Services, click Hide all Microsoft services, then click Disable all.
  4. Click OK, then click Restart.
  5. Try to install your software.

If OneDrive is missing or not working, the first step is to uninstall it, or at least remove any non-functional leftovers on the drive. Open the Settings app in Windows 10 and click Applications. Click Microsoft OneDrive, and then click Uninstall.