microsoft / microsoft/winget-cli
Typing the winget command tries to execute winget.exe in another user folder
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 26.4k
- Forks
- 1.8k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 15
Description
Brief description of your issue
When I type winget in any command prompt always results in an error saying it can't find the file winget.exe. Reading the path to the exe reveals that is trying to reach for it in the wrong user folder
Screenshots are in Italian
Typing the right path by hand results in winget functioning properly
I have two users on this PC, my folder is "utente"
I checked Path and also updated winget manually but it didn't fix the issue, first time seeing it
Steps to reproduce
Typing any winget command results in this error
Expected behavior
The full list of arguments should pop up
Actual behavior
It's giving me an error saying it can't winget.exe in the wrong file path
Environment
Gestione pacchetti Windows v1.4.11071
Copyright (c) Microsoft Corporation. Tutti i diritti sono riservati.
Windows: Windows.Desktop v10.0.19045.3031
Architettura di sistema: X64
Pacchetto: Microsoft.DesktopAppInstaller v1.19.11071.0
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the failure in a Windows command prompt with the reported two-user setup, then inspect the executable path shown in the error and compare it with the current user's installed winget location. Done means typing winget resolves the correct user's executable and displays the full argument list.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- cli, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100