Click here to Skip to main content
15,890,185 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
I'm trying to get the latest installed version of .NET on a given machine. I've tried a couple of different ways, but it keeps coming back with 2.0, which is curious since I'm running a WPF app on a machine that I *KNOW* has 3.5 SP1 on it.

How should I go about properly retrieving the .NET version?

What happens if a .NET app is run on a system that doesn't have the appropriate version of .NET?

Posted
Updated 19-Mar-10 2:44am
v5

This registry key seems to have all the information required - on this system anyway.
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP
 
Share this answer
 
v2
Nish has written a really neat utility that you could use (available here[^]. It's unmanaged code because it detects if there's no .NET framework installed. If you want a managed code implementation, Scott Dorman has written one here[^].
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900