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:
- Find Microsoft Calculator UWP app on MS Store
- Copy the calculator page URL
- Go to https://store.rg-adguard.net, select URL(Link) paste the link, click checkbox
- You will now get a full list of available downloads for Calculator app + dependencies
- Download latest version of Microsoft.WindowsCalculator_*.*.*.*_neutral, it should be at the very bottom
- Make sure you download both, AppxBundle and BlockMap! Save them into the same directory/folder
- 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
- 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
- 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