How to clear the isolated storage of another application?

Appendix 1 uses the Microsoft Enterprise Library caching application block with IsolatedStorageBackingStore to cache data from a database accessed over the Internet. The challenge is to create another Application2 (a helper application such as "Uninstaller Adobe Flash Player") that can clear the cache of Application1 (this will be one of the many features of Application2).

The question is, how can Application2 get the cache path of the Application1 folder (to clear it)?

Will the path be something like " <System Drive>\Documents and Settings\<User>\Local Settings\Application Data\IsolatedStorage\tqli5mdv.xa5\htccao3l.ksb\StrongName.1r3fiexsbrusebdd0maaohl2i5cz4lhq\StrongName.mwjgo5cc1qomwe5tbepbfnyucq0obm3f\Files\<BackingStore PartitionName>"?

It’s a pity, but the user has several applications with the same <BackingStore PartitionName>, and this cannot be changed, so Application2 cannot find this path using the string <BackingStore PartitionName>(of course, there will be several folders - one for each application - and I don’t know how Application2 can choose which folder belongs to Application1). I have been googled a lot, but without result. Please, help.

+3
source share
1 answer

I'm not sure about the latest versions of the Caching block, but previous versions did not allow you to do this. They split the storage by the name of the application assembly (by the way), so the two applications cannot see each other's data.

0
source

Source: https://habr.com/ru/post/1709840/


All Articles