zoukankan      html  css  js  c++  java
  • Determine Microsoft Database AccessEngine Version (zz)

    //z 2012-08-08 10:47:37 IS2120@CSDN.T1266408108[T51,L288,R10,V504]
    Determine Microsoft Database AccessEngine Version
    access mdb 数据库 引擎 版本 信息


    Hi Everyone,

    We develop an application that installs on 32 and 64-bit machines. Depending onthe version of MS Office installed, we then install the appropriate MADE(Microsoft Access Database Engine) version. The MADE install runs silently inthe background. If a user uninstalls our application, the MADE is leftuntouched and remains on the user's computer. An issue arises when the userdoes not have MS Office installed. In this scenario, a user could first installthe 32-bit version of our application, uninstall and then install the 64-bitversion. In which case two things occur:

    • Both 32 and 64-bit versions of MADE are now installed on the computer
    • Our application does not work


    How can we determine what version of MADE that may already exist on theircomputer? Can we tell if it is 32-bit or 64-bit? I have done quite a bit ofsearching to see if I can find a way to determine which version of MADE is alreadyinstalled, but have been unsuccessful to this point. My goal is to be able torun a check on the MADE (32 or 64-bit) to see if it is possible for theinstallation to continue. If there is a 32-bit version of MADE alreadyinstalled (without MS Office on the computer) then I do not want to install the64-bit MADE. Obviously, doing so risks having our application not working,along with any other that uses MADE.

    Any ideas would be greatly appreciated.

    Thanks!

    //z 2012-08-08 10:47:37 IS2120@CSDN.T1266408108[T51,L288,R10,V504]
    I would check the existance of thefollowing registry keys on 64-bit machines:

    For 64-bit:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\14.0\Access ConnectivityEngine\InstallRoot

    For 32-bit:
    HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Office\14.0\AccessConnectivity Engine\InstallRoot

    __________________

    //z 2012-08-08 10:47:37 IS2120@CSDN.T1266408108[T51,L288,R10,V504]
  • 相关阅读:
    C#函数式编程
    三种观察者模式的C#实现
    使用C#设计Fluent Interface
    02.Python网络爬虫第二弹《http和https协议》
    03.Python网络爬虫第一弹《Python网络爬虫相关基础概念》
    第七章:Python基础のXML操作和面向对象(一)
    第五章:Python基础の生成器、迭代器、序列化和虚拟环境的应用
    第六章:Python基础の反射与常用模块解密
    第四章:Python基础の快速认识內置函数和操作实战
    第三章:Python基础の函数和文件操作实战
  • 原文地址:https://www.cnblogs.com/IS2120/p/6745864.html
Copyright © 2011-2022 走看看