Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot uninstall Windows Terminal #11128

Closed
DanHalford opened this issue Sep 3, 2021 · 5 comments
Closed

Cannot uninstall Windows Terminal #11128

DanHalford opened this issue Sep 3, 2021 · 5 comments
Labels
Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something Needs-Tag-Fix Doesn't match tag requirements Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting

Comments

@DanHalford
Copy link

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.
@ghost ghost added Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Needs-Tag-Fix Doesn't match tag requirements labels Sep 3, 2021
@zadjii-msft
Copy link
Member

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 zadjii-msft added the Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something label Sep 8, 2021
@ghost ghost added the No-Recent-Activity This issue/PR is going stale and may be auto-closed without further activity. label Sep 12, 2021
@ghost
Copy link

ghost commented 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 ghost closed this as completed Sep 15, 2021
@lanfeust69
Copy link

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.

@ghost ghost removed the No-Recent-Activity This issue/PR is going stale and may be auto-closed without further activity. label Sep 21, 2021
@lanfeust69
Copy link

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.

@Kein
Copy link

Kein commented 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.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something Needs-Tag-Fix Doesn't match tag requirements Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting
Projects
None yet
Development

No branches or pull requests

4 participants