Click here to Skip to main content
13,252,362 members (59,933 online)
Rate this:
Please Sign up or sign in to 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 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 2-Apr-13 18:44pm
Updated 3-Apr-13 20:54pm

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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 :)

MP59 4-Apr-13 2:15am
How can do that?
Edo Tzumer 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)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web03 | 2.8.171114.1 | Last Updated 4 Apr 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100