为 VS 2013 Express VB.Net 程序制作安装程序

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/26068862/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-17 18:17:02  来源:igfitidea点击:

Making an installer for a VS 2013 Express VB.Net program

vb.netinstallerinstallationvisual-studio-express

提问by Rick Johnson

Using Visual Studio Express 2013 for Windows Desktop, I made a VB.Net WinForms application for someone and am trying to generate an installer/setup file so that they can install it on their own computer.

使用适用于 Windows 桌面的 Visual Studio Express 2013,我为某人制作了一个 VB.Net WinForms 应用程序,并尝试生成一个安装程序/设置文件,以便他们可以在自己的计算机上安装它。

I did use the Publish Wizard to produce a set of files which has a setup.exe file, a .application file for the project, an autorun.inf file, and an Application Files folder with .deploy, .manifest and .application files in it. I also have a spreadsheet document added as a resource, but it ends up in another folder generated by this setup process.

我确实使用发布向导生成了一组文件,其中包含 setup.exe 文件、项目的 .application 文件、autorun.inf 文件以及包含 .deploy、.manifest 和 .application 文件的 Application Files 文件夹它。我还添加了一个电子表格文档作为资源,但它最终位于此设置过程生成的另一个文件夹中。

How can I produce a successful installer to send the person this program? This is what I was hoping to accomplish:

我怎样才能制作一个成功的安装程序来向这个人发送这个程序?这是我希望完成的:

  1. Have the setup prompt the user for the destination folder
  2. Have the spreadsheet be installed to the same folder as the executable
  1. 让安装程序提示用户输入目标文件夹
  2. 将电子表格安装到与可执行文件相同的文件夹中

Thank you to anyone who is able to assist.

感谢任何能够提供帮助的人。

采纳答案by Bogdan Mitrache

You can create an MSI with the free edition of Advanced Installer, following the linked tutorial. It's a 5 minutes tutorial that will generate at the end your installer.

您可以按照链接教程使用免费版 Advanced Installer创建 MSI 。这是一个 5 分钟的教程,将在最后生成您的安装程序。

VS Express has its own limitations, this is whyone is that you cannot import the binary files generated by your solution directly into the project (neither the one generated by Advanced Installer or the one generated by IS).

VS Express 有其自身的局限性,这就是为什么您无法将解决方案生成的二进制文件直接导入到项目中(Advanced Installer 生成的二进制文件或 IS 生成的二进制文件)。

The solution is to manually add your files in the project, just drag and drop them in Files and Folders page from Advanced Installer. There you can also create the shortcut for your EXE, so the end user can launch your application.

解决方案是在项目中手动添加文件,只需将它们拖放到 Advanced Installer 的 Files and Folders 页面中即可。您还可以在那里为您的 EXE 创建快捷方式,以便最终用户可以启动您的应用程序。