microsoft / microsoft/winget-pkgs
[Package Issue]: JanDeDobbeleer.OhMyPosh requires elevation to upgrade
Nobody has claimed this yet.
- Dominant language
- No language data
- Stars
- 11.1k
- Forks
- 9.7k
- Avg merge
- 1h 32m
- Merged PRs (30d)
- 376
Description
Please confirm these before moving forward
- I have searched for my issue and not found a work-in-progress/duplicate/resolved issue.
- I have not been informed if the issue is resolved in a preview version of the winget client.
Category of the issue
Installation issue.
Brief description of your issue
When updating JanDeDobbeleer.OhMyPosh (installed in user scope) using winget upgrade JanDeDobbeleer.OhMyPosh, the installer requires elevation. Uninstall and reinstall will not require elevation.
Steps to reproduce
- Enable UAC
- Uninstall the package:
winget uninstall JanDeDobbeleer.OhMyPosh(if previously installed) - Install an older version in User scope:
winget install JanDeDobbeleer.OhMyPosh --version "24.11.2" --scope "user" - Observe that no elevation is required
- Upgrade the package:
winget upgrade JanDeDobbeleer.OhMyPosh - Observe elevation prompt
- Upgrade using
winget upgrade JanDeDobbeleer.OhMyPosh --uninstall-previous - Observe elevation prompt
Actual behavior
There is elevation prompt when upgrading the package
Expected behavior
If the package is installed in user scope, there should not be elevation prompt when upgrading
Environment
[winget --info]
Windows Package Manager (Preview) v1.10.40-preview
Copyright (c) Microsoft Corporation. All rights reserved.
Windows: Windows.Desktop v10.0.26100.2454
System Architecture: Arm64
Package: Microsoft.DesktopAppInstaller v1.25.40.0
Winget Directories
-----------------------------------------------------------------------------------------------------------------------
Logs %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\Diag…
User Settings %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\sett…
Portable Links Directory (User) %LOCALAPPDATA%\Microsoft\WinGet\Links
Portable Links Directory (Machine) C:\Program Files\WinGet\Links
Portable Package Root (User) %LOCALAPPDATA%\Microsoft\WinGet\Packages
Portable Package Root C:\Program Files\WinGet\Packages
Portable Package Root (x86) C:\Program Files (x86)\WinGet\Packages
Installer Downloads %USERPROFILE%\OneDrive\Downloads
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
Admin Setting State
--------------------------------------------------
LocalManifestFiles Disabled
BypassCertificatePinningForMicrosoftStore Disabled
InstallerHashOverride Disabled
LocalArchiveMalwareScanOverride Disabled
ProxyCommandLineOptions Disabled
DefaultProxy Disabled
Screenshots and Logs
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
Reproduce the user-scope installation and upgrade sequence with the listed winget commands, then inspect the linked WinGet log and package metadata for the elevation request. Done means upgrading JanDeDobbeleer.OhMyPosh from user scope no longer prompts for elevation, including with --uninstall-previous.
Written by the indexing model from the issue text.
Assessment
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100