How do I fix Microsoft Visual C++ runtime errors when starting the Windows client?

Starting xtuple.exe may fail with an error like this:

The code execution cannot proceed because MSVCP140.dll
was not found. Reinstalling the program may fix this problem.

If so, you should run the version of vc_redist.x64.exe included in the install directory where the xtuple.exe executable file is located.

Microsoft publishes regular updates to its MSVC libraries. If installing the latest MSVC redistributable files—or the version distributed with xtuple.exe still does not work—you may need to install an older (2013) version of the MSVC redistributable. You can find that download here: https://www.microsoft.com/en-us/download/details.aspx?id=40784

If you are still getting errors after downloading the 2013 version you may need the 2015 version as well:

https://www.microsoft.com/en-us/download/details.aspx?id=52685

Having multiple MSCV versions on your computer is safe to do and should not cause a conflict.