C ++ Redistributable 2012 update 3检测 [英] C++ Redistributable 2012 update 3 detection

查看:265
本文介绍了C ++ Redistributable 2012 update 3检测的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想检测是否在机器上安装了C ++ Redistributable 2012更新3.我目前正在通过注册表搜索和使用guid检查2008,但我不知道2012年更新3 ...任何人都知道如何检测它?



我也发现这链接,但它不是确切的更新3,我不知道正确的数字,我应该检查...



感谢

解决方案

>安装程序:使用尚未安装产品的电脑,请启动 procomon ,添加一个过滤器,以便只包括来自安装程序进程的信息(类似的命令行包含vcRedist 应该就足够了),然后启动安装程序。完成后,检查它写的注册表项。



对于VS2102,有趣的东西将在这里:

  HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DevDiv\vc\Servicing\11.0 

(您也可以在连结的问题中回答此问题) ,您也可以检查

  HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\ S-1-5-18\产品\5C4834679ACBC703A9CADF44632686A6 

  HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\ {764384C5-BCA9-307C-9AAC-FD443662686A} 

(请注意这两个都是用于x64可再发行组件),这就是例如Installshield的先决条件执行检查。


I am trying to detect if C++ Redistributable 2012 update 3 is installed on machine.... I am currently doing check for 2008 through registry search and using guid, but I do not know guid for 2012 update 3... Does anybody know how to detect it?

I also found this link but it`s not exactly for update 3 and I do not know right numbers which I should to check...

Thanks

解决方案

You can figure this out yourself for any installer: use a pc that doesn't yet have the product installed, start procomon, add a filter so that includes only info from the installer process (something like command line contains vcRedist should be sufficient) and start the installer. After it finishes, examine which registry keys it wrote.

For VS2102 the interesting stuff will be here:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DevDiv\vc\Servicing\11.0

(which is by the way also answered in the question you link to)

edit in addition to the above, you could also check

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\5C4834679ACBC703A9CADF44632686A6

or

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{764384C5-BCA9-307C-9AAC-FD443662686A}

(note both are for the x64 redistributable), that's how eg Installshield's prerequisites perform the check.

这篇关于C ++ Redistributable 2012 update 3检测的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆