如何将vb.net项目打包成exe文件 [英] how to package a vb.net project into exe file

查看:877
本文介绍了如何将vb.net项目打包成exe文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好我想知道如何将在visual studio 2010 express中开发的项目与access数据库打包成exe文件,意味着可执行程序,我需要你的帮助,我甚至想知道哪些软件可以帮助我正确地做到这一点。



我未能部署或打包我的项目,我看不到包的部署,我能否知道

我可以用来打包我项目的其他程序吗?请帮帮我



谢谢

Hello guys I would like to know how to package a project developed in visual studio 2010 express with access database into exe files, means into executable program, I need your help, I would even like to know which software that can help me to do it properly.

I m failing to deploy or to package my project, I can't see the package deployment, can I get know
any program else I can used to package my project? please help me out

thank you

推荐答案

嗨大卫,



您可以在Visual Studio中构建部署工具。按照以下步骤创建项目的安装程序。





1)点击文件 - > '添加' - > '新项目'。

2)转到'其他项目类型'和'设置和开发'。

3)选择'设置项目'。

4)在解决方案资源管理器中右键单击您的安装项目。

5)选择属性。

6)单击先决条件...按钮。

7)选择先决条件(例如.NET Framework,Windows Installer)。

8)按确定,按应用。

9)右键单击左侧文件系统窗口中的应用程序文件夹。

10)选择添加 - > '项目输出'

11)完成后,右键单击右侧文件系统窗口。

12)选择添加以及您想要添加到应用程序目录中的任何内容安装,如数据库或任何其他文件。

13)右键单击'项目输出....'

14)选择'创建Shorcut到主输出... 。'

15)右键单击'Shorcut to Primary output from ...'

16)选择'重命名'

17)将其命名为申请后。

18)选择它并将其向左拖动到用户程序菜单。

19)(构建解决方案)构建安装项目。 />
20)在安装项目目录中,你会找到.exe和.msi文件来安装你的应用程序。



你也可以设置一个选择放置必要的安装程序,如点网,水晶报告(如果需要)。



如果您有任何困难,请告诉我。



谢谢和问候,
Zeeshan。
Hi David,

You can you in built deployment tool in Visual studio.Follow this steps to create an installer of your project.


1) Click 'File' -> 'Add' -> 'New Project'.
2) Goto 'Other Project Types' and 'Setup and Development'.
3) Choose 'Setup Project'.
4) In the 'Solution Explorer' rightclick on your setup project.
5) Choose 'Properties'.
6) Click 'Prerequisites...' button.
7) Choose your prerequisites (e.g. .NET Framework, Windows Installer).
8) Press 'OK', press 'Apply'.
9) Rightclick on 'Application Folder' in the left File System window.
10) Choose 'Add' -> 'Project Output'
11) When done, rightclick in the Right File System window.
12) Choose 'Add' and whatever you want to add to the application directory during installation like database or any other file.
13) Right click on 'Project output from ....'
14) Select 'Create Shorcut to Primary output from ...'
15) Rightclick on 'Shorcut to Primary output from...'
16) Choose 'Rename'
17) Name it after your application.
18) Select it and drag it to the left to 'User's Program Menu'.
19) (Build solution) Build your setup project.
20) In the setup project directory you'll find the .exe and .msi file to install your application.

You can also set an option to put the prerequisite installers like dot net,crystal report (if required).

Let me know if you have any difficulty.

Thanks & Regards,
Zeeshan.


最简单的方法是添加安装和部署项目 [ ^ ]到您的解决方案。
Easiest way is to add an Installation and Deployment project[^] to your solution.


这篇关于如何将vb.net项目打包成exe文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆