I want to find a solution when the user uninstalls my app, a toast notification will be shown. But I could not find any solution for it. I tried using, the package uninstall event: https://docs.microsoft.com/en-us/uwp/api/windows.applicationmodel.packagecatalog.packageuninstalling?view=winrt-18362 But this only worked when the app was opened. Not when the app is closed. Is there any way to observe app uninstallation? I heard I can do that using win32 API but not sure how. Can you guys help me? If you can suggest any win32 API that will also be helpful.