Cannot uninstall Windows Terminal #15066

Closed
opened 2026-01-31 04:27:25 +00:00 by claunia · 5 comments
Owner

Originally created by @DanHalford on GitHub (Sep 3, 2021).

On our corporate devices, the Microsoft Store is blocked. Windows Terminal was installed by downloading the MSIX package and installing manually. when trying to uninstall it:

  • Windows Settings -> Apps -> Windows Terminal - Uninstall button is greyed out.
  • From within an elevated Powershell session: Remove-AppxPackage -Package Microsoft.WindowsTerminal
Remove-AppxPackage : Deployment failed with HRESULT: 0x80073CFA, Removal failed. Please contact your software vendor.
(Exception from HRESULT: 0x80073CFA)
NOTE: For additional information, look for [ActivityId] 5773b13b-a048-0000-dcb3-7a5748a0d701 in the Event Log or use
the command line Get-AppPackageLog -ActivityID 5773b13b-a048-0000-dcb3-7a5748a0d701
At line:1 char:1
+ Remove-AppxPackage -Package Microsoft.WindowsTerminal
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : WriteError: (Microsoft.WindowsTerminal:String) [Remove-AppxPackage], IOException
    + FullyQualifiedErrorId : DeploymentError,Microsoft.Windows.Appx.PackageManager.Commands.RemoveAppxPackageCommand

Get-AppPackageLog -ActivityID 5773b13b-a048-0000-dcb3-7a5748a0d701

Time                      ID           Message
----                      --           -------
3/09/2021 3:26:10 PM      603          Started deployment Remove operation on a package with main parameter
                                       Microsoft.WindowsTerminal and Options 0 and 0. See
                                       http://go.microsoft.com/fwlink/?LinkId=235160 for help diagnosing app
                                       deployment issues.
Originally created by @DanHalford on GitHub (Sep 3, 2021). On our corporate devices, the Microsoft Store is blocked. Windows Terminal was installed by downloading the MSIX package and installing manually. when trying to uninstall it: - Windows Settings -> Apps -> Windows Terminal - Uninstall button is greyed out. - From within an elevated Powershell session: `Remove-AppxPackage -Package Microsoft.WindowsTerminal` ``` Remove-AppxPackage : Deployment failed with HRESULT: 0x80073CFA, Removal failed. Please contact your software vendor. (Exception from HRESULT: 0x80073CFA) NOTE: For additional information, look for [ActivityId] 5773b13b-a048-0000-dcb3-7a5748a0d701 in the Event Log or use the command line Get-AppPackageLog -ActivityID 5773b13b-a048-0000-dcb3-7a5748a0d701 At line:1 char:1 + Remove-AppxPackage -Package Microsoft.WindowsTerminal + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (Microsoft.WindowsTerminal:String) [Remove-AppxPackage], IOException + FullyQualifiedErrorId : DeploymentError,Microsoft.Windows.Appx.PackageManager.Commands.RemoveAppxPackageCommand ``` `Get-AppPackageLog -ActivityID 5773b13b-a048-0000-dcb3-7a5748a0d701` ``` Time ID Message ---- -- ------- 3/09/2021 3:26:10 PM 603 Started deployment Remove operation on a package with main parameter Microsoft.WindowsTerminal and Options 0 and 0. See http://go.microsoft.com/fwlink/?LinkId=235160 for help diagnosing app deployment issues. ```
claunia added the Needs-TriageNeeds-Tag-FixNeeds-Author-Feedback labels 2026-01-31 04:27:25 +00:00
Author
Owner

@zadjii-msft commented on GitHub (Sep 8, 2021):

Weird. Are you absolutely sure there aren't any Terminal instances still running? Sometimes the app platform gets confused and leaves a handle open somewhere, or something like that. At the risk of sounding totally inane, does restarting the PC fix this by any chance?

If not then we'll have to follow up with the MSIX team

@zadjii-msft commented on GitHub (Sep 8, 2021): Weird. Are you absolutely sure there aren't any Terminal instances still running? Sometimes the app platform gets confused and leaves a handle open somewhere, or something like that. At the risk of sounding totally inane, does restarting the PC fix this by any chance? If not then we'll have to follow up with the MSIX team
Author
Owner

@ghost commented on GitHub (Sep 12, 2021):

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.

@ghost commented on GitHub (Sep 12, 2021): This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for **4 days**. It will be closed if no further activity occurs **within 3 days of this comment**.
Author
Owner

@lanfeust69 commented on GitHub (Sep 21, 2021):

Exactly the same thing here.

Of course, there is no instance running (even from an "offline" location after the workaround mentioned in #6010, which is the reason of the uninstall in the first place, as the install simply doesn't work at all), and the PC has been rebooted several times.

@lanfeust69 commented on GitHub (Sep 21, 2021): Exactly the same thing here. *Of course*, there is no instance running (even from an "offline" location after the workaround mentioned in #6010, which is the reason of the uninstall in the first place, as the install simply doesn't work at all), and the PC has been rebooted several times.
Author
Owner

@lanfeust69 commented on GitHub (Sep 27, 2021):

New point of interest : in my case, it turned out that it was much worse than just not being able to uninstall.

I managed to track down a serious issue I had to this failed install : there seems to be an integration with the Explorer that tries to instantiate a COM component, and this eventually fails with a "network location cannot be reached" error (seen in windbg).

This was not much of a problem when directly on our corporate network, but when remoting with the VPN in the way, the error would happen only after a 20 seconds timeout. So the net effect was that double or right clicking any folder within the Explorer (including right-clicking on the background, which is basically the Desktop folder) resulted in a 20 seconds freeze. I removed a bunch of registry keys related to "WindowsTerminal" and associated ClassIds, and the problem disappeared.

@lanfeust69 commented on GitHub (Sep 27, 2021): New point of interest : in my case, it turned out that it was much worse than just not being able to uninstall. I managed to track down a serious issue I had to this failed install : there seems to be an integration with the Explorer that tries to instantiate a COM component, and this eventually fails with a "network location cannot be reached" error (seen in windbg). This was not much of a problem when directly on our corporate network, but when remoting with the VPN in the way, the error would happen only after a 20 seconds timeout. So the net effect was that double or right clicking any folder within the Explorer (including right-clicking on the background, which is basically the Desktop folder) resulted in a 20 seconds freeze. I removed a bunch of registry keys related to "WindowsTerminal" and associated ClassIds, and the problem disappeared.
Author
Owner

@Kein commented on GitHub (Nov 19, 2021):

Avoid "installing" it "properly", just unpack the relevant msixpack and copy all files into whatever directory you wish and update PATH. This is the best way to install it "portable" an directly. As a bonus - uninstall process is the same, but in reverse.

@Kein commented on GitHub (Nov 19, 2021): Avoid "installing" it "properly", just unpack the relevant `msixpack` and copy all files into whatever directory you wish and update PATH. This is the best way to install it "portable" an directly. As a bonus - uninstall process is the same, but in reverse.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#15066