如何在Windows应用程序中创建exe文件以及如何使用该exe文件 [英] how to create a exe file in windows application and how to use that exe file

查看:188
本文介绍了如何在Windows应用程序中创建exe文件以及如何使用该exe文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在Windows应用程序中创建exe文件
以及如何将数据库与该exe文件一起附加.
最终如何执行该软件.

到目前为止,我还没有部署任何软件.请帮助我的朋友....

How to create a exe file in windows application
and how to attach a database along with that exe file.
Atlast how to execute that software.

I didnt deploy any software till now. kindly guide me friends....

推荐答案

如果您从Visual Studio项目类型菜单中选择Windows窗体应用程序,则输出将自动为.exe文件:

http://msdn.microsoft.com/en-us/library/ms235634%28v = vs.100%29.aspx [ ^ ]

您可以将这些项目类型与Visual Studio安装程序项目一起部署:

http://msdn.microsoft.com/en-us/library/19x10e5c%28v = vs.100%29.aspx [ ^ ]

如果将.exe项目的主要输出添加到安装程序中,这将为您部署.exe项目.要附加数据库,您可能必须走设置项目中的自定义安装操作"之路:

http://msdn.microsoft.com/en-us/library/d9k65z2d%28v = vs.100%29.aspx [ ^ ]

我会考虑使用SMO附加数据库,或者从命令行运行osql命令:

http://msdn.microsoft.com/en-us//library/ms162169.aspx [ ^ ]

http://msdn.microsoft.com/en-us/library/ms162806%28v = sql.105%29.aspx [ ^ ]
If you select Windows Forms Application from the Visual Studio project types menu, the output will automatically be an .exe file:

http://msdn.microsoft.com/en-us/library/ms235634%28v=vs.100%29.aspx[^]

You can deploy these project types with a Visual Studio Setup project:

http://msdn.microsoft.com/en-us/library/19x10e5c%28v=vs.100%29.aspx[^]

This will deploy the .exe project for you if you add the Primary Output of the .exe project to the setup. For attaching a database you might have to go down the road of Custom Install Actions in the setup project:

http://msdn.microsoft.com/en-us/library/d9k65z2d%28v=vs.100%29.aspx[^]

I would consider either using SMO to attach the database, or running an osql command from the command line:

http://msdn.microsoft.com/en-us//library/ms162169.aspx[^]

http://msdn.microsoft.com/en-us/library/ms162806%28v=sql.105%29.aspx[^]


如何使用数据库(包括和客户端系统所需的软件 [从使用sql数据库的Windows窗体应用程序制作exe文件 [ ^ ]
For exe file.[^]
How to create exe file with database including and softwares needed at client system[^]
make exe file from Windows form application which is using sql database[^]


这篇关于如何在Windows应用程序中创建exe文件以及如何使用该exe文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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