detecting CLR

archer_coal

Regular
Joined
Apr 4, 2003
Messages
96
anyone know of an easy way to detect if the .NET framework is installed? I know that most setup and deployment projects do this automatically but is there a way to do it programatically?
Id rather not skim through the registry if thats possible but if thats what it takes then so be it.
 
Not sure if it's the best way but if you look for the folder

%windir%\Microsoft.Net\Framework\<version number>

you should be able to detect the presence of .Net and the version. Could easily be faked though.
 
Back
Top