OneDrive Setup: “A newer version of OneDrive is installed” Error

When you try to install OneDrive using the OneDrive Setup file (onedrivesetup.exe) downloaded from Microsoft, the following error may occur:

Microsoft OneDrive Setup

A newer version of OneDrive is installed

You need to uninstall it first before installing this version.

onedrivesetup new version installed

This error may occur even though you uninstalled OneDrive via Apps and Features in the Settings app or Programs and Features in the classic Control Panel.

Cause

The above error occurs if the previous uninstallation of OneDrive has leftover some settings in the Windows registry. If the OneDriveSetup.exe file’s version is older than the version of OneDrive available previously on the computer, an error occurs.

For instance, if your downloaded OneDriveSetup.exe ‘s version is 22.065.0412.0004 but the version already installed (and later removed) from the system was 22.141.0703.0002, the error “A newer version of OneDrive is installed” occurs.

Note that the standalone installer OneDriveSetup.exe available from the official Microsoft site may not always be the latest build.

Solution

To fix the error “A newer version of OneDrive is installed” during OneDrive setup, follow one of these methods:

Method 1: Reset the Last Installed OneDrive Version Number

Resetting the last installed OneDrive version number registry value fixes the OneDrive setup error in most cases.

  1. Start the Registry Editor (regedit.exe)
  2. Go to the following branch:
    HKEY_CURRENT_USER\SOFTWARE\Microsoft\OneDrive
  3. Export the branch to a registry (.reg) file.
  4. In the right pane, double-click the value named “Version
  5. Clear the existing data, and type “1” as the version number.
    onedrivesetup new version installed
  6. Exit the Registry Editor.
  7. Run OneDriveSetup.exe now.

Important: If you have a per-machine installation, you may need to change the version value data in this key as well:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\OneDrive

Using command-line

To accomplish this via command-line, run these commands:

reg export HKCU\SOFTWARE\Microsoft\OneDrive  %USERPROFILE%\Desktop\OneDrive.reg

If the above command is successful and you have the OneDrive settings saved to the registry file on your Desktop, run the following command:



reg add HKCU\SOFTWARE\Microsoft\OneDrive /v "Version" /d "1" /t REG_SZ /f

Method 2: Reset OneDrive Settings in the Registry

Note: If you use this method, you need to reconfigure OneDrive completely.

  1. Start the Registry Editor (regedit.exe)
  2. Go to the following branch:
    HKEY_CURRENT_USER\SOFTWARE\Microsoft\OneDrive
  3. Export the branch to a registry (.reg) file.
  4. Right-click on the “OneDrive” branch and choose Rename.
  5. Rename it to “OneDrive.old”
  6. Exit the Registry Editor.
  7. Run OneDriveSetup.exe now.

Using command-line

To accomplish this via command-line, run these commands:

reg export HKCU\SOFTWARE\Microsoft\OneDrive  %USERPROFILE%\Desktop\OneDrive.reg

If the above command is successful and you have the OneDrive settings saved to the registry file on your Desktop, run the following commands:

reg copy HKCU\SOFTWARE\Microsoft\OneDrive HKCU\SOFTWARE\Microsoft\OneDrive.Old /s /f
reg delete HKCU\SOFTWARE\Microsoft\OneDrive /f

Method 3: Copy the latest OneDrive Setup folder from another PC

Another method is to copy the latest OneDrive setup folder from another Windows computer. The setup files are located in one of the following directories:

%localappdata%\Microsoft\OneDrive
or
C:\Program Files\Microsoft OneDrive
or
C:\Program Files (x86)\Microsoft OneDrive

After copying the OneDrive setup folder from another computer, locate the latest version numbered subfolder and run the OneDriveSetup.exe file in that folder.

This should fix the error “A newer version of OneDrive is installed” during the OneDrive setup.


One small request: If you liked this post, please share this?

One "tiny" share from you would seriously help a lot with the growth of this blog. Some great suggestions:
  • Pin it!
  • Share it to your favorite blog + Facebook, Reddit
  • Tweet it!
So thank you so much for your support. It won't take more than 10 seconds of your time. The share buttons are right below. :)

Ramesh Srinivasan is passionate about Microsoft technologies and he has been a consecutive ten-time recipient of the Microsoft Most Valuable Professional award in the Windows Shell/Desktop Experience category, from 2003 to 2012. He loves to troubleshoot and write about Windows. Ramesh founded Winhelponline.com in 2005.

Leave a Reply