How to determine if Visual C ++ 2017 Redistributable will be installed

When Microsoft changes the registry entry template in its latest versions, how can I determine if Visual C ++ 2017 Redistributable is installed on my computer?

My goal is to install VC ++ 2015Redist since the software is written using VS2015. If I can successfully detect VC ++ 2017Redist on the machine, then I will skip the installation of VC ++ 2015Redist

+9
source share
3 answers

2017 VC ++ Redistributable Installation Update / Replace Installation 2015

Visual Studio 2017 2015 . , 2015 " ", (. ) . , MSDN VC++ 2017 2015 .

, 2015 2017 , , . x64, Wow6432Node 32-.

:

64- VC++

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\14.0\VC\Runtimes\x64

32- VC++,

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\14.0\VC\Runtimes\x86

( ) 32-, 64- . :

Value          2015       2017 
Name      Val. Data  Val. Data
--------  ---------  ---------
Major            14         14
Minor             0         13
Bld           23026      26020

, @Minor build (@Bld) 2017 .

, 2015, @Major 14.

2017 , , @Bld, , , , 2017 . , @Minor @Bld - , 14.11.25325, 2017 .

+9

VC VisualStudio 2015-2019. " " (, 2015), (, 2017), ( ).

@CJBS, , , , ( ):

32- VC++

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\14.0\VC\Runtimes\x86

64- VC++

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\14.0\VC\Runtimes\x64

@Bld DWord , , : 2015 (Bld = 23026) 2017 (Bld = 26020) 2019 (Bld = 27820)


: 0x80070666 - . ...

0

You are solving the wrong problem. You are trying to install an outdated, redistributable that is only suitable for VS2015 (Toolset v140). Instead, install the current redistributable VS2017 (Toolset v141). It is backward compatible with VS2015.

-3
source

Source: https://habr.com/ru/post/1685535/


All Articles