How to Resolve OneDrive Installation error code 0x80040c97 in Windows 10

  • OneDrive is a Microsoft cloud service that lets you access all your files from cloud storage.
  • It helps users upload, store, protect and share files with others.
  • With a Microsoft account provided by your company or school, users can access their files from anywhere and from any device.
  • Users get the error OneDrive cannot be installed, error code 0x80040c97.
  • This article lists the possible causes of this problem and gives recommendations to fix OneDrive.

 

Welcome to a hassle-free solution for resolving OneDrive installation error code 0x80040c97 on your Windows 10 system. In this article, we will explore the underlying causes of this error and provide you with simple yet effective methods to eliminate it. So, let’s dive in and bid farewell to this frustrating obstacle!

Check for file corruption

If you encounter the “Installation Error Code 0x80040c97” while installing OneDrive on Windows 10, file corruption may be the cause. To resolve this issue, you can follow these steps:

1. Open the Command Prompt as an administrator by searching for “Command Prompt” in the Windows search bar, right-clicking on it, and selecting “Run as administrator.”
2. In the Command Prompt window, type “sfc /scannow” and press Enter. This command will scan and repair any corrupted system files on your PC.
3. Once the scan is complete, restart your computer and try reinstalling OneDrive.

If the error persists, you can also try using the MiniTool Partition Wizard or disabling your antivirus temporarily. Additionally, make sure your Windows 10 is up to date with the latest updates.

For more detailed instructions and troubleshooting steps, you can refer to Microsoft’s community post or watch tutorial videos on YouTube.

Temporarily disable Firewall

To temporarily disable the Firewall in Windows 10 and resolve OneDrive Installation Error Code 0x80040c97, follow these steps:

1. Press the Windows key + R to open the Run dialog box.
2. Type “control” and press Enter to open the Control Panel.
3. In the Control Panel, search for “Windows Defender Firewall” and click on it.
4. Click on “Turn Windows Defender Firewall on or off” in the left panel.
5. Select the “Turn off Windows Defender Firewall” option for both private and public networks.
6. Click “OK” to save the changes.

Temporarily disabling the Firewall can help determine if it’s causing the installation error. Remember to enable the Firewall again once the issue is resolved.

If you encounter any other issues or need further assistance, feel free to reach out to the Microsoft community or refer to the official Microsoft support page for detailed instructions and solutions.

Reset OneDrive

To reset OneDrive and resolve the installation error code 0x80040c97 on Windows 10, follow these steps:

1. Close OneDrive and all related processes using the Task Manager.
2. Press Windows Key + R to open the Run dialog box.
3. Type “%localappdata%\Microsoft\OneDrive\onedrive.exe /reset” and click OK.
4. Open the Windows Settings and go to Apps > Apps & features.
5. Search for OneDrive and select it.
6. Click on the “Advanced options” link.
7. Click the “Reset” button to reset the OneDrive app.
8. Restart your PC.

If the error persists, try these additional methods:

1. Check for Windows updates and install any available updates.
2. Disable antivirus or security software temporarily.
3. Use the MiniTool Partition Wizard to check and repair any file system errors on your computer.
4. Remove any conflicting third-party applications.
5. Reset the Windows Registry to default settings.

For more detailed instructions, you can refer to the tutorial on YouTube by searching for “Resolve OneDrive Installation Error Code 0x80040c97 in Windows 10“.

python
import subprocess

def resolve_onedrive_installation_error():
try:
# Stop OneDrive processes
subprocess.call(["taskkill", "/f", "/im", "OneDrive.exe"])

# Uninstall OneDrive
subprocess.call(["%SystemRoot%\\SysWOW64\\OneDriveSetup.exe", "/uninstall"])

# Remove OneDrive leftovers
subprocess.call(["rd", "%UserProfile%\\OneDrive", "/Q", "/S"])
subprocess.call(["rd", "%LocalAppData%\\Microsoft\\OneDrive", "/Q", "/S"])
subprocess.call(["rd", "%ProgramData%\\Microsoft OneDrive", "/Q", "/S"])

# Reinstall OneDrive
subprocess.call(["%SystemRoot%\\SysWOW64\\OneDriveSetup.exe"])

print("OneDrive installation error resolved successfully.")
except Exception as e:
print(f"An error occurred while resolving OneDrive installation error: {str(e)}")

# Call the function to resolve the error
resolve_onedrive_installation_error()

Please note that the above code provides a basic approach to resolving the error, but it may not cover all possible scenarios. It stops OneDrive processes, uninstalls OneDrive, removes any leftover files/folders, and then reinstalls OneDrive. You may need to customize the code based on your specific requirements or error scenario.

Terminate OneDrive Process and reinstall OneDrive

To resolve the OneDrive installation error code 0x80040c97 on Windows 10, follow these steps:

1. Terminate the OneDrive process:
– Press Ctrl + Shift + Esc to open Task Manager.
– Go to the Processes tab.
– Locate and select the OneDrive process.
– Click on End Task.

2. Reinstall OneDrive:
– Press the Windows key + R to open the Run dialog box.
– Type “appwiz.cpl” and click OK to open the Programs and Features window.
– Locate and select Microsoft OneDrive.
– Click on Uninstall/Change and follow the on-screen instructions to uninstall.
– Visit the official Microsoft OneDrive website and download the setup files.
– Run the setup and follow the prompts to reinstall OneDrive.

By terminating the OneDrive process and reinstalling the application, you can fix the installation error code 0x80040c97 in Windows 10.

Change Windows Registry value

If you are experiencing the OneDrive installation error code 0x80040c97 on your Windows 10 machine, you may be able to resolve it by changing a Windows Registry value. Follow these steps:

1. Press the Windows key + R to open the Run dialog box.
2. Type “regedit” and press Enter to open the Registry Editor.
3. Navigate to the following location: HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\OneDrive
4. Right-click on the “OneDrive” key and select “Delete”. Confirm the deletion when prompted.
5. Close the Registry Editor.
6. Restart your computer.

This should resolve the OneDrive installation error code 0x80040c97 in Windows 10. If you continue to experience any issues, we recommend checking for any pending Windows updates, ensuring a stable internet connection, and running the latest version of the OneDrive application.

Update Windows

If you’re encountering the OneDrive installation error code 0x80040c97 on Windows 10, there are a few steps you can take to resolve the issue.

First, make sure you have a stable internet connection. Poor connectivity can cause installation problems.

Next, try resetting OneDrive by following these steps:
1. Press the Windows key + R to open the Run dialog box.
2. Type “%localappdata%\Microsoft\OneDrive\onedrive.exe /reset” and press Enter.

If that doesn’t work, you can try reinstalling OneDrive by following these steps:
1. Press the Windows key + R to open the Run dialog box.
2. Type “%localappdata%\Microsoft\OneDrive\onedrive.exe /uninstall” and press Enter.
3. Download the latest version of OneDrive from the Microsoft website and run the setup file.

These steps should help resolve the OneDrive installation error code 0x80040c97 on Windows 10. If you continue to experience issues, feel free to reach out to our support team for further assistance.

Website | + posts

Mark Ginter is a tech blogger with a passion for all things gadgets and gizmos. A self-proclaimed "geek", Mark has been blogging about technology for over 15 years. His blog, techquack.com, covers a wide range of topics including new product releases, industry news, and tips and tricks for getting the most out of your devices. If you're looking for someone who can keep you up-to-date with all the latest tech news and developments, then be sure to follow him over at Microsoft.