Framework directory

neodatatype

Well-known member
Joined
Aug 18, 2003
Messages
68
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.
Code:
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)
 

Similar threads

E
Replies
0
Views
245
EN59CVH
E
J
Replies
0
Views
63
Jalil Sear [MCPD SharePoint]
J
B
Replies
0
Views
93
bagua8
B
B
Replies
0
Views
376
Blue Baron
B
Back
Top