Cleaning up Isolated Storage for a specific assembly

  • Thread starter Thread starter news.microsoft.com
  • Start date Start date
N

news.microsoft.com

Maybe I am missing something here but there seems to be a little shortcoming
of using isolated storage for storing user preferences.

I realize there is a utility called 'storeadm' which I can use to remove the
isolated storage for the current user (for all assemblies).

What I am wanting to do (and I would expect this to be a common scenario),
is that when my application uninstalls it would remove all isolated storage
for my assembly only.

My first guess would be to provide a command line option to my application
which would remove the isolated storage data for my assembly by using a call
to IsolatedStorageFile.Remove().

In an ideal world, I would go further and would like to be able to cleanup
my isolated storage files for my assembly and all users. However I guess
permissions play a role in this and may require relying upon an
administrator to perform the uninstall.

Does anyone know if this is possible? Is the IsolatedStorageFile.Remove()
option the correct way to do this? Maybe someone knows a better way to deal
with this problem?

Thanks,

Dave
 
Well, either I have everyone stumped or no one cares.

Please anyone, help would be appreciated.

Thanks,

Dave
 
Back
Top