C++ Redistributable 2012 update 3 detection [duplicate]

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-24 02:39:25

问题


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


回答1:


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.



来源:https://stackoverflow.com/questions/18398221/c-redistributable-2012-update-3-detection

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!