Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to determine if the 32-bit Visual Studio 2013 redistributable is installed on a user's machine reliably via the Registry?

I am using DeployMaster to build an installer for a 32-bit Windows application written in C++ using Qt.

The executable depends on the Visual Studio 2013 redistributable - i.e., the 32-bit Visual Studio 2013 redistributable must be installed by the end user, prior to running this application.

I have googled, and looked at other StackOverflow questions. In particular, this link provides the exact Registry key to check, but for the case of VS 2008.

I need VS 2013, not VS 2008.

However, ideally it will be a reliable registry check - not a programmatic solution - because I can easily check a registry key with a DeployMaster installer. (If the system is determined to not have the redistributable installed, it's also easy to have the DeployMaster installer kick off the installer.)

Does anybody know a reliable method, preferably using a Registry key, that allows to make it possible to determine if the 32-bit VS 2013 redistributable is installed on an end-user's machine?

like image 775
Dan Nissenbaum Avatar asked Feb 11 '14 12:02

Dan Nissenbaum


People also ask

How can I tell if Visual Studio is redistributable installed?

To check if Visual C++ redistributables are installed, open Add and Remove Programs and look for the Microsoft Visual C++ Redistributable. If installed, you see "Microsoft Visual C++ 2015-2019 Redistributable (x64) - 14.22.

Where is Visual C++ redistributable installed?

In the latest version of Visual Studio 2019, you'll find the redistributable files in the %VCINSTALLDIR%Redist\MSVC\v142 folder. In both Visual Studio 2017 and Visual Studio 2019, they're also found in %VCToolsRedistDir% .

How do I know if I have visual Visual C++ redistributable for Visual Studio 2019?

Open Add and Remove Programs and look for Microsoft Visual C++ Redistributable. The installed versions will be listed there.

What is Visual Studio 2013 redistributable?

The Visual C++ Redistributable Packages install run-time components that are required to run applications that are developed by using Visual Studio 2013, on computers that don't have Visual Studio 2013 installed.


3 Answers

I'm using these reg keys: HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\12.0\VC\Runtimes\x86 Installed HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\12.0\VC\Runtimes\x64 Installed

I've confirmed that they appear only after the redist is installed, and they more closely match the ones for previous versions. e.g. VC++ 2010 is: HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\10.0\VC\VCRedist\x86 Installed HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\10.0\VC\VCRedist\x64 Installed

like image 160
Nick Davis Avatar answered Sep 23 '22 10:09

Nick Davis


For Visual Studio 2013 Update 5, 32 bit version (12.0.40664), the key is:

HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{8122DAB1-ED4D-3676-BB0A-CA368196543E}
like image 36
Jac Goudsmit Avatar answered Sep 23 '22 10:09

Jac Goudsmit


The key you need is HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\DevDiv\vc\Servicing\12.0\RuntimeMinimum.

like image 31
John Situ Avatar answered Sep 26 '22 10:09

John Situ