Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How Do I Detect DAO Installed?

How Do I Detect DAO Installed?

Scheduled Pinned Locked Moved C / C++ / MFC
questionannouncement
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    John Clump
    wrote on last edited by
    #1

    Hi everyone. I need to detect whether or not DAO 3.5 or higher is installed on a system, specifically the Jet engine. Both my installer and the program itself will detect this. I looked over at codeguru and found an article which says to check to see if the key "HKEY_LOCAL_MACHINE\Software\Microsoft\Jet\3.5\Engines". I assume, logically, I would check to see if the Jet 3.5 subkey exists to check if the Jet 3.5 engine is installed. My question is, is this the best way to do this, and is it the way Microsoft recommends? I searched MSDN for hours and couldn't find an article on the proper way to detect a DAO installation. And, will this work if the user has a higher version than 3.5 installed? Thanks!

    D J 2 Replies Last reply
    0
    • J John Clump

      Hi everyone. I need to detect whether or not DAO 3.5 or higher is installed on a system, specifically the Jet engine. Both my installer and the program itself will detect this. I looked over at codeguru and found an article which says to check to see if the key "HKEY_LOCAL_MACHINE\Software\Microsoft\Jet\3.5\Engines". I assume, logically, I would check to see if the Jet 3.5 subkey exists to check if the Jet 3.5 engine is installed. My question is, is this the best way to do this, and is it the way Microsoft recommends? I searched MSDN for hours and couldn't find an article on the proper way to detect a DAO installation. And, will this work if the user has a higher version than 3.5 installed? Thanks!

      D Offline
      D Offline
      Dominik Reichl
      wrote on last edited by
      #2

      I have no idea what is the recommended way by Microsoft but I would enumerate all registry keys under HKEY_LOCAL_MACHINE\Software\Microsoft\Jet\ and parse the returned strings to version numbers... -Dominik


      _outp(0x64, 0xAD); and __asm mov al, 0xAD __asm out 0x64, al do the same... but what do they do?? ;)

      1 Reply Last reply
      0
      • J John Clump

        Hi everyone. I need to detect whether or not DAO 3.5 or higher is installed on a system, specifically the Jet engine. Both my installer and the program itself will detect this. I looked over at codeguru and found an article which says to check to see if the key "HKEY_LOCAL_MACHINE\Software\Microsoft\Jet\3.5\Engines". I assume, logically, I would check to see if the Jet 3.5 subkey exists to check if the Jet 3.5 engine is installed. My question is, is this the best way to do this, and is it the way Microsoft recommends? I searched MSDN for hours and couldn't find an article on the proper way to detect a DAO installation. And, will this work if the user has a higher version than 3.5 installed? Thanks!

        J Offline
        J Offline
        Joel Lucsy
        wrote on last edited by
        #3

        We use a try-catch around AfxDaoInit() function to test if DAO is working correctly and abort/warn if it is not. It throws a CDaoException if something isn't right. Joel Lucsy

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups