I managed to screw something up and now Calculator on Windows 10 Pro won't open. It still shows up as an app when I search in the start menu, but is not listed under "Apps and features".
I've tried executing the following commands in an Admin PowerShell window, and I get the same error (further below).
Get-AppxPackage -allusers *windowscalculator* | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
Add-AppxPackage -register "C:\Program Files\WindowsApps\Microsoft.WindowsCalculator_10.1812.10048.0_x64__8wekyb3d8bbwe\AppxManifest.xml" -DisableDevelopmentMode
This is the error I get with both commands:
Add-AppxPackage : Deployment failed with HRESULT: 0x80073CF3, Package failed updates, dependency or conflict
validation.
Windows cannot install package Microsoft.WindowsCalculator_10.1812.10048.0_x64__8wekyb3d8bbwe because this package
depends on a framework that could not be found. Provide the framework "Microsoft.UI.Xaml.2.0" published by
"CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US", with neutral or x64 processor
architecture and minimum version 2.1810.18003.0, along with this package to install. The frameworks with name
"Microsoft.UI.Xaml.2.0" currently installed are: {}
NOTE: For additional information, look for [ActivityId] df9e85bd-963e-0004-b295-9edf3e96d501 in the Event Log or use
the command line Get-AppPackageLog -ActivityID df9e85bd-963e-0004-b295-9edf3e96d501
At line:1 char:58
+ ... | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register “$($_.I ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : WriteError: (C:\Program File...ppXManifest.xml:String) [Add-AppxPackage], IOException
+ FullyQualifiedErrorId : DeploymentError,Microsoft.Windows.Appx.PackageManager.Commands.AddAppxPackageCommand
I also tried installing .NET 4.8 and rebooting my PC, but that didn't work either. I still got the same error message.
I can't find any information on the Microsoft.UI.Xaml.2.0
framework that's stopping the installation of Calculator.
Where can I get the Microsoft.UI.Xaml.2.0
framework?
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:
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
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
AppX Deployment Service (AppXSVC)
is up and runningWindows Modules Installer
is up and runningWindows License Manager Service
is up and runningMicrosoft Store Install Service
is up and runningUser contributions licensed under CC BY-SA 3.0