代码之家  ›  专栏  ›  技术社区  ›  eoeroglu

Visual Studio安装程序项目中的其他安装程序

  •  2
  • eoeroglu  · 技术社区  · 6 年前

    我正在尝试为我的项目创建安装。我使用的是MS Access数据库,要使其工作,需要访问数据库引擎。如果我下载引擎 https://www.microsoft.com/en-us/download/details.aspx?id=54920 从这里开始安装,程序工作。

    如何将该安装添加到我的安装中?

    我正在使用Visual Studio 2015、C和OLEDB。

    2 回复  |  直到 6 年前
        1
  •  2
  •   Stein Åsmul    6 年前

    short version : 本质上,您需要部署工具。 list view of major deployment tools. >a>。也许列表视图是最简单的概述?(范围感)。下面有更多详细信息(链接也太多)。


    details :there is some prerequisite functionality available in Microsoft Visual Studio 2017 Installer Projects >,but I am unknowledge with细节。 i find this project type insufferred for real deployment work for a long of real deployment work for a reals(showing features and some odd implementations). more on this here. -a some concrete problems to consider.

    一些商业工具将为您提供特殊功能,帮助您快速完成(ER)。我验证了 高级安装程序 can do it (and here is a great gateway. to all things advanced installer. some free features available)。我假设 installshield >a>can do i t as well(当然对于其他运行时,没有验证此特定运行时)。通常,它将由一个 setup.exe处理,它与您自己的msi文件一起嵌入所有运行时。

    in other tools. >,you will have to do it yourself,by figuring out command lines and how to handle error conditions.这里有一些提示(我没有测试过-谷歌扫描会给你更多): https://www.itninja.com/software/microsoft/access runtime/2016-1

    进入 accessruntime_-1001_x64_en-us.exe/?获取更多命令行信息。<代码>::

    wix- is free and open source-with a relative hefty learning curve if you don't know msi,and contains a bootstrapper feature called” burn”(燃烧),即“burn”(燃烧)。以下是以下文档: how to:install the.NET framework using burn (首先阅读“building installation package bundles”中的说明)步骤1”)。 a real-world burn sample 。以及 Some sample source markup

    有些开发人员建议使用 dotneinstaller bootstrapper >。我知道的不多。它只是一个引导程序。按顺序为您运行。

    如果您正在进行内部部署或临时部署,即使是批处理文件也可以完成我认为的工作,但是如果您这样做是为了实现大规模和通用部署的真正产品,我会非常担心。 如果有一件事我们讨厌作为部署专家,我会说它是包中嵌入的批处理文件。批处理文件(和脚本)是系统管理员工具,而不是常规部署工具。


    一些旧链接:

        2
  •  1
  •   PhilDW    6 年前

    Visual Studio安装项目在项目属性中有一个先决条件选项。这允许您从标准先决条件列表中进行选择,并生成将安装先决条件,然后安装MSI的setup.exe。Access运行时不会出现在安装项目的后续版本中,因为(我假设)Access 2013在2018年结束了主流支持。向这个机制添加您自己的先决条件的方法是使用引导清单生成器,它可能仍然可用,但没有很好的文档记录:

    https://msdn.microsoft.com/en-us/library/ms165429.aspx

    除此之外,我建议您学习如何构建一个wix burn bootstrapper可执行文件,该文件将安装Access运行时,然后安装您的msi(如果需要,还可以使用Visual Studio构建)。如果你搜索它,你会发现这类东西:

    WiX - Install Prerequisites and 3rd party applications

    https://www.c-sharpcorner.com/UploadFile/cb88b2/installing-prerequisites-using-wix-bootstrapper-project-and/

    这些将解释如何构建XML以检查是否安装了访问运行时,以及用于安装该运行时的命令。这是比引导清单生成器更好的选择。