检查安装的Microsoft Visual C ++ 2013 Redistributable(x86)版本 [英] Check for installed version of Microsoft Visual C++ 2013 Redistributable (x86)
问题描述
我想检查是否安装了某个版本的"Microsoft Visual C ++ 2013 Redistributable(x86)"。 如果安装了较新版本的C ++ 2013,那么
也可以。 我无法检查"HKLM \ SOFTWARE \Classes \Installer \ Dependencies \ {f65db027-aff3-4070-886a-0d87064aabb1}" 在注册表中,因为如果安装了较新版本的C ++ 2013,则使用另一个注册表项
。 每个发布的版本C ++ 2013有自己的注册表项。我该怎么办?我要检查一下文件夹中是否有文件 "msvcp120.dll"
和"msvcr120.dll"存在于文件夹"\ Windows \ System32"并且它们至少是某个 版本? (如果没有安装想要的C ++ 2013版本,我将安装它。)
更容易使用 MsiEnumProducts
I want to check if a certain version of "Microsoft Visual C++ 2013 Redistributable (x86)" is installed. If a newer version of C++ 2013 is installed, that is also ok. I cannot check "HKLM\SOFTWARE\Classes\Installer\Dependencies\{f65db027-aff3-4070-886a-0d87064aabb1}" in the registry, since another registry key than that one is used if a newer version of C++ 2013 has been installed. Every released version of C++ 2013 has its own registry key. What shall I do? Shall I check if for example the files "msvcp120.dll" and "msvcr120.dll" exist in the folder "\Windows\System32" and that they are of at least a certain version? (If the wanted C++ 2013 version is not installed, I will install it.)
much easier just use MsiEnumProducts
这篇关于检查安装的Microsoft Visual C ++ 2013 Redistributable(x86)版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!