Windows Terminal 1.8.1521.0 Breaks wt.exe #14134

Closed
opened 2026-01-31 04:01:51 +00:00 by claunia · 7 comments
Owner

Originally created by @richardcox13 on GitHub (Jun 5, 2021).

Windows Terminal version (or Windows build number)

1.8.1521.0

Other Software

No response

Steps to reproduce

Start | Run | wt

and get popup with

[Window Title] C:\Users\richard\AppData\Local\Microsoft\WindowsApps\wt.exe

[Content]
Windows cannot find 'C:\Users\richard\AppData\Local\Microsoft\WindowsApps\wt.exe'. Make sure >you've typed the name correctly, then try again.

Running from an open Windows Terminal tag with PowserShell 7.1.3 reports

ResourceUnavailable: Program 'wt.exe' failed to run: The system cannot find the file specified.At line:1 char:1
+ wt
+ ~~.

This is immediately after the Windows Store pushed a new build (previously was running 1.8 as released 2021-05-21.

(Opening from the shortcut pinned to my task bar works correctly.)

Expected Behavior

A new Windows Terminal window is opened with my default profile loaded.

Actual Behavior

See steps to reproduce.

Originally created by @richardcox13 on GitHub (Jun 5, 2021). ### Windows Terminal version (or Windows build number) 1.8.1521.0 ### Other Software _No response_ ### Steps to reproduce Start | Run | wt <enter> and get popup with > [Window Title] C:\Users\richard\AppData\Local\Microsoft\WindowsApps\wt.exe > [Content] > Windows cannot find 'C:\Users\richard\AppData\Local\Microsoft\WindowsApps\wt.exe'. Make sure >you've typed the name correctly, then try again. Running from an open Windows Terminal tag with PowserShell 7.1.3 reports > ResourceUnavailable: Program 'wt.exe' failed to run: The system cannot find the file specified.At line:1 char:1 > \+ wt > \+ ~~. This is immediately after the Windows Store pushed a new build (previously was running 1.8 as released 2021-05-21. (Opening from the shortcut pinned to my task bar works correctly.) ### Expected Behavior A new Windows Terminal window is opened with my default profile loaded. ### Actual Behavior See steps to reproduce.
Author
Owner

@richardcox13 commented on GitHub (Jun 5, 2021):

The problem appears to be the link %USERPROFILE%\AppData\Local\Microsoft\WindowsApps\wt.exe has not been updated, it exists but links to C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_1.8.1444.0_x64__8wekyb3d8bbwe\wt.exe rather than C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_1.8.1521.0_x64__8wekyb3d8bbwe\wt.exe.

@richardcox13 commented on GitHub (Jun 5, 2021): The problem appears to be the link `%USERPROFILE%\AppData\Local\Microsoft\WindowsApps\wt.exe` has not been updated, it exists but links to `C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_1.8.1444.0_x64__8wekyb3d8bbwe\wt.exe` rather than `C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_1.8.1521.0_x64__8wekyb3d8bbwe\wt.exe`.
Author
Owner

@smaug9 commented on GitHub (Jun 5, 2021):

I'm getting a similar error.

  1. It looks like the wt.exe link in my user directory points to the wrong wt.exe in the c:\program files\windowsapps.
  2. Additionally, it seems that my user doesnt have permissions to read/execute wt.exe in the c:\program files\windowsapps.
> dir C:\users\jeff\appdata\local\microsoft\WindowsApps\wt.exe

    Directory: C:\users\jeff\appdata\local\microsoft\WindowsApps

Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
la---          2021-04-17    11:46              0 wt.exe -> C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_1.7.1033.0_x64__8wekyb3d8bbwe\wt.exe
C:\>"c:\program files\windowsapps\Microsoft.WindowsTerminal_1.8.1521.0_x64__8wekyb3d8bbwe\wt.exe"
Access is denied.

Currently I can only start wt.exe from the icon in the start menu.

Furthermore.... looks like wt.exe in hklm registry apppaths is pointing to the correct wt.exe, but hkcu is pointing to the old path.

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\wt.exe]
@="C:\\Program Files\\WindowsApps\\Microsoft.WindowsTerminal_1.8.1521.0_x64__8wekyb3d8bbwe\\wt.exe"
"Path"="C:\\Program Files\\WindowsApps\\Microsoft.WindowsTerminal_1.8.1521.0_x64__8wekyb3d8bbwe"

[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\wt.exe]
@="C:\\Program Files\\WindowsApps\\Microsoft.WindowsTerminal_1.7.1033.0_x64__8wekyb3d8bbwe\\wt.exe"
"Path"="C:\\Program Files\\WindowsApps\\Microsoft.WindowsTerminal_1.7.1033.0_x64__8wekyb3d8bbwe"

I've deleted the hkcu key, and now im getting a different error when running win+r>wt:

Windows cannot access the specified device, path, or file. You may not have the appropriate permissions to access the item.

Lastly... I seem to have resolved it (poorly) by browsing to c:\program files\windowsapps, which popped a dialog box asking me to permanently grant access to open the item, which I did, and now win+r>wt works

@smaug9 commented on GitHub (Jun 5, 2021): I'm getting a similar error. 1. It looks like the `wt.exe` link in my user directory points to the wrong `wt.exe` in the `c:\program files\windowsapps`. 2. Additionally, it seems that my user doesnt have permissions to read/execute `wt.exe` in the `c:\program files\windowsapps`. ``` > dir C:\users\jeff\appdata\local\microsoft\WindowsApps\wt.exe Directory: C:\users\jeff\appdata\local\microsoft\WindowsApps Mode LastWriteTime Length Name ---- ------------- ------ ---- la--- 2021-04-17 11:46 0 wt.exe -> C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_1.7.1033.0_x64__8wekyb3d8bbwe\wt.exe ``` ``` C:\>"c:\program files\windowsapps\Microsoft.WindowsTerminal_1.8.1521.0_x64__8wekyb3d8bbwe\wt.exe" Access is denied. ``` Currently I can only start `wt.exe` from the icon in the start menu. Furthermore.... looks like wt.exe in hklm registry apppaths is pointing to the correct wt.exe, but hkcu is pointing to the old path. ``` [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\wt.exe] @="C:\\Program Files\\WindowsApps\\Microsoft.WindowsTerminal_1.8.1521.0_x64__8wekyb3d8bbwe\\wt.exe" "Path"="C:\\Program Files\\WindowsApps\\Microsoft.WindowsTerminal_1.8.1521.0_x64__8wekyb3d8bbwe" [HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\wt.exe] @="C:\\Program Files\\WindowsApps\\Microsoft.WindowsTerminal_1.7.1033.0_x64__8wekyb3d8bbwe\\wt.exe" "Path"="C:\\Program Files\\WindowsApps\\Microsoft.WindowsTerminal_1.7.1033.0_x64__8wekyb3d8bbwe" ``` I've deleted the hkcu key, and now im getting a different error when running `win+r>wt`: ``` Windows cannot access the specified device, path, or file. You may not have the appropriate permissions to access the item. ``` Lastly... I seem to have resolved it (poorly) by browsing to `c:\program files\windowsapps`, which popped a dialog box asking me to permanently grant access to open the item, which I did, and now `win+r>wt` works
Author
Owner

@bikeoid commented on GitHub (Jun 5, 2021):

I was able to resolve this by turning the App Execution Alias for WT off then on following the screen at https://stackoverflow.com/a/66539884/1743

@bikeoid commented on GitHub (Jun 5, 2021): I was able to resolve this by turning the App Execution Alias for WT off then on following the screen at https://stackoverflow.com/a/66539884/1743
Author
Owner

@richardcox13 commented on GitHub (Jun 6, 2021):

In the end I tried a repair: and that worked (after a logoff/on and then a reboot had not).

It is annoying when Windows Terminal is restarted on me (all the state, history, and output lost) especially when I cannot quickly restore things.

@richardcox13 commented on GitHub (Jun 6, 2021): In the end I tried a repair: and that worked (after a logoff/on and then a reboot had not). It is annoying when Windows Terminal is restarted on me (all the state, history, and output lost) especially when I cannot quickly restore things.
Author
Owner

@EdSF commented on GitHub (Jun 7, 2021):

I was able to resolve this by turning the App Execution Alias for WT off then on following the screen at https://stackoverflow.com/a/66539884/1743

@bikeoid Confirmed. Thank you!

@EdSF commented on GitHub (Jun 7, 2021): > I was able to resolve this by turning the App Execution Alias for WT off then on following the screen at https://stackoverflow.com/a/66539884/1743 @bikeoid Confirmed. Thank you!
Author
Owner

@sairaghavak commented on GitHub (Jun 7, 2021):

I know op is talking about version

Windows Terminal version 1.8.x

But, just in case if anyone has trouble with Preview version

1.9.1523.0

Initially after windows update
Couldn't open windows terminal from

start -> run -> wt

In my case, after checking the Manage app execution aliases, Windows Terminal app is already turned on
After turning it off and on, and a round of restart worked for me.

@sairaghavak commented on GitHub (Jun 7, 2021): I know op is talking about version > Windows Terminal version 1.8.x But, just in case if anyone has trouble with Preview version > 1.9.1523.0 Initially after windows update Couldn't open windows terminal from > start -> run -> wt In my case, after checking the Manage app execution aliases, Windows Terminal app is already turned on After turning it off and on, and a round of restart worked for me.
Author
Owner

@zadjii-msft commented on GitHub (Jul 6, 2021):

FYI, this is something that can break basically any time the Terminal is updated. We're working with the platform team to try and get that fixed. see also: https://github.com/microsoft/terminal/issues?q=is%3Aissue+label%3ACulprit-Centennial, #9452

Thanks all!

@zadjii-msft commented on GitHub (Jul 6, 2021): FYI, this is something that can break basically any time the Terminal is updated. We're working with the platform team to try and get that fixed. see also: https://github.com/microsoft/terminal/issues?q=is%3Aissue+label%3ACulprit-Centennial, #9452 Thanks all!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#14134