简体   繁体   English

验证是否安装了Visual C ++ 2008 SP1可再发行组件包,而不在Windows注册表中进行搜索?

[英]Verify if Visual C++ 2008 SP1 Redistributable Package is Installed without searching in windows registry?

Is there a way to know if Visual C++ 2008 and 2010 SP1 Redistributable Package is installed in the machine using C#. 是否有办法知道是否使用C#在计算机中安装了Visual C ++ 2008和2010 SP1可再发行组件包。

Many thanks, Chris 非常感谢克里斯

You can look in the registry. 您可以在注册表中查找。 (registry keys to look at) http://blogs.msdn.com/b/astebner/archive/2010/05/05/10008146.aspx (要查看的注册表项) http://blogs.msdn.com/b/astebner/archive/2010/05/05/10008146.aspx

It seems like during the vcredist 2010 SP1 installation the key in Soreceri's post is no longer created (at least on my test PC running Windows 10 x64). 似乎在安装vcredist 2010 SP1的过程中,不再创建Soreceri帖子中的密钥(至少在运行Windows 10 x64的测试PC上)。 I was able to find the key at: 我可以在以下位置找到密钥:

[HKEY_LOCAL_MACHINE\\SOFTWARE\\WOW6432Node\\Microsoft\\VisualStudio\\10.0\\VC\\VCRedist\\x86] [HKEY_LOCAL_MACHINE \\ SOFTWARE \\ WOW6432Node \\微软\\ VisualStudio的\\ 10.0 \\ VC \\ VCRedist \\ 86]

The "Installed=1" REG_DWORD will be present if it is installed. 如果已安装,则将显示“ Installed = 1” REG_DWORD。

Hope this helps someone, I couldn't find it anywhere. 希望这对某人有帮助,我在任何地方都找不到。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 验证是否安装了Visual C ++ 2008 SP1可再发行组件包? - Verify if Visual C++ 2008 SP1 Redistributable Package is Installed? Microsoft Visual C ++ 2010 SP1可在Azure上重新分发吗? - Microsoft Visual C++ 2010 SP1 Redistributable on Azure? 如何将Microsoft Visual C ++ 2010 SP1与我的Visual Studio安装程序项目一起打包 - How do I package Microsoft Visual C++ 2010 SP1 with my Visual Studio installer project 尽管安装了Visual C ++可再发行组件包,但缺少msvcr110.dll吗? - msvcr110.dll is missing although Visual C++ Redistributable package is installed? 如何检查设备上是否安装了 Microsoft Visual C++ 2015 Redistributable - How to Check if Microsoft Visual C++ 2015 Redistributable Installed on a Device Windows Docker: Issues installing Visual C++ Redistributable in Windows Docker - Windows Docker: Issues installing Visual C++ Redistributable in Windows Docker 构建一个无需 C++ Redistributable Package 即可运行的 .exe - Build an .exe that runs without C++ Redistributable Package Visual C#2008 EE SP1-Linq to SQL-数据连接到远程服务器? - Visual C# 2008 EE SP1 - Linq to SQL - Data Connection to remote server? 如何在Windows 7 SP1上安装Visual Studio 2015社区 - How install Visual Studio 2015 community on windows 7 SP1 为什么要安装Microsoft Visual C ++ 2010 Redistributable Package x86来使用SQLite? - Why install Microsoft Visual C++ 2010 Redistributable Package x86 to use SQLite?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM