Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
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 2-Apr-13 18:44pm
FM7618
Edited 3-Apr-13 20:54pm
v3

1 solution

Rate this: bad
good
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 Smile | :)
 
Cheers,
Edo
  Permalink  
Comments
MP59 at 4-Apr-13 2:15am
   
How can do that?
Edo Tzumer at 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
0 George Jonsson 215
1 Kornfeld Eliyahu Peter 169
2 OriginalGriff 120
3 PIEBALDconsult 110
4 BillWoodruff 85
0 OriginalGriff 6,165
1 DamithSL 4,658
2 Maciej Los 4,087
3 Kornfeld Eliyahu Peter 3,649
4 Sergey Alexandrovich Kryukov 3,294


Advertise | Privacy | Mobile
Web04 | 2.8.141220.1 | Last Updated 4 Apr 2013
Copyright © CodeProject, 1999-2014
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