Skip to content
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

[Package Issue]: JanDeDobbeleer.OhMyPosh requires elevation to upgrade #195802

Open
2 tasks done
dingwen07 opened this issue Dec 2, 2024 · 0 comments
Open
2 tasks done
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Triage This work item needs to be triaged by a member of the core team.

Comments

@dingwen07
Copy link
Contributor

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

WinGet-2024-12-02-17-43-44.810.log

@dingwen07 dingwen07 added the Issue-Bug It either shouldn't be doing this or needs an investigation. label Dec 2, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs-Triage This work item needs to be triaged by a member of the core team. label Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Triage This work item needs to be triaged by a member of the core team.
Projects
None yet
Development

No branches or pull requests

1 participant