Verifying MSVC run-time installation using registry key

  • Thread starter Thread starter AliGSheikh
  • Start date Start date
A

AliGSheikh

Guest
I have an application whose installation requires that MSVC 2015 run-time (Download Visual C++ Redistributable for Visual Studio 2015 from Official Microsoft Download Center) is installed. I am constrained by the installer, which only checks for registry keys to verify if a program is already installed. I am using the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\14.0\VC\Runtimes\x64 key to determine if it is installed. In doing some testing, I am finding that some Windows systems have the MSVC run-time installed but that registry key is missing.

Is there a more reliable registry key I can use? Conversely, can I conclude that any MSVC run-time that doesn't have this key is incorrectly installed?

I referenced this question How to determine whether MSVC++ 2015 redistributable (32- or 64-bit) is already installed? to determine the key I am currently using.

Continue reading...
 
Back
Top