Results 1 to 8 of 8
  1. #1
    4 Star Lounger
    Join Date
    Jan 2001
    Location
    Altnau, Thurgau, Switzerland
    Posts
    447
    Thanks
    0
    Thanked 0 Times in 0 Posts

    MDAC / ADO installed version (C++, DAO, ADO)

    For a setup program I need to find what 'level' of MDAC components are installed. The program to be installed requires MDAC 2.7 or higher.
    Is there a registry key that can give me this information? Alternatively is there a registry key that I can query the version of ADO.

  2. #2
    Plutonium Lounger
    Join Date
    Dec 2000
    Location
    Sacramento, California, USA
    Posts
    16,775
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: MDAC / ADO installed version (C++, DAO, ADO)

    The only way I can think of is to check the version of msado15.dll in the System32 folder. I don't find anything helpful in my registry, at least.
    Charlotte

  3. #3
    4 Star Lounger
    Join Date
    Jan 2001
    Location
    Altnau, Thurgau, Switzerland
    Posts
    447
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: MDAC / ADO installed version (C++, DAO, ADO)

    Thanks.

    I've also had a quick look, without success, in my registry. Looking at the version of msado15.dll isn't very neat, I would expect Microsoft to store the info somewhere. However looking at the dll may be my only way unless someone knows something we don't.

  4. #4
    4 Star Lounger
    Join Date
    Jan 2001
    Location
    Altnau, Thurgau, Switzerland
    Posts
    447
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: MDAC / ADO installed version (C++, DAO, ADO)

    Found it!!!!!!


    HKEY_CLASSES_ROOTCLSID{54AF9350-1923-11D3-9CA4-00C04F72C514}

    Entries such as

    InstalledVersion has 2,70,7713,4
    Version has 2,70,7713,4

  5. #5
    Super Moderator
    Join Date
    Aug 2001
    Location
    Evergreen, CO, USA
    Posts
    6,623
    Thanks
    3
    Thanked 60 Times in 60 Posts

    Re: MDAC / ADO installed version (C++, DAO, ADO)

    There is also a tool available from the MS web site (do a search on MDAC) that will tell you all about everything and then some as it relates to DLL versions, ODBC driver versions, etc. I should note that we had less than happy results with MDAC ver 2.7xxx
    Wendell

  6. #6
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: MDAC / ADO installed version (C++, DAO, ADO)

    Maybe this will be less work, or more self-documenting. Look for the object you want by its version-independent name and check the CurVer key. For example, on my Windows 2000 system:

    HKEY_CLASSES_ROOTADODB.RecordsetCurVer = ADODB.Recordset.2.5

    HKEY_CLASSES_ROOTADOX.CatalogCurVer = ADOX.Catalog.2.5

    Or for MDAC itself, if you would have to check too many components or there was a critical bug fix (more likely!):

    HKEY_CLASSES_ROOTMDACVer.VersionCurVer = MDACVer.Version.2.51

    I guess I can't be sure that MS has been consistent with this...but at least you can get the pattern for the more recent versions.

  7. #7
    4 Star Lounger
    Join Date
    Jan 2001
    Location
    Altnau, Thurgau, Switzerland
    Posts
    447
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: MDAC / ADO installed version (C++, DAO, ADO)

    Thanks, I'll do a search.

    What sort of problems did you have or would that take toooooo long to say?


    Here I've got Vis Studio.net installed on my development PC and it updated to MDAC 2.7 which promptly broke a freshly compiled exe on a clients PC which only had ver 2.6. installed. Hence the need to check which MDAC is installed.

  8. #8
    4 Star Lounger
    Join Date
    Jan 2001
    Location
    Altnau, Thurgau, Switzerland
    Posts
    447
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: MDAC / ADO installed version (C++, DAO, ADO)

    Not quite what I require but still may be of use, thanks I'll bear it in mind.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •