How to check installed .NET platform or not

I want to develop a .NET application in C #, but first I need to check that the .NET platform is installed, because I do not want the user to see any error.
so is there any vC ++ code that uses only MFC in the static library to check if the .NET platform is installed?

+3
source share
2 answers

You can use the registry to check the .net structure and its version. Either you use VC++or some other language that the registry can handle ..

Check Micrsoft Knowledge Base article - How to determine which versions and levels of the Microsoft.NET Framework Service Pack

There are several ways to suggest an SO stream .

Another uses the Signum.Utilities library from SignumFramework (which you can use autonomously), you can get it beautifully and without working with the registry yourself.

Edit: Check out this code project article. Is the .NET Framework installed on this computer? , it also uses the registry to install the framework or not.

I hope for this help.

+5
source
  • Check if file is present MSCorEE.dllin %SystemRoot%\System32.
  • SDK.NET Framework CLRver.exe .NET Framework, .
-1

All Articles