Atlanta Custom Software Development 

 
   Search        Code/Page
 

User Login
Email

Password

 

Forgot the Password?
Services
» Web Development
» Maintenance
» Data Integration/BI
» Information Management
Programming
  Database
Automation
OS/Networking
Graphics
Links
Tools
» Regular Expr Tester
» Free Tools


Click here to copy the following block
' Return a collection of strings that identify the installed versions of the
' .NET Framework
' Note: this function require the EnumRegistryKeys and EnumRegistryValues
' functions
' Example:
'  Dim version As Variant
'  For Each version In GetDotNetFrameworkVersions
'    Debug.Print version
'  Next
Function GetDotNetFrameworkVersions() As Collection
  Const HKEY_LOCAL_MACHINE = &H80000002
  Dim keyName As String
  keyName = "Software\Microsoft\.NETFramework\policy"

  Set GetDotNetFrameworkVersions = New Collection

  Dim versions As Collection, version As Variant
  ' get the collection of major.minor versions
  Set versions = EnumRegistryKeys(HKEY_LOCAL_MACHINE, keyName)
  
  Dim builds As Collection, build As Variant
  ' for each version, get the installed builds, and finally get the complete
  ' version string
  For Each version In versions
    Set builds = EnumRegistryValues(HKEY_LOCAL_MACHINE, _
      keyName & "\" & version)
    For Each build In builds
      GetDotNetFrameworkVersions.Add (Mid(version, 2) & "." & build(0))
    Next
  Next
End Function


Submitted By : Nayan Patel  (Member Since : 5/26/2004 12:23:06 PM)

Job Description : He is the moderator of this site and currently working as an independent consultant. He works with VB.net/ASP.net, SQL Server and other MS technologies. He is MCSD.net, MCDBA and MCSE. In his free time he likes to watch funny movies and doing oil painting.
View all (893) submissions by this author  (Birth Date : 7/14/1981 )


Home   |  Comment   |  Contact Us   |  Privacy Policy   |  Terms & Conditions   |  BlogsZappySys

© 2008 BinaryWorld LLC. All rights reserved.