článek KB318785 : http://msdn.microsoft.com/en-us/kb/kbarticle.aspx?id=318785 popisuje, jak lze z registru vyčíst verzi .Net Frameworku
nebo nahlédnutím do složky c:\Windows\Microsoft.NET\Framework
či scriptem uveřejněným na http://social.msdn.microsoft.com
If My.Computer.FileSystem.FileExists("C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\vbc.exe") = True Then
'write here the code when the program found the frame work v1.0
Else
'write here the code when the program didn't find the frame work v1.0
End If
If My.Computer.FileSystem.FileExists("C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\vbc.exe") = True Then
'write here the code when the program found the frame work v1.1
Else
'write here the code when the program didn't find the frame work v1.1
End If
If My.Computer.FileSystem.FileExists("C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\vbc.exe") = True Then
'write here the code when the program found the frame work v2.0
Else
'write here the code when the program didn't find the frame work v2.0
End If
If My.Computer.FileSystem.FileExists("C:\WINDOWS\Microsoft.NET\Framework\v3.0\vbc.exe") = True Then
'write here the code when the program found the frame work v3.0
Else
'write here the code when the program didn't find the frame work v3.0
End If
If My.Computer.FileSystem.FileExists("C:\WINDOWS\Microsoft.NET\Framework\v3.5\vbc.exe") = True Then
'write here the code when the program found the frame work v3.5
Else
'write here the code when the program didn't find the frame work v3.5
End If
If My.Computer.FileSystem.FileExists("c:\Windows\Microsoft.NET\Framework\v4.0.30319\vbc.exe") = True Then
'write here the code when the program found the frame work v4.0
Else
'write here the code when the program didn't find the frame work v4.0
End If