How to detect what .Net version installed on your machine?
You may see, many software this day need .Net Framework to work properly. So, it will be best idea to check what .Net version you have on your machine before proceeding to installation. Now there are many ways to check what .Net version is installed on your system. Here I just try to share some of those.
Rob Villahermosa cover a great article on it. Here are those two methods shared by the blogger:
Method 1:
1. Under HKLMSOFTWAREMicrosoft.NETFrameworkpolicy check to see if the version you want is installed (for example, look for the v1.1 folder and 4322 for the version number to detect the released version of V1.1)
2. Under HKLMSoftwareMicrosoft.NETFrameworkInstallRoot get the path where the Framework is installed. Create a directory string by concatenating the install root and the version under policy. E.g. “C:WINDOWSMicrosoft.NETFramework” + “v1.1″ + “.” + “4322″
3. Look at the directory, if mscorlib.dll (or another critical .dll to the .NET framework is there) the runtime is installed.
Method 2:
There’s a caveat to this method in that the shim gets left behind when we uninstall if there is more than one version of the CLR on the machine, but it still can be useful depending on what version you’re looking for:
LoadLibrary(“mscoree.dll”); – if this fails then there’s no runtime installed
GetProcAddress(“CorBindToRuntime”); – if this fails there’s no runtime installed
CorBindToRuntime(“GetRequestedRuntimeInfo”);
GetRequestedRuntimeInfo(xxxx); where xxxx is the build number.
If you don’t want to do above work then here is pretty nice tool named .NET Framework Detector which can do the work in single click.

Download .NET Framework Detector
So, what method you use when you need to detect .Net frame work?
Related posts:
- Free tool to detect SQL Injection and XSS vulnerability
- How to control access of installed software on user account in Windows 7?
- ASUS coming with pre-installed Kindle for PC
- WayBackMachine – The Internet Time-Machine
- Remove Craban-Gen trojan from your machine
Join us in Facebook or in Twitter
More on: Programmers Tools · Worthy Tips
3 Responses to “How to detect what .Net version installed on your machine?”
Leave a Comment
Tag:
- check net version installed ,
- how to check that net 4 is installed ,
- how to check net frame version ,
- how to check itune version ,
- detect what net version is required ,
- detect net versions ,
- detect net version ,
- detect NET 4 installed ,
- detect if machine needs a reboot ,
- detec net version ,
- check net versions installed server 2008 r2 ,
- what net is installed









Thanks alot for sharing this tip, i was unaware how to check it out.
Ruchi´s last blog ..How to Ping Your Sitemap to Bing, Google, and Yahoo
ASoft has a nice tool called .NET Version detector: http://www.asoft.be/prod_netver.html and it has just been updated too
Thanks for this information.