安装项目&在再次安装后丢失数据库中的数据 [英] Setup project &Lose data in DB after installing again

查看:70
本文介绍了安装项目&在再次安装后丢失数据库中的数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人有想法?

i有一个项目在C#中使用DB SQlExpress .i创建一个安装项目来安装我的项目在其他系统中。现在我有2个问题:

1-如何将文件和数据库以及rpt文件和...放到我的安装项目中以正常工作?

2 -i创建安装文件(EXE)并将其安装在另一个系统上它工作,所以用户使用应用程序和DB中的数据将更改。现在,如果我从PC卸载应用程序并再次安装它,DB文件将与第一次相同!并且DB文件中的所有更改都将丢失!!!

如何解决这个问题?



感谢朋友

Does anybody have idea?
i have a project using DB SQlExpress in C#.i create a setup project to install my project in other systems.now i have 2 questions:
1- how to put files and DB and rpt files and... to my setup project to working exactly right?
2-i create setup file(EXE) and install it on another system and it works,so user works with application and data in DB will change.Now if i uninstall the application from PC and install it again,the DB file will be same as first time!!! and all of changes in DB file will lost!!!
How can solve this problem?

thanks friends

推荐答案

嗨MP59,



为什么不创建具有可配置名称的DB文件,以便用户可以决定他是否\it希望覆盖数据库或创建新数据库?



应该相当简单:)



干杯,

Edo
Hi MP59,

Why not create the DB file with configurable name so that the user can decide if he\she\it wishes to override the DB or create a new one?

Should be fairly simple :)

Cheers,
Edo


这篇关于安装项目&在再次安装后丢失数据库中的数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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