【问题标题】:how to attach a setup file to a setup project for a C# application in visual studio如何将安装文件附加到 Visual Studio 中 C# 应用程序的安装项目
【发布时间】:2011-12-04 13:24:43
【问题描述】:

我正在开发一个应用程序,它处理从 excel 文件(xls 和 xlsx)中读取数据。

因此,它要求必须在客户的 PC 上安装 Microsoft Access Database Engine 2010。 http://www.microsoft.com/download/en/details.aspx?id=13255

我不知道当我为 C# 应用程序创建安装项目时,安装过程是否会检查客户端是否安装了上面的引擎。如果没有,它将在设置应用程序之前安装它。

我的问题是:如何在 Visual Studio 2010 中为 C# 应用程序创建安装项目?

提前致谢。

【问题讨论】:

标签: c# ms-access installation


【解决方案1】:

你会尝试这样吗?你可以添加你的 microsoft access 数据库引擎

喜欢appSettings ElementSectionInformation.ConfigSource Property 中的文件属性

<configuration>
    <appSettings file="machine-specific.config">
        <add key="Application Name" value="MyApplication" />
    </appSettings>
</configuration>

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多