Using Visual Basic 6, what is the best way to detect if the .NET Framework is installed on a client machine, and what versions of .NET are installed?
+1 i always do it this way. so simple!
Andrey
2010-07-02 14:16:06
+2
A:
you may take this information from windows system registry. HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft.NETFramework\
Arseny
2010-07-02 14:11:55
A:
I was able to answer my own question with the following code based.
Dim strFrameworkDir As String
strFrameworkDir = Environ$("systemroot") & "\Microsoft.NET\Framework\v3.5"
If Dir$(strFrameworkDir, vbDirectory) = vbNullString Then
MsgBox ".NET Framework 3.5 Must be Installed on this machine!"
End
End If
dretzlaff17
2010-07-07 15:21:32