The functionality is available in the Windows.Management.Deployment.PackageManager runtime class and the Windows.Management.Deployment namespace in general.If, by Windows API, you don't include the Windows Runtime API, then please take note that I am suggesting this fully understanding that you may want to run this in a desktop application. The PackageManager runtime class works without issue in desktop applications.
How to Uninstall Msix installed application from all users with winAPIs
Sreekanth N Kartha
60
Reputation points
What Windows API can be used to completely remove all residual data of an MSIX-installed application, including cleaning up the associated folder under "C:\Program Files\WindowsApps"?
Windows development Windows API - Win32
2,782 questions