-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
winget: "The system cannot execute the specified program." #4991
Comments
The attempt to repair as outlined in this comment fails as well. In particular the last step:
There are events in parallel in the @n5ke: FYI |
Just to confirm you rebooted after changing the permissions (no idea why that was necessary but it was) and you are running these as a user member of the administrators group -and maybe it matters- from an elevated powershell Both the eventlog errors and the command line output we were seeing were exactly the same as you, so I'm out of ideas why it seemed to work on multiple windows systems for us but not you :( |
Affirmative.
Well, it was a lead and it's definitely something I'll look to hone further. As a side-note: the tinkering with the SDs messed up WinDbgX and Teams. |
Same issue as above. Turns out pending Win updates was the issue. Rebooted and updated and everything's back to working normally. |
At least reboots don't seem to make a difference for me. So it's probably not a pending Windows Update. Also, the change of the SDs on the directories messed up several of the installed store apps. For WinDbgX and Teams the Repair feature (via Windows Settings) helped. For WinGet there is no option to repair, the option to Reset fails and advises to retry and the Uninstall option fails with 0x80073CFA ( @ZachEDecker are you running Windows 11 24H2 perchance (or Server 2025)? Asking because they have the new hotpatching feature enabled and there it could make sense that it behaves oddly without a reboot. |
Running Win10 22H2. Looking through the updates that installed the only thing that looks remotely related is Servicing Stack 10.0.19041.5071. The rest were just .NET and SQL updates. |
Just throwing this out there in case it helps anyone else. I was having issues with not only winget but also other MS Store apps over the past week and it turns out at least my issue was resolved by installing the latest version of Windows App SDK (v1.6.3) that was just released a few days ago. See the thread here: microsoft/WindowsAppSDK#4881 Looks like the source of the issue (at least my issue) was a faulty Windows App SDK 1.6.2 that was pulled, but if it got installed it messed up all sorts of things. The thread above details some steps to fix the issue but the easiest method was to install the newly release App SDK v1.6.3. |
Lucky you! I came here to say the same thing but having less luck. I have updated to 1.6.3 but still have the samme issue with "The system cannot execute the specified program". I then try updating winget using: This is from the latest current release v1.9.25200. But on my system I am told I alread have a newer version. I think this is due to the 1.6.3 SDK being installed and the MSIX bundle being selfcontained. This is the same issue I have with Windows Terminal and created microsoft/terminal/issues/18237 I think it would but beneficial if a new self-contained MSIX bundle was built using SDK 1.6.3 |
I learned from the Windows Teminal issue that they where impacted by the SDK problem but not it is not self-contained. After fixing Windows Terminal winget did still not work (as expected) but I was able to install using:
Notice that I did not need
This need to be done from Windows Powershell - not Powershell 7. |
Microsoft released a patch OS update for Windows 10 with the fix for the install / uninstall issue. Users might be unable to update or uninstall packaged apps on Windows 10 Updating the OS to the Below optional update will allow the user to uninstall in case if the corrupted version of the app is there. in certain cases, it automatically removes the corrupted app. allowing us to do a fresh install of the app again. |
Brief description of your issue
Ran into this issue right now when
winget
worked last week. Possibly related to #1474.I can rule out that this is about the execution aliases, because
WinDbgX.exe
andwt.exe
work as expected. For further context, I run this from an elevated (using SuRun) prompt with a member of theBUILTIN\Administrators
alias, but notBUILTIN\Administrator
.The exact same scenario worked last week, but that was before the latest Windows Update run.
The Event Viewer (Application log) shows for each instance of
winget
failing to launch:For reference, that's a
STATUS_ACCESS_VIOLATION
. So the issue isn't the execution alias or the permissions or any such thing in my case.Since the service starts on-demand it's always a fresh process anyway, so the fault is somewhere in the program (or in my Windows image). But the typical routine of
sfc /scannow
anddism
followed by a reboot also don't resolve it:Due to the failure early on I cannot even attach. WinDbgX bails before it gets to this point.
PS: I think I may never quite fathom why a basic application like
winget
had to be packaged up as store app which caused it to assume some weird Xaml-package dependency and having to go through hoops with execution aliases. This could literally have been a native application that runs without any pain on a wide range of Windows versions (including Server editions) and has no prerequisites other than system DLLs and an internet connection.Steps to reproduce
I have no idea whether and how anyone else would reproduce this.
Expected behavior
I expected
winget
to launch.Actual behavior
The system cannot execute the specified program.
was shown by the program attempting to launchwinget
.Environment
Unable to retrieve this info for — hopefully — obvious reasons.
The text was updated successfully, but these errors were encountered: