Click here to Skip to main content
15,886,639 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi all,

I had successfully created Setup file(.exe) using windows forms application in C#.
Setup is installed and my functionality using app is working fine.
Installation path is in C-Drive : C:\Program Files (x86)\Default Company Name\MyApp

To install latest Setup with updated code, i uninstalled existing application from control panel .After Uninstalled, installed folder is showing deleted.

After that , I installed latest Setup without changing Installation path.
same path :C:\Program Files (x86)\Default Company Name\MyApp

Here i got problems, data relates to old set Up not removed completely.

I used Sq-lite Database as local DB in windows application, Latest installed Setup showing old data because of same installed path.
if installation path is changed, it is fine. but i cannot say to my clients to change installation path every time.


How can we remove all files while Uninstalling ?
Is there anything to do in my Setup ?
Posted
Updated 5-Feb-15 1:36am
v2
Comments
Mikkel Mellum Hviid 5-Feb-15 8:02am    
What installation manager do you use?
How did you uninstall it, though windows Uninstall a program?
Can't you just send an update? instead of asking customers to remove and install a program for every update? (if you are expecting more ofc)?
Ganesh KP 12-Feb-15 4:35am    
What type of installation procedure are you following?
You can use uninstaller to do or else you can use an update which will ask to uninstall the previous versions (if any) and then installs a fresh copy.
Coming to the database, are you restoring the database again after new installation? I guess when you restore a database, it will copy into C:\\ location.

But not very sure about the database issue unless and until if you can provide a few more details of the same.

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