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

Windows Update breaks Windows Terminal due to Windows App SDK issue #18237

Open
ClausAndersen opened this issue Nov 22, 2024 · 6 comments
Open
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting

Comments

@ClausAndersen
Copy link

Windows Terminal version

1.21.3231.0

Windows build number

10.0.19045.5131

Other Software

Windows App SDK 1.6.3

Steps to reproduce

TLDR; Windows Terminal broken due to Windows update. This update caused issues with Windows App SDK 1.6.2. This update was pulled but damage had already been done. The temporary fix for that is to update to Windows App SDK 1.6.3. This however leaves Windows Terminal MSIX bundle broken. Installing the latest avaialbe bundle will fail most likely because "WindowsAppSDKSelfContained=true" in the bundle.

Long version:

Windows Terminal stopped working for me after a reboot due to Windows update. At first I simply tried to uninstall it with the intent of re-installing.

This gave me the error 0x80073CFA which led me to a currently ongoing Windows App SDK issue:
microsoft/WindowsAppSDK#4881

I did the manual fix and do now have Windows App SDK 1.6.3

This does however give me a problem when I try to install the latest MSIX bundle:

Microsoft.WindowsTerminal_1.21.3231.0_8wekyb3d8bbwe.msixbundle

This gives the localized error:

Pakken kan ikke installeres, fordi der allerede er installeret en højere version af denne pakke.

Which roughly translates to:

Package cannot be installed, as there is already a newer version of this package.

From the linked Windows App SDK issue this seem to be the problem if you are using self-contained bundles:

WindowsAppSDKSelfContained=true

And it would be worth examining if it is worth having native AOT on.

The system:
Windows 10 22H2
Build 19045.5131
Microsoft.WindowsTerminal_1.21.3231.0_8wekyb3d8bbwe.msixbundle (latest)
Windows App SDK 1.6.3

I think it would be very helpful to the community if a new release was built with SDK 1.6.3 as we now have a lot of breakage in the wild. I do not dare to submit a pull request for this as this will no doubt create a lot of bike shedding. But I think a new build using latest SDK would be most helpful middle of the road quickfix.

Expected Behavior

Being able to install latest Windows Terminal MSIX bundle on a up-to-date Windows 10 installation.

Actual Behavior

Installation reports a newer version is installed/available even though "Terminal" is no longer listed as an installed application and the latest version is used.

Image

@ClausAndersen ClausAndersen added Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting labels Nov 22, 2024
@Archomeda
Copy link

I think I'm hitting the same issue, I cannot even uninstall Windows Terminal via PowerShell. It gives me 0x80073CFA as error.
Right now I can't install, reinstall, remove or boot up Windows Terminal. It's completely unusable.

@ClausAndersen
Copy link
Author

It gives me 0x80073CFA as error.

If you go to SDK 1.6.3 you should be able to uninstall. For me I could not install it again after but others have reported success. YMMV.

@Archomeda
Copy link

Aha, I got it to reinstall and work again. But now I've lost all my settings 😂

@DHowett
Copy link
Member

DHowett commented Nov 22, 2024

Thanks for surfacing this! Terminal actually doesn’t use WinAppSDK at all, neither self-contained nor systemwide. However, it will still be impacted by the WinAppSDK issue.

Once you’re remediated:

If you use Add-AppxPackage with the -AllowUpgradeFromAnyVersion flag, it should let you reinstall the latest version.

You may also be able to effect the same process by using the Repair option in App Settings.

If you are not yet remediated:
Install the optional 11D Cumulative Feature Update.

@ClausAndersen
Copy link
Author

Thanks for surfacing this! Terminal actually doesn’t use WinAppSDK at all, neither self-contained nor systemwide. However, it will still be impacted by the WinAppSDK issue.

Oh! Cool. Thanks for responding anyway.

If you use Add-AppxPackage with the -AllowUpgradeFromAnyVersion flag, it should let you reinstall the latest version.

Does not work. That flag is not listed with -? but I then found -ForceUpdateFromAnyVersion which did the job for me!

Add-AppxPackage Microsoft.WindowsTerminal_1.21.3231.0_8wekyb3d8bbwe.msixbundle -ForceUpdateFromAnyVersion

This will work from Windows Powershell and not Powershell 7.

So everything works as it is supposed to do. Thanks!

@DHowett
Copy link
Member

DHowett commented Nov 22, 2024

You're totally right, and I misremembered the name of the arg. I'm glad it worked!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation. 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

3 participants