
These Visual C++ redistributable and runtime packages are mostly installed for standard libraries that many applications use. These packages are often installed independently of applications, allowing multiple applications to make use of the package while only having to install it once. Many applications require redistributable Visual C++ runtime library packages to function correctly. It features tools for developing and debugging C++ code, especially code written for the Windows API, DirectX and. MSVC is proprietary software it was originally a standalone product but later became a part of Visual Studio and made available in both trialware and freeware forms. Microsoft Visual C++ (often abbreviated to MSVC) is an integrated development environment (IDE) product from Microsoft for the C, C++, and C++/CLI programming languages. English, Chinese (Simplified & Traditional), Czech, French, German, Italian, Japanese, Korean, Polish, Portuguese (Brazilian), Russian, Spanish, Turkish

x86, "SP1_ATL_SEC_UPD" ), new VcRuntimeVersion ( Guid. Using System using using System.Linq using namespace ConsoleApp1 " ), MscVersion. It takes a product code guid as the input parameter, and returns the installation state of the program. The Microsoft Windows Installer function MsiQueryProductState() can help with this.

Instead we have to look for the Visual C++ runtime as installed products. The following table highlights the major versions of Visual C++ against the _MSC_VER value. See this post from the Visual C++ Team Blog on Visual C++ Compiler Version and the MSDN page on Predefined Macros. In C++ if we want to check if a particular version of the runtime is installed we can write conditionals to test the value of the built-in preprocessor macro _MSC_VER against known values indicating major releases of the Visual C++ compiler.

MscVersion is a pure C# library alternative to the _MSC_VER macro in C++ which lets you check what version of the VcRuntime is installed. If you’re just looking for a quick way to do this, you may want to consider using the library MscVersion source code on GitHub and a package on NuGet.

This post discusses how to check if the Microsoft Visual C++ Runtime is installed.
