Forum Discussion
dicksonchan
May 17, 2019Copper Contributor
How to get installed package's full name (C++)?
Hi I am trying to uninstall a MSIX package through C++ program, and know of the RemovePackageAsync method. However, for that method to work, you require the package's full name (i.e. MSIXSample_x...
ShakersMSFT
Microsoft
May 21, 2019Hi dicksonchan,
You can use PowerShell cmdlets to get the package's full name: https://docs.microsoft.com/en-us/powershell/module/appx/get-appxpackage?view=win10-ps
You can also use a PowerShell cmdlet to remove the MSIX package as well: https://docs.microsoft.com/en-us/powershell/module/appx/remove-appxpackage?view=win10-ps
Best,
Sharla
- dicksonchanMay 28, 2019Copper Contributor
Hi ShakersMSFT
I know of the PowerShell commands. But is there a way to retrieve the package full name as a string so that I can automate these commands (Get-AppxPackage to get the name and Remove-AppxPackage immediately)?