-
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' command does not work #995
Comments
@djhalnon If you are not on a Windows Insider build or part of the Windows Package Manager Insider group, it is likely you received the version of the App Installer that does not include the winget client. https://github.com/microsoft/winget-cli#installing-the-client You can download and double-click the installer from the https://github.com/microsoft/winget-cli/releases page. Any newer version of the App Installer published to the store will automatically be updated on your system (assuming no Group Policy is blocking the store). |
Facing a similar problem here. Installed it from the releases page. Searching the C:\ Drive for 'winget' returns no search results apart from Microsoft Store Search cache files. No application exists in WindowsApps\ as well. Out of curiosity, what does the AppInstallerCLI.exe executable do? Is that supposed to be winget? |
FWIW, I didn't get |
That is the name for the Windows Package Manager client .exe as compiled/built. We use and App Execution Alias to map |
Facing the same issue. Running winget produces no output in powershell. |
@JoeLyga are you a Windows Package Manager Insider or running a Windows Insider build? |
I'm also having the no output issue. |
This seems to be the same issue as #502 (I'm also having this issue) |
The Windows Package Manager is distributed with the "App Installer". Make sure you have the correct version that includes the Windows Package Manager. In PowerShell:
Check to see that the version is greater than 1.11 If you do have the current version of the AppInstaller, the other areas to check are App Execution Alias settings as well as other troubleshooting steps in #502 |
I can confirm that the App Execution Alias is enabled and the
Running |
I noticed that running the |
The zero byte file is expected. The App Execution Alias maps winget.exe to the true executable. It acts similar to a symlink in *nix. I haven't seen other reports of interactions with WSL2 or any of the other specific distributions, but I'll keep that in mind as others report similar issues. |
Just wanted to say that the same thing happened with me -- winget suddenly started working without me restarting or making any changes in the middle of a PowerShell session, and that I also have Windows Terminal and WSL2. |
This comment has been minimized.
This comment has been minimized.
I'm having this same issue. When I look at my App Execution Alias folder (\AppData\Local\Microsoft\WindowsApps) I see the alias pointing here:
If I try to manually run the target of that alias I get:
If I try to manually browse to that location and try to run the exe I get an access denied error like this:
This is odd because I am running an elevated Administrator PowerShell session when I get the access denied error. I think this might be the root cause for me. |
Update : The
|
This comment has been minimized.
This comment has been minimized.
You're stale @msftbot, we need developer action, not bot auto-closing. If a human wants to close the issue they will. Maybe you should be auto-closed. |
I think this issue should be permanently kept open until a strong fix is found. It would be great if the bot could have this issue excluded |
Please re-open this issue. It is not still fixed. |
@aminya feel free to create a new issue with specifics for the specifics for your scenario. Let the community know what you've attempted so we can help troubleshoot. The original author for this Issue has closed it. |
I was with the same problem, winget wasn't working in PowerShell. Microsoft Store said that App Installer was already updated, but it wasn't. The way I've found to solve this problem was install the current stable version on official Windows Package Manager repository: https://github.com/microsoft/winget-cli/releases/tag/v1.1.12653 This is the last stable version in 01/12/2021. To install you just need scroll to the bottom of the page in Assets field, and install the |
one problem here is that the windows update(or store update) version is out of sync and newer than the github release version. i currently (2022/03/02) have version 1.16.13405.0 of the desktopappinstaller package installed on my win 10 device. the currently latest released github version is 1.1.xxxx and the latest pre-release version is 1.3.xxxx. so, if the app installer store package was initially installed from a non-elevated user and then you try to use it from admin then the admin account's %localappdata% profile is completely missing the app execution alias .i.e c:\users<admin_account>\appdata\local\microsoft\windowsapps doesn't have an app execution alias reparse point for winget.exe . and, since the github version is older than the auto update version you can't force a re-install from an elevated command prompt because the installed version is newer. this seems broken. why are the versions out of sync in this fashion? |
@seanmcd27 the App Installer version and the Windows Package Manager version only share the final part of the version:
The App Installer version for the Windows Package Manager 1.1.z release is 1.16.z |
我也有同样的问题,是最近才出现的,以前从未出现,我还安装了wsl2运行Ubuntu 22 |
I was at Windows Package Manager Insider, how can i check it ? |
After latest app installer update I can't get winget to work I tried re-registering it, editing env. variables, updating everything.. nothing helps. Name Version Status Microsoft.Winget.Source 2023.622.905.772 Ok |
It seems for some reason we need to add this manually to PATH |
Already did, it didn't do anything. |
It helped me. dir %userprofile%\AppData\Local\Microsoft\WindowsApps\ | findstr winget |
Well i wish it helped me but doesn't seem to be working as it gives me same error that term winget is not recognized |
cd %userprofile%\AppData\Local\Microsoft\WindowsApps works ? show me dir command output if it's not. |
It doesn't work, says the path doesn't exist. Edit: I fixed it by changing App execution aliases.. Can't believe that was the problem this entire time |
It should not be powershell, it should be cmd console while you trying to cd. What do you mean? What "App execution alias" ? |
Works fine in cmd. |
So you just enabled all that is about winget ? And that was the fix ? |
Yea, I enabled everything related to it and now it works fine. I can post a picture if needed. But I never touched these settings, they disabled themselves after the update somehow |
Can confirm it was disabled too at my colleague PC. |
I did this to fix it: |
I've installed the App Installer package from the Microsoft Store, however, curiously, I can't run winget. When I do, I get: "'winget' is not recognized as an internal or external command, operable program or batch file."
Now, I've seen a lot of stuff about paths. Also curiously, though, "%USERPROFILE%\AppData\Local\Microsoft\WindowsApps" is already in my PATH.
And also curiously, I've searched the entire drive for any file beginning with "winget", and came up with nothing whatsoever.
I have a feeling this thing never installed, even though it says it did and even though it shows in the Store app as "This product is installed."
Any solution? Or is this true "beta-ware" that really sometimes just doesn't work, and I should just forget about it?
The text was updated successfully, but these errors were encountered: