Framework directory

neodatatype

Regular
Joined
Aug 18, 2003
Messages
65
Location
Italy
Hi,

does someone know how to retrieve the framework installation path?

I mean I wanto to get the C:\WINNT\Microsoft.NET\Framework\v1.1.4322
diretory for the framework 1.1

Thanks
 
The only portion of the path that varies from machine to machine is the Windows directory. The rest is constant.
Visual Basic:
Dim systemPath As String = Environment.SystemDirectory
Dim windowsPath As String = systemPath.Substring(0, systemPath.LastIndexOf("\"c))
Dim installVersion As String = Environment.Version.ToString(3)
Dim installPath As String = windowsPath & "\Microsoft.NET\Framework\v" & installVersion & "\"
Debug.WriteLine(installPath)
 
Back
Top