Click here to Skip to main content
15,867,308 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more: , +
Hello
My program is use a SQLServer2008R2
i install it without the database,and install the SQLServer2008R2 alone
then attach the mydb to SQLServer manually
my problem is : when i uninstall the program, the all data that saved by the program is lost. only i found the data that previously saved on mydb manually.
this problem happen when i use windows XP, on win8 & win7 no problems.
what is the solution to this scenario
Posted
Comments
Sergey Alexandrovich Kryukov 29-Dec-14 18:17pm    
Not enough information. You could program your installer in different ways: to preserve all or part of user's data, to remove it... anything.
—SA
M. Daban 30-Dec-14 2:23am    
I'm using visual studio 2010 setup wizard, how to do it?
Sergey Alexandrovich Kryukov 30-Dec-14 3:10am    
I don't know all the detail, just because this setup project type is too bad to take is seriously, so I never use it seriously. Probably that's why it has been deprecated by later versions of Visual Studio. I usually advise to use much more legitimate product: open source WiX toolset.
—SA
User-8621695 30-Dec-14 1:12am    
Do you mean that you install your program and then connect to your database. Now you did some operation like save any data using form in your database. Now whenever you uninstall the exe all data removes from the database.
M. Daban 30-Dec-14 2:17am    
Yes

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