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?
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 ..
VC++
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.
MSCorEE.dll
%SystemRoot%\System32