|
-
March 2nd, 2011, 05:17 AM
#1
windows 7 virtual store issue during uninstallation
I have noticed that when we uninstall a software in Windows 7, it does not remove its virtual store directory in App Data for current user. This thing is causing me trouble. is there any way to force my application to uninstall app data for current user as well when it is uninstalled.
Background:
I have a C# application and I store some settings in App.Config file for my application. The data store for the application is a MDF file.I have also made an installer for the application using Visual Studio setup project. The above mentioned issue does not arises in Windows XP but when we uninstall the application in Windows 7, the Windows does not remove application folder under app data virtual store (it contains MDF file and MyApp.exe.config file). When next time I install the application and run it, the application picks configuration settings from the already stored virtual store config file, not from the config file in its own directory. I need every user on the system to have access to the SAME database file.
Last edited by nabeelisnabeel; March 2nd, 2011 at 05:30 AM.
-
December 16th, 2011, 04:24 AM
#2
Re: windows 7 virtual store issue during uninstallation
Hi nabeel, did you find out how to do it.. i have come to the same problem. kindly let me know.
Thanks,
Rajesh
-
May 9th, 2012, 06:11 AM
#3
Re: windows 7 virtual store issue during uninstallation
still in search for answers
-
May 9th, 2012, 06:29 AM
#4
Re: windows 7 virtual store issue during uninstallation
Well you can get to your AppData folder this way :
Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData);
There you can grab your program folder on uninstallation and delete it (if it's only config then it doesn't matter as there's no executable inside)
If it's not that I didn't understood the problem :/
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|