Sycnex / Windows10Debloater

Script to remove Windows 10 bloatware.
MIT License
18.07k stars 2.04k forks source link

Calculator disappears although it's whitelisted #172

Open davidchoo12 opened 5 years ago

davidchoo12 commented 5 years ago

Using the GUI, I customized the white/blacklist such that WindowsCalculator is whitelisted. Screenshot of the list as of now (only Calculator in the whitelist is not "Installed"): image

I saved it and clicked Remove Bloatware With Customized Blacklist. After running the script, the Calculator app disappeared from the start menu and searching it doesn't show up.

I tried running the script from Fix Whitelisted Apps: Get-AppxPackage -allusers Microsoft.WindowsCalculator | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"} but it outputs error:

Add-AppxPackage : Deployment failed with HRESULT: 0x80073CF9, Install failed. Please contact your software vendor.
(Exception from HRESULT: 0x80073CF9)
NOTE: For additional information, look for [ActivityId] a1b30de5-383a-0000-9bd5-b4a13a38d501 in the Event Log or use
the command line Get-AppPackageLog -ActivityID a1b30de5-383a-0000-9bd5-b4a13a38d501
At line:1 char:66
+ ...  | 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 ran the command line to view the log as suggested from the output above Get-AppPackageLog -ActivityID a1b30de5-383a-0000-9bd5-b4a13a38d501 Then I notice the following lines at the bottom of the log

12/7/2019 6:51:12 AM      763          Windows cannot install package
                                       Microsoft.WindowsCalculator_10.1905.28.0_neutral_~_8wekyb3d8bbwe because the
                                       package is currently paused. The package must be Staged in order to proceed.
12/7/2019 6:51:12 AM      605          The last successful state reached was BundleProcessed. Failure occurred before
                                       reaching the next state Indexed. hr: 0x80073CF9
12/7/2019 6:51:12 AM      401          Deployment Register operation with target volume C: on Package
                                       Microsoft.WindowsCalculator_10.1905.28.0_neutral_~_8wekyb3d8bbwe from:
                                       (AppxBundleManifest.xml)  failed with error 0x80073CF9. See
                                       http://go.microsoft.com/fwlink/?LinkId=235160 for help diagnosing app
                                       deployment issues.

What to do to get Calculator back?

adam-djangophi commented 5 years ago

I ran this in powershell Get-AppxPackage -allusers *windowscalculator* | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register “$($_.InstallLocation)\AppXManifest.xml”} This added the calculator back. But A definite plus one for this issue!

Jmhm17 commented 3 years ago

I ran this in powershell Get-AppxPackage -allusers *windowscalculator* | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register “$($_.InstallLocation)\AppXManifest.xml”} This added the calculator back. But A definite plus one for this issue!

I tried this and it did not work. Any suggestions? I too experienced the same issue as above. Sorry to raise this from the dead but looking for some assistance.

Sycnex commented 3 years ago

Jmhm17 - did you run powershell as an administrator and then run that command?

Sent from my iPhone

On Mar 22, 2021, at 12:52 PM, Jmhm17 @.***> wrote:

 I ran this in powershell Get-AppxPackage -allusers windowscalculator | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register “$($_.InstallLocation)\AppXManifest.xml”} This added the calculator back. But A definite plus one for this issue!

I tried this and it did not work. Any suggestions? I too experienced the same issue as above. Sorry to raise this from the dead but looking for some assistance.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.