Cannot reinstall Calculator: Microsoft.UI.Xaml.2.0 missing

Solution 1:

For anyone else who is looking for a solution to the similar issue and have stumbled upon this unanswered (atm) question because they googled that long PowerShell error message, here is the answer:

  1. Find Microsoft Calculator UWP app on MS Store
  2. Copy the calculator page URL
  3. Go to https://store.rg-adguard.net, select URL(Link) paste the link, click checkbox
  4. You will now get a full list of available downloads for Calculator app + dependencies
  5. Download latest version of Microsoft.WindowsCalculator_*.*.*.*_neutral, it should be at the very bottom
  6. Make sure you download both, AppxBundle and BlockMap! Save them into the same directory/folder
  7. Repeat the same for dependencies, except they may be Appx not bundle. That's fine. Make sure you chose correct architecture, i.e. x64 for Windows x64
  8. In the end, in your Downloads or whatever folder you will have something like:
Microsoft.UI.Xaml.2.4_2.42007.9001.0_x64__8wekyb3d8bbwe.Appx
Microsoft.UI.Xaml.2.4_2.42007.9001.0_x64__8wekyb3d8bbwe.BlockMap
Microsoft.VCLibs.140.00_14.0.29231.0_x64__8wekyb3d8bbwe.Appx
Microsoft.VCLibs.140.00_14.0.29231.0_x64__8wekyb3d8bbwe.BlockMap
Microsoft.WindowsCalculator_2020.2011.16.0_neutral___8wekyb3d8bbwe.AppxBundle
Microsoft.WindowsCalculator_2020.2011.16.70_neutral___8wekyb3d8bbwe.BlockMap
  1. Now all that's left is run PowerShell with Admin rights, navigate into the folder (cd C:\meh\muh) where you have packages saved and execute the following commands:
Add-AppxPackage .\Microsoft.UI.Xaml.2.4_2.42007.9001.0_x64__8wekyb3d8bbwe.Appx
Add-AppxPackage .\Microsoft.VCLibs.140.00_14.0.29231.0_x64__8wekyb3d8bbwe.Appx
Add-AppxPackage .\Microsoft.WindowsCalculator_2020.2011.16.0_neutral___8wekyb3d8bbwe.AppxBundle

If you still receive some weird error with typical MS-zero-context infor then make sure

  • Service AppX Deployment Service (AppXSVC) is up and running
  • Service Windows Modules Installer is up and running
  • Service Windows License Manager Service is up and running
  • Service Microsoft Store Install Service is up and running
  • You have enabled Developer Mode