-
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
The *.appxbundle installer does not automatically add the installation directory for winget.exe to the PATH environment variable in Windows 10 #210
Comments
I just installed the appxbundle and I could not immediately run |
It did seem to activate it's alias correctly, but yet it still did not add to the PATH variable--however @aslze mentions he needed to log out and back in for it to work.
|
I seemingly had the same or similar PATH problem. I installed I installed When trying to run In order to make it work I had to add this to my system environment variable for PATH:
UPDATED: Added operating system Info Windows 10 Pro (not insiders) |
I installed via the via the *.appxbundle installer a few minutes ago and was able to open a CMD and "winget show firefox" immediately: no problem found. I am logged into Windows as an administrator, in case that's pertinent. |
This MUST be part of your $PATH variable:
without the above in $PATH NONE of the Apps installed in WindowsApps can be executed from shell. Don't know, if the above directory is part of $PATH by default? |
My path is set correctly, but the alias didn't get setup. Is there a way to manually add it? Or something else I can try? |
Well, i do have the correct PATH setup for the Windows Apps folder. But inside of it there isn't a Winget.exe file, so i get the same error with the winget command. I don't have a Windows Insider Build, used the link to use the App Installer through the Windows Store. I reseted the App Installer app in the configurations, then tried to install it again. But there in't any alias for Winget.exe nor an executable file. Any ideas? |
I'm having the same issue, and i used the same installation method. I couldn't notice any change in the Installation App. |
BTW: I'm on v1803. (Need to get IT to upgrade me.) |
I've the same issue the last four people above me have been facing. |
Same as the above, I installed through the App Store and restarted my machine (build 19041), and confirmed that However, |
I'm experiencing this too after signing up to the Windows Package Manager Insiders Program and attempted to download and install from the store. |
@alexmacniven I had the exact same issue. I went to https://github.com/microsoft/winget-cli/releases and ran the appxbundle asset at the bottom and that updated my app installer. Winget works now. I think the only issue with doing it this way is that it will no longer update automatically. But at least it works now. |
After updating manually, Winget did not work. The solution that worked for me was to add an absolute address path to the enviromental variable of PATH Following the instructions from the automated email did not work, the manual install has a better success rate overall after installing on three machines. |
== |
@Pentao Try running the shell in administrative mode. |
I ran into this today on a brand new machine and install. Rebooting (which logs me out, of course, like some folks have suggested above) made it work for me. |
I don't think #235 is an exact duplicate. The focus of that issue is on the misleading and confusing message. |
Had the same on W10 2004 Build.19401 today. As above, installed the App Installer package from store then pulled latest version from GH.... |
windows terminal is experiencing the same problem. They identified it as the store/centennial/appx install process for Can someone at Microsoft escalate this shared issue to the Microsoft team(s) responsible for that area? |
Windows adds the PATH entry itself - it's part of your default user profile, and nothing to do with any particular APPX installer or even the Store. Changing from REG_EXPAND_SZ back to REG_SZ will be due to a third-party installer. I've been tracking issues like this for a while, as they affect the Centennial package of Python. We've already fixed a few issues relating to apps disabling or resetting their aliases on package update, and also fixed a regression in a security patch late last year. The first couple of issues could have been either of those (though if you've got WinGet you should be on an insider build with fixes for those... so I'm still leaning towards third-party installer). Most of the reports in this thread seem to be people who are not getting the preview build of App Installer. Unfortunately, it's not real obvious how to make sure you have the preview version here. Running |
Naturally, anything with write access (has nothing to do with an installer) to I think it is reasonable for the infrastructure
That would require the dependency of app aliases to do at a minimum
Seems to me the dependency handing of
|
The Python redirector is in the AppInstaller package along with winget because it was a sensible place to put it, that's all. It's unrelated to (and predates) Winget. As for the install location, all the application files go into ProgramFiles, but there's still a bit of per-user registration that makes it look like a per-user install. That gives each user their own "view" of it, even though the entire install is shared (and secured). This particular package should be automatically installed for all users though, so you ought to have Winget as admin. However, I'm guessing the global alias is not being created for users who are not logged in (I'm not 100% sure how that bit gets handled, but some of the Winget team are close enough to the right people to find out). |
Does anyone know how to add alias manually into |
We are working on isolating this problem. It appears to be related to either Windows 10 and/or App Execution Aliases. I'm adding the area-external label to help remind us to follow up internally until we are able to find a resolution. |
@jwheeler88 we've updated our troubleshooting guide. Let us know if this doesn't resolve the issue. |
This comment was marked as off-topic.
This comment was marked as off-topic.
I think you are confused, a execution alias is basically a shortcut to a program, a alias is another word for nickname or alternate name. They weren't referring to you by name |
I was facing the same issue for the last 1 month. Following these steps worked for me |
Issue still alive and well. How long does it take to fix the path? This is a store wide issue. |
Thank you for this tip. Just had an issue trying to use kubeconfirm that I installed with winget and it did not see binary when I opened a new cmd console, but logging out and back in has the path sorted now. Adding OS for context: |
This worked for me on Windows 11 in August 2023. |
USERENV = WINGET=%LOCALAPPDATA%\Microsoft\WindowsApps |
Brief description of your issue
When installing winget via the *.appxbundle installer, the installation directory for winget.exe is not automatically added by the installer to the PATH environment variable; this should have been added automatically so that the CLI commands can work out of the box.
Steps to reproduce
Expected behavior
The installation folder for winget is added to the system PATH environment variable.
Actual behavior
The installation folder for winget is not added to the system PATH environment variable.
Environment
The text was updated successfully, but these errors were encountered: