-
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
Program 'winget.exe' failed to run at line 1 char 1 #712
Comments
There is some calendar time on our hands currently between requesting access to the Windows Package Manager insiders program and getting the update to the "App Installer" in the store. Is this still happening? Have you been able to get the update to the App Installer? |
This comment has been minimized.
This comment has been minimized.
Hi, this is still happening to me. The installer from the github page says a new version is already installed, but I get exactly this error. |
@freeone3000 have you checked to see if you have the App Execution Alias enabled for "winget"? |
This comment has been minimized.
This comment has been minimized.
@denelon, perhaps this is something you want to pull back into To Do? This is a problem I'm seeing too. I'm on 20H2 and enabled this from joining the "Windows Package Manager Insider Program." I have the same failure trying to run winget from PowerShell and in a Command Prompt I get the following results:
Windows Package Manager Client (winget.exe) is listed as an App Execution Alias and it is enabled. The version of App Installer installed according to Microsoft Store is version 1.11.11451.0. |
And as further assistance to resolving this issue, I toggled the App Execution Alias off, then back on, and it works now. So I believe this should be considered a workaround, but it can be an issue. Other environment concerns which might be related, When I tried to promote the installation of winget, there was a pending reboot. This was also performed from a second account on my system, which while an Administrator account is not the primary account I installed Windows from. Edit: I had Windows Terminal installed and then went to install Windows Terminal Preview. In App Execution Aliases wt.exe was expectedly linked to Windows Terminal. This was verified by showing a directory listing. I disabled the Windows Terminal alias and again showed the directory listing. wt.exe was not linked. Looking in App Execution Aliases, Windows Terminal Preview was listed as being enabled. I toggled Windows Terminal Preview off and back on, and then it showed in the directory listing. This suggests to me that this might be a Windows bug rather than something with App Installer alone. The exception that makes me think this was a second issue is that winget.exe was listed in the directory and wouldn't work, whereas in this case with two apps competing for the wt.exe shortcut, the alias itself was missing. |
@rbeesley thanks for the additional context. |
This appears to be related to how Windows is handling some of the package registration. We will have to continue investigating this issue to see if we can identify the root cause and see if there is a fix we can make or work with another team to implement a fix. |
I'm linking my post over on a related issue because it seems to be relevant. It's possible that these two issues should be merged. NOTE: It could be a permissions issue on AppInstaller.exe |
We've published the v1.1 release candidate and updated our troubleshooting guide. Can you confirm if this is still happening? |
I'm getting the same error after installing the latest version from an administrative PowerShell session.
|
I had the same issue and I've noticed winget works under regular user, but doesn't work under Administrator. So, running regular Terminal helped me. |
That's the crux: The goal of a package manager is to be able to run You can't use winget to manage software in an enterprise. If you could combine this with InTune you could manage Windows systems in a similar fashion to Linux systems. Linux had package management figured out decades ago, and it's open source. All Microsoft had to do was read the source of aptitude |
Brief description of your issue
Typing winget on powershell or cmd just throws error.
Steps to reproduce
Nothing special, applied to Insider program and tried install new App Manager via microsoft store.
Expected behavior
Having winget app working
Actual behavior
Typing winget returns:
I then tried debugging it:
Environment
The text was updated successfully, but these errors were encountered: