C#如何在Windows窗体应用程序中使用sql数据库创建安装文件并在其他桌面上运行 [英] C# how to create setup file in windows form application with sql databas and run on other desktop

查看:68
本文介绍了C#如何在Windows窗体应用程序中使用sql数据库创建安装文件并在其他桌面上运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想安装exe文件..但是当我在其他桌面上运行此ext安装文件时,我遇到了问题..

i want to setup exe file ..but i got problem when i this ext setup file run on other desktop..

推荐答案

下面是一些链接帮助您部署它;

部署(单击一次) [部署您的应用程序和数据库 [ 在安装程序中.在这些步骤中,您将能够执行数据库
初始化,例如使用db restore命令.为此请查看此网页;

http://msdn.microsoft.com/en-us/library/49b92ztk(VS .80).aspx [ ^ ]

同样,当您在安装程序的属性上添加安装程序时,如果您将目标平台指示为"x86",我认为会做到这一点.

祝您好运
Well here are some links to help you to deploy it;

Deployment(Click Once)[^]

Deploy your Application and Database[^]
Or you can add you own custom code in other "steps" (called custom actions)
inside the setup. In those steps, you will be able to execute the database
initialization, using for instance a db restore command. For this look at this web page;

http://msdn.microsoft.com/en-us/library/49b92ztk(VS.80).aspx[^]

Also when you add an installer on its properties if you indicate the Target Platform to "x86" that will do it I think.

Good luck


我相信,如果您发布项目并将其放在驱动器上.它应该在创建OneTouch部署设置文件的位置创建一个文件夹.它还会自动增加您制作的版本.因为它是Windows窗体.双击属性"文件夹.单击发布选项卡.然后单击发布向导按钮!然后它将帮助您创建安装文件.
I believe if you publish your project and put it on your drive. It should make a folder where it creates a onetouch deployment setup file. It also auto increments your versions that you have made. Because it is a windows form. Go double click the Properties folder. Click on the publish tab. Then click the publish wizard button! Then it will help you create the setup file.


这篇关于C#如何在Windows窗体应用程序中使用sql数据库创建安装文件并在其他桌面上运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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