Click here to Skip to main content
15,893,594 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more: , +
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
Posted
Updated 3-Apr-13 19:54pm
v3

1 solution

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
 
Share this answer
 
Comments
FM7 4-Apr-13 2:15am    
How can do that?
Joezer BH 4-Apr-13 3:23am    
It depends on your application logic. Where the DB is, the nature of the connections handling.
But in the place you create a DB for the user, you can use a DB name entered by the user, just pop up a little form with the configurations you wish to provide, like DB file name, user pass etc

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900