[Visual Studio] Error code 1714: Unable to uninstall the old version of MSI** An old version of MSI is installed on your computer. You need to uninstall it before installing Visual Studio.

Problem Description

The following error was encountered when using Visual Studio Installer to install Visual Studio 2022:

错误代码 1714: 无法卸载旧版 MSI**
你的计算机上安装了旧版 MSI。需要先将其卸载才可安装 Visual Studio。

Fix: 请尝试推荐的步骤,以 [排查 MSI 错误 17141612] (https://aka.ms/VSMSIError)

Error screenshot


Cause Analysis

When installing Visual Studio, error code 1714 appears, which means that the old version of MSI cannot be uninstalled and needs to be uninstalled before continuing to install Visual Studio. This is usually caused by an older version of the MSI failing to uninstall properly.


solution

  1. Use the shortcut key Win + R to open the run window.

  2. Enter the command regeditand press Enter to open the Registry Editor.

  3. In Registry Editor, locate and delete the following registry key:

    HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products
    
  4. Restart the computer.

  5. Open the Visual Studio Installer, click Retry, and reinstall Visual Studio.

    Visual Studio Installer retry

  6. Successful installation.

    Visual Studio installed successfully


References

https://developercommunity.visualstudio.com/t/visual-studio-installation-failed-with-msi-error-1-1/224422

Guess you like

Origin blog.csdn.net/qq_34988204/article/details/135039621