如何注册ODBC驱动程序? [英] How to register ODBC driver?

查看:452
本文介绍了如何注册ODBC驱动程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经为我的学校项目创建了一个清单系统,并且我将SqlLite用作独立的数据库.只要安装SqlLite ODBC连接(单独的安装程序),我就可以运行它.

I have created a inventory system for my school project and I use SqlLite as standalone DB. I am able to run it as long as I install the SqlLite ODBC connection (separate installer).

但是我想要创建一个安装程序,并将SqlLite ODBC驱动程序与我的项目一起安装在一个安装程序中,而不是运行两个单独的安装程序(我的应用程序和sqlLite ODBC驱动程序安装程序).

But what I want is to create an installer and install the SqlLite ODBC Drivers along with my porject in one installer instead of of running two separate installer (my application and sqlLite ODBC driver installer).

任何想法怎么做?或您有什么建议吗?

Any idea how to do it? Or do you have any recommendation?

到目前为止我所做的.我将SQLLite ODBC dll复制到我的应用程序文件夹中并运行它,但显示错误消息,表明未安装ODBC驱动程序.我在32位和64位Windows操作系统上都无法注册SqlLite odbc dll.

What I have done so far. I copy the SQLLite ODBC dll into my application folder and run it but an error shows telling that no ODBC driver installed. I failed to register the SqlLite odbc dll on both 32 and 64 bit windows OS.

推荐答案

我建议您创建一个Bootstrapper安装程序包. 您没有提到要交付的平台,但是由于您是在谈论安装程序,因此我假设该平台是Windows.

What I would recommend for you is to create a bootstrapper installation package. You didn't mention the platform you are delivering for, but since you are writing about installers I will assume that the platform is Windows.

您可以使用多种安装程序框架在Windows上为您的软件创建安装程序,但是我最近使用并推荐的安装程序框架是 WixToolset .他们在此处

There are multiple installer frameworks you can use to create installers for your software on Windows, but the one I recently used and would recommend is WixToolset. They have some documentation on how to build bootstrapper bundles here

非常简单,我的wix引导程序归结为安装了一个exe安装程序和一个msi安装程序,并且配置看起来像这样(非常简单-我提供的链接包含有关如何配置所有功能的完整文档)

In great simplicity my wix bootstrapper came down to installing one exe installer and one msi installer and the configuration looked something like this (in great simplicity - the link I provided has full documentation on how to configure all the features)

<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:bal="http://schemas.microsoft.com/wix/BalExtension"       xmlns:util="http://schemas.microsoft.com/wix/UtilExtension">
   <Bundle Version="..." Name="...">
        <Chain>
            <ExePackage Id = "x86redist" SourceFile="..." ... />
            <MsiPackage Id = "myApp" SourceFile ="..." ... />
        </Chain>
  </Bundle>
</Wix>

构建后最后,我的引导程序包看起来像这样

in the end after building, my bootstrapper bundle looked like this

并确保在计算机完成安装后,我的软件和可再发行软件包都已安装在计算机上.

and made sure both my software and the redistributable package were installed on the machine when it was finished.

您可以使用完全相同的方法-该软件包可以使用其原始安装程序安装odbc驱动程序,然后安装软件.

You could use exactly the same approach - the bundle could install the odbc driver using its original installer, and then install your software.

这篇关于如何注册ODBC驱动程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆