After uninstall the program data file remain same as before in Vista
I have developed a win form application with .NET 3.5 and C# in Visual Studio 2008. This application using Microsoft Access 2003 file as database. My development machine have Windows XP installed.
When I've completed the development of the application, I've created setup project for this, which is keeping the database in windows Common Application Data folder (in XP: C:\Documents and Settings\All Users\Application Data, and in Vista: C:\ProgramData).
I've installed the application in Vista and XP machine. Its working as desired except few small bugs. Then I've uninstalled the program and installed it again in XP and Vista machine. And here comes the BIG issue. In XP it s working nicely. But in Vista the program displaying an error which saying some data file path is missing (I am saving some file path in DB field.) After some research I found that this error actually raised for some files which was created after previous install. My question is, i have uninstalled the program successfully, so the database i used is also deleted physically, then how the newly installed application find data from previously installed application?
This is only happening in Vista (don't know about Win 7). Please let me know if anyo开发者_JS百科ne solved this problem.
If you create files by your application, how setup will know about them and delete on uninstall? Create custom action.
精彩评论