.NET 4.0 是否附带 Microsoft.Jet.OLEDB.4.0?

发布于 2024-10-04 14:53:00 字数 236 浏览 1 评论 0原文

我想分发一个使用“Microsoft.Jet.OLEDB.4.0”和.NET 4.0 的应用程序。我已经找到了一种让安装程序在需要时下载 .NET 4.0 的方法。我只是想知道这是否会自动下载“Microsoft.Jet.OLEDB.4.0”,或者我是否还需要找到一种自行下载它的方法。如果是,我到底需要在用户计算机上下载并安装什么? (我正在使用 Inno Setup 来创建我的安装程序)。我不使用 ClickOnce,因为我想制作一个独立的 .exe。

I want to distribute an app that uses "Microsoft.Jet.OLEDB.4.0" and .NET 4.0. I already found a way for my installer to download .NET 4.0 if required. I just want to know if this will automatically download "Microsoft.Jet.OLEDB.4.0" or do I also need to figure out a way to download it by itself. If yes, what exactly do I need to download and install on the user machine? (I'm using Inno Setup to create my installer). I don't use ClickOnce because I want to make an standalone .exe.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

千年*琉璃梦 2024-10-11 14:53:00

否,.NET 4.0 不附带 Microsoft.Jet.OLEDB.4.0

您可以从此处下载 Microsoft.Jet.OLEDB.4.0 安装程序:如何获取 Microsoft Jet 4.0 数据库引擎的最新服务包

No, .NET 4.0 does not come with Microsoft.Jet.OLEDB.4.0

You can download the Microsoft.Jet.OLEDB.4.0 installer from here: How to obtain the latest service pack for the Microsoft Jet 4.0 Database Engine

雨巷深深 2024-10-11 14:53:00

我不是 100% 相信这一点,但 OLEDB 应该单独设置。您可以从

下载安装程序http://www.microsoft.com/downloads/en/details.aspx?familyid=C06B8369-60DD-4B64-A44B-84B371EDE16D&displaylang=en

更新,如果您愿意要与您的安装程序捆绑在一起,那么您必须使用 WIX http://wix.sourceforge.net/ ,它是 XML 基础项目,您可能必须使用 Votive(VS.NET 插件) - http://wix .sourceforge.net/votive.html

/* WiX 脚本 */

<Property Id="QtExecCmdLine" Value="AccessDatabaseEngine.exe"/>
<CustomAction Id="InstallOLEDB" BinaryKey="WixCA" DllEntry="CAQuietExec" Execute="immediate" Return="check" />

<InstallExecuteSequence>
  <Custom Action="InstallOLEDB" After="..." />
</InstallExecuteSequence>

有关 WiX 的更多信息和最佳入门位置,请访问 http://www.tramontana.co.hu/wix/

I'm not 100% of this but OLEDB should come in separate setup. You can download installer from

http://www.microsoft.com/downloads/en/details.aspx?familyid=C06B8369-60DD-4B64-A44B-84B371EDE16D&displaylang=en

Update, If you would like to bundle with your installer then you have to do with WIX http://wix.sourceforge.net/ , It is XML base project you may have to use the Votive (VS.NET Plug-In) - http://wix.sourceforge.net/votive.html

/* WiX Script */

<Property Id="QtExecCmdLine" Value="AccessDatabaseEngine.exe"/>
<CustomAction Id="InstallOLEDB" BinaryKey="WixCA" DllEntry="CAQuietExec" Execute="immediate" Return="check" />

<InstallExecuteSequence>
  <Custom Action="InstallOLEDB" After="..." />
</InstallExecuteSequence>

For more info of WiX and best place to get start at http://www.tramontana.co.hu/wix/

表情可笑 2024-10-11 14:53:00

您可能需要将此脚本用于您的 Inno Setup:

jet4sp8.iss:

    [CustomMessages]
   jet4sp8_title=Jet 4

   en.jet4sp8_size=3.7 MB
   de.jet4sp8_size=3,7 MB


  [Code]
   const
    jet4sp8_url = 'http://download.microsoft.com/download/4/3/9/4393c9ac-e69e-458d-9f6d-2fe191c51469/Jet40SP8_9xNT.exe';

  procedure jet4sp8(MinVersion: string);
  begin
    //check for Jet4 Service Pack 8 installation
    if fileversion(ExpandConstant('{sys}{\}msjet40.dll')) < MinVersion then
        AddProduct('jet4sp8.exe',
            '/q:a /c:"install /qb /l"',
            CustomMessage('jet4sp8_title'),
            CustomMessage('jet4sp8_size'),
            jet4sp8_url);
 end;

我假设您知道如何处理该代码,所以我将让您自行解决!

祝你好运!

纳特奥。

You would want this script for your Inno Setup:

jet4sp8.iss:

    [CustomMessages]
   jet4sp8_title=Jet 4

   en.jet4sp8_size=3.7 MB
   de.jet4sp8_size=3,7 MB


  [Code]
   const
    jet4sp8_url = 'http://download.microsoft.com/download/4/3/9/4393c9ac-e69e-458d-9f6d-2fe191c51469/Jet40SP8_9xNT.exe';

  procedure jet4sp8(MinVersion: string);
  begin
    //check for Jet4 Service Pack 8 installation
    if fileversion(ExpandConstant('{sys}{\}msjet40.dll')) < MinVersion then
        AddProduct('jet4sp8.exe',
            '/q:a /c:"install /qb /l"',
            CustomMessage('jet4sp8_title'),
            CustomMessage('jet4sp8_size'),
            jet4sp8_url);
 end;

I assume you know what to do with the code so I'll leave you to it!

Good Luck!

Nateeo.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文