通过包含DB来构建Windows应用程序的安装文件? [英] build setup file for Windows application by including DB?

查看:48
本文介绍了通过包含DB来构建Windows应用程序的安装文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用windows c#.net和ms sql server 2008创建了windows应用程序。我将构建包含数据库的安装文件。是否可以构建一个包括DB而不在我的客户端系统中安装MS SQL Server 2008的设置?如果可能,这有助于无需在我的客户端系统中安装SQL Server,或者提供可能的反馈。在此先感谢。

I have created windows application using windows c#.net and ms sql server 2008. And i am going to build setup file including database. Is that possible to build a setup including DB with out installing MS SQL Server 2008 in my client system?. If possible, this helps no need to install SQL server in my client system or else give a possible feedback. Thanks in advance.

推荐答案

解决问题的更合适的方法是在提交阶段后立即在您的设置中创建自定义操作。

Visual Studio安装项目中的自定义操作 [ ^ ]



我已经完成了以下步骤:提交表格后,要求提供数据库连接道具和安装位置。然后,它执行TSQL命令以创建表和数据。效果很好。
A more suitable way to solve your issue would be to create a Custom Action in your setup right after commit-phase.
Custom Action in Visual Studio setup projects[^]

I did the following steps already: after commit a Form opens, asking for the DB Connection props and the place to install. Afterwards it executes the TSQL commands to create the Table and Data. Works great.


这篇关于通过包含DB来构建Windows应用程序的安装文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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