[英]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.