Sansei
Sansei

Reputation: 93

Run a task when UWP app is being deleted

I need to do some process when the app is being deleted in order to remove all impacts that the app incurs to the system. My app stores some credentials in Windows-Hello-Secure storage (CredentialService) and these credentials only can be removed by the app that registered them. Is there any way for doing that by running a task before uninstalling?

Upvotes: 0

Views: 157

Answers (2)

Mamoru Satoh
Mamoru Satoh

Reputation: 2710

I believe that there are no chance to remove the key at uninstallation. But, is this a real issue? If you use the Key Credential Manager for Windows Hello, only YOUR app can access the key. No one - except your app - can access for it.

Upvotes: 1

Dave Smits
Dave Smits

Reputation: 1879

No there isn't. the app model should take of leaving the system in the right state back. it deletes the app store, it removes protocol and file handler. Do you have a specific example for what you need to do this manually?

Upvotes: 0

Related Questions