Error using "Add-AppxPackage -Register C:\WSA\AppxManifest.xml"

@Oilla http://tlu.dl.delivery.mp.microsoft.com/filestreamingservice/files/d1a3bf2c-f6ed-4ee6-89eb-5fab766c9435?P1=1637942819&P2=404&P3=2&P4=NaQiPWCWTpwcRz1wP7yBUf2KoXwNpfSF7jj7VpyzolRGq1Lize71kuCY6lX%2bwu1DmioXaZ1x5ijyM7X1uhZ9vA%3d%3d
Add-AppxPackage -Register C:\WindowsSubsystemAndroid\AppxManifest.xml
I am getting the exact same error as @Oilla .
@0oc Your link shows Access Denied... what are you trying to say? It's definitely not a folder path issue in either of our examples (that would give a general file not found error).
If anyone can help us that would be swell. I am a complete newb when it comes to developing apps for Windows so I am lost as what to do next.
Edit added screenshot.

Figured it out...
You need to unistall all android apps before you try this. The instructions said delete Windows Subsystem for android should delete every android app but I did that and it still left "Amazon Appstore" on there. I deleted that and that deleted all the rest of Windows Subsystem for Android. Command worked fine after that.
Solution for 0x80073CF9 https://github.com/WSA-Community/WSAGAScript/issues/28#issuecomment-992113337
so in my case the xml that i need to point to is not in the folder.

Just grab the xml from the package, you must have accidentally deleted it when deleting the other files, I did the same thing
I had the same issue.
Follow these steps to fix the issue.
Install Microsoft.UI.Xaml.2.6
- Go to store.rg-adguard.net
- Change to ProductID and paste '9P3395VX91NR'
- Change to Slow and click the check mark
- Look for install Microsoft.UI.Xaml.2.6
- Install the correct .Appx file for your architecture. (x86, x64, ARM or ARM64)
Run the command as administrator
- Right-click Windows Button (Windows 11) or your taskbar (Windows 10)
- Choose Windows Powershell (Admin). If it shows Terminal (Admin), open that and then open Powershell as a new tab. It will open as admin.
- Now run the same code and it should work perfectly.
@SahilUX I followed the steps you posted, but got an error regarding a version mismatch on the installed Microsoft.ui.xaml package -- I commented the details in #191
@SahilUX I followed the steps you posted, but got an error regarding a version mismatch on the installed Microsoft.ui.xaml package -- I commented the details in #191
As a follow-up to this, I found I had to install the package not just with admin privileges from a standard account, but actually fully logged on as an admin, due to Add-AppxPackage installing on a per-user basis.