【问题标题】:How to allow installation in a custom target directory and suppress auto-start如何允许在自定义目标目录中安装并禁止自动启动
【发布时间】:2010-03-01 20:37:12
【问题描述】:

我开发了一个 VB.NET 控制台应用程序并尝试使用 Build |在 Visual Studio 2008 中发布菜单选项以创建设置。它工作正常,除了两件事: - 当我在 Windows 2003 服务器上运行安装程序时,它会将应用程序安装在 C:\Winnt\profiles\\Local Settings\Apps\2.0 目录中。如何配置设置以提示应用程序的目标目录? - 安装完成后,它会自动启动应用程序。如何抑制自动启动?

【问题讨论】:

    标签: vb.net console publish


    【解决方案1】:

    two options to deployVB.NET 应用程序:

    • ClickOnce: 这就是你目前正在用 Build | 做的事情。发布。它始终安装到用户的配置文件目录中,并且提供的自定义选项非常少。

    • Windows Installer: 这就是你用 File | 创建的。新 |项目 |其他项目类型 |设置和部署 |设置项目。它允许完全自定义和安装到Program Files

      更新:Windows Installer 安装项目一直是removed in Visual Studio 2012,但可以使用an extension in Visual Studio 2013

    只有后一种选项才能让用户选择目标目录。

    相关问题:How do I dictate the destination folder of a clickOnce application?

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-09-04
    • 2022-07-20
    相关资源
    最近更新 更多