如何允许安装在自定义目标目录中并禁止自动启动
我开发了一个 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
有两个部署选项< /a> VB.NET 应用程序:
ClickOnce:这就是您当前使用 Build | 执行的操作发布。它始终安装到用户的配置文件目录中,并且提供很少的自定义选项。
Windows安装程序:这是您使用文件 | 创建的内容新 |项目|其他项目类型 |设置和部署 |设置项目。它允许完全自定义并安装到
Program Files
。更新:Windows Installer 安装程序项目已已在 Visual Studio 2012 中删除,但可作为 Visual Studio 2013 中的扩展。
只有使用后一个选项才可以让用户选择目标目录。
相关问题:如何指定目标文件夹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?