CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 2006
    Posts
    220

    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.

  2. #2
    Join Date
    Dec 2011
    Posts
    1

    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

  3. #3
    Join Date
    Apr 2006
    Posts
    220

    Re: windows 7 virtual store issue during uninstallation

    still in search for answers

  4. #4
    Join Date
    Feb 2012
    Location
    Strasbourg, France
    Posts
    116

    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
  •  





Click Here to Expand Forum to Full Width

Featured