问题描述
我要开发C#.NET应用程序,但首先我需要检查
该安装.NET Framework,因为我不希望用户看到任何错误。
那么,有没有VC ++ code,只有使用MFC静态库中,以检查是否安装了.NET Framework?
I want to develop a .NET application in c# but first i need to check
that the .NET framework is installed , because i don't want user see any error.
so is there any vc++ code that only use MFC in a static Library to check if .NET framework is installed ?
推荐答案
您可以使用注册表来查看.NET Framework和它的版本,要么你使用 VC ++
或其他语言,可以处理注册。
You can use the registry to check about .net framework and it's version, Either you you use VC++
or some other language that can handle registry..
检查Micrsoft知识库文章 - 如何确定哪些版本和在Microsoft .NET Framework的服务包级别安装
Check Micrsoft Knowledge Base Article - How to determine which versions and service pack levels of the Microsoft .NET Framework are installed
有关于SO螺纹。
另一种是使用Signum.Utilities库从SignumFramework(至极,你可以使用独立的),你可以得到它很好的,没有与注册表自行处理。
Another one is using the Signum.Utilities library from SignumFramework (wich you can use stand-alone), you can get it nicely and without dealing with the registry by yourself.
编辑:查看此code项目的文章 - 的上,同时还使用了注册表.NET框架来获取框架安装或不..
Check this code project article - Is .NET Framework installed on this machine???, it is also using registry to get the framework installed or not..
希望这有助于..
这篇关于如何检查是否已安装.NET框架的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!