Jump to content

Recommended Posts

Posted

When we created our Windows 10 image we have managed to remove the calculator app from it. I've Googled to find a way to re-install the app, and the only option I have come across has not worked (see below). Is there any way to re-add the app to all PC's via script?

 

The code I have alrady tried is:-

 

Get-AppxPackage -allusers *windowscalculator* | [color=#C26230]Foreach[/color] {Add-AppxPackage -DisableDevelopmentMode -Register “$($_.InstallLocation)\AppXManifest.xml”}

Posted

Did something similar and this seemed to work.

 

Dism /Online /Add-ProvisionedAppxPackage /PackagePath:"\\PATHto\Microsoft.WindowsCalculator_8wekyb3d8bbwe.appxbundle" /LicensePath:"\\PATHto\Microsoft.WindowsCalculator_8wekyb3d8bbwe.xml"

 

Trying to remember where I got the package and license from...

  • Thanks 1
Posted
I've run that, and although when I try to run calculator, I no longer get the error - nor does the app load. Any thoughts on how to resolve that?

 

Had a look and when I went to download the license the encoded one comes as a .bin whilst the unencoded comes as a .xml with an extra string at the end. Not sure why I went for the latter (really should document!), but it might be worth altering the script to take that extra string into account if you haven't already done so? Also, the default d/l seems to be for ARM/1803 or later does this match? Do you have the required frameworks?

 

Clutching at straws as mine worked first time (thank goodness!).

Posted
It's asking for a VC140 framework now, but struggling to find that. I'm about ready to give up and install a 3rd party app

 

That's on the "required frameworks"on my d/l page.

 

FWork.jpg

 

Presumably you can just add a line to the script to add it in.

  • 3 months later...
Posted

Hi there,

 

Which version of Windows 10 are you using? As you can get FOD ISO from the licensing portal which will include the calculator.

 

If I recall I made this PowerShell script to reinstall. (version is 1809), seemed to recall that it required one or both of the Microsoft.UI.Xaml, Microsoft.VCLibs

 

#Remove the Calc Package

Remove-AppxPackage -Package "Microsoft.WindowsCalculator_8wekyb3d8bbwe"

 

#Install Microsoft.UI.Xaml

Add-AppxPackage "D:\Apps\Microsoft.UI.Xaml.2.0_2.1810.18004.0_x64__8wekyb3d8bbwe.Appx"

 

#Install Microsoft.VCLibs.140.00_14.0.27323.0

Add-AppxPackage "D:\Apps\Microsoft.VCLibs.140.00_14.0.27323.0_x64__8wekyb3d8bbwe.Appx"

 

#Install Calc Package

Add-AppxPackage "Microsoft.WindowsCalculator_8wekyb3d8bbwe.appxbundle"

 

Thanks

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...