microsoft / microsoft/winget-cli
Wrong ID for Installed Application
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
Microsoft Edge has the ID 'Microsoft.OneDrive' instead of its own. This prevents me from reinstalling OneDrive through winget or the installer as newer version is supposedly present on my machine.
Steps to reproduce
I am not sure how to reproduce it, but it occurred while changing OneDrive from a user installation to a system installation through winget, by doing winget remove --purge Microsoft.OneDrive and then winget add --scope machine Microsoft.OneDrive. OneDrive was not launching so I then uninstalled it again.
Expected behavior
I would expect Edge to have the correct ID and not prevent me from reinstalling OneDrive.
Actual behavior
Running winget ls shows this entry for Edge.
Name Id Version Source
--------------------------------------------------------------------------------------------------------------------------
Microsoft Edge Microsoft.OneDrive 110.0.1587.50 winget
Environment
shell
Windows Package Manager v1.4.10173
Copyright (c) Microsoft Corporation. All rights reserved.
Windows: Windows.Desktop v10.0.22621.1265
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.19.10173.0
Logs: %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir
User Settings: %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json
Links
---------------------------------------------------------------------------
Privacy Statement https://aka.ms/winget-privacy
License Agreement https://aka.ms/winget-license
Third Party Notices https://aka.ms/winget-3rdPartyNotice
Homepage https://aka.ms/winget
Windows Store Terms https://www.microsoft.com/en-us/storedocs/terms-of-sale
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 incorrect Edge entry with winget ls, using the reported remove and machine-scope add commands. Review the diagnostic logs under %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir; done means Edge reports its own ID and OneDrive can be reinstalled without a false newer-version conflict.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100