带有数据库的部署应用程序 [英] Deployment application with Database

查看:83
本文介绍了带有数据库的部署应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我是在C#.net中创建安装项目的新手.我需要创建C#Windows安装程序项目,以便在用户安装该项目时,如果在PC中退出了sql server,也将在用户的PC中创建并还原数据库.否则,安装程序将警告PC上不存在任何sql server,并将回滚安装.

为此,我尝试了一些方法,将backupFile作为文件放置在安装项目中.我试图从用户的目标目录(例如D:\ Program files \ ....)中获取它,但是失败了.错误消息是在位置c:\ Windows \ System32 \ Files ........
找不到文件
请帮我.

Farazi

Hi,
I am new in creating setup project in C#.net. I need to create the C# windows setup project so that when the user install the project the Database will also be created and restored in user''s PC if sql server is exits in the PC. Otherwise, the setup will warn that no sql server is exit in the PC and will rollback the installation.

For this i tried the way, i put the backupFile in setup project as file. i tried to get it from User''s target Directory (such as D:\Program files\....) but failed. The error message is can not find the file at location c:\Windows\System32\Files........

plz help me.

Farazi

推荐答案

查看此处:
部署您的应用程序和数据库 [在VS.NET中创建安装和部署项目 [
Look here:
Deploy your Application and Database[^]
Creating Setup and Deployment Projects in VS.NET[^]


这篇关于带有数据库的部署应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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