neonetman Posted February 11, 2020 Posted February 11, 2020 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”}
LeMarchand Posted February 11, 2020 Posted February 11, 2020 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... 1
neonetman Posted February 11, 2020 Author Posted February 11, 2020 That's a great starting point. If you can let me know where to get the app/license then I'm laughing
Areku Posted February 11, 2020 Posted February 11, 2020 https://educationstore.microsoft.com/en-us/store/details/windows-calculator/9WZDNCRFHVN5 by any chance?
LeMarchand Posted February 11, 2020 Posted February 11, 2020 https://educationstore.microsoft.com/en-us/store/details/windows-calculator/9WZDNCRFHVN5 by any chance? Just got there myself! Sign in, change license type to offline and "buy" it. This will add it to your "School Store" and you can download it from there.
neonetman Posted February 12, 2020 Author Posted February 12, 2020 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?
LeMarchand Posted February 12, 2020 Posted February 12, 2020 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!).
neonetman Posted February 12, 2020 Author Posted February 12, 2020 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
LeMarchand Posted February 12, 2020 Posted February 12, 2020 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. Presumably you can just add a line to the script to add it in.
tri_94 Posted June 10, 2020 Posted June 10, 2020 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now