Fix SharePoint 2019 installation error This product requires Visual C++ Redistributable Package for Visual Studio 2017


Problem

You receive below error while installing SharePoint Server 2019.
All prerequisites are installed and the Products Preparation Tool successfully completes. But when you run Microsoft SharePoint Server 2019 Setup, you encounter the error even though the said component is installed.

This product requires Visual C++ Redistributable Package for Visual Studio 2017

SharePoint installation error - Visual C++ Redistributable Package.PNG
SharePoint installation error - Visual C++ Redistributable Package

Reason

The version of Microsoft Visual C++ 2017 Redistributable (x64) installed is too old and the setup needs version 14.13.26020.0 or higher.
SharePoint 2019 Products Preparation Tool misidentifies the minimum version required by the setup. If Visual C++ 2017 Redistributable (x64) is installed, but is a version that's greater than or equal to 14.10.25017.0 and less than 14.13.26020.0, the tool won't install the minimum version that's required by SharePoint Server 2019 Setup.

Resolution

  1. Navigate to Control Panel --> Programs --> Uninstall a program --> Uninstall Microsoft Visual C++ 2017 Redistributable (x64).
  2. Rerun Microsoft SharePoint 2019 Products Preparation Tool (prerequisiteinstaller.exe). The minimum required version will be installed by the tool.
    You may also download and install version 14.13.26020.0 (or later) from https://go.microsoft.com/fwlink/?LinkId=848299.
  3. Run SharePoint Server 2019 Setup.