如何允许安装在自定义目标目录中并禁止自动启动

发布于 2024-08-23 18:17:29 字数 237 浏览 5 评论 0原文

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

I've developed a VB.NET console application and tried to use the Build | Publish menu option in Visual Studio 2008 to create a Setup. It works fine except two things:
- when I run the Setup on a Windows 2003 Server, it installs the application in the C:\Winnt\profiles\\Local Settings\Apps\2.0 directory. How can I configure the setup so that it would prompt for a target directory for the application?
- after the Setup is complete, it starts the application automatically. How can I suppress the auto-start?

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

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

发布评论

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

评论(1

或十年 2024-08-30 18:17:29

两个部署选项< /a> VB.NET 应用程序:

只有使用后一个选项才可以让用户选择目标目录。

相关问题:如何指定目标文件夹clickOnce 应用程序的?

There are two options to deploy VB.NET applications:

  • ClickOnce: This is what you are currently doing with Build | Publish. It always installs into the user's profile directory and it provides very little customization options.

  • Windows Installer: This is what you create with File | New | Project | Other Project Types | Setup and Deployment | Setup Project. It allows full customization and installing to Program Files.

    UPDATE: Windows Installer Setup projects have been removed in Visual Studio 2012, but are available as an extension in Visual Studio 2013.

Letting the user choose a target directory is only possible with the latter option.

Related question: How do I dictate the destination folder of a clickOnce application?

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