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

[BUG] Winget setting "Always run WinGet operations with administrator rights" ignored #3120

Open
4 tasks done
Mad5555 opened this issue Dec 23, 2024 · 5 comments
Open
4 tasks done
Assignees
Labels
bug Something isn't working ready-to-go
Milestone

Comments

@Mad5555
Copy link

Mad5555 commented Dec 23, 2024

Please confirm these before moving forward

  • I have searched for my issue and have not found a work-in-progress/duplicate/resolved issue.
  • I have tested that this issue has not been fixed in the latest (beta or stable) release.
  • I have checked the FAQ section for solutions.
  • This issue is about a bug (if it is not, please use the correct template).

UniGetUI Version

3.1.5

Windows version, edition, and architecture

Windows 11 Pro 24H2 x64

Describe your issue

Setting "Always run WinGet operations with administrator rights" is ignored when running updates/installations from Winget-Sources.

Steps to reproduce the issue

Activate "Always run WinGet operations with administrator rights" and try to update applications. You aren't asked to elevate.

UniGetUI Log

[23.12.2024 10:28:47]    __  __      _ ______     __  __  ______
                        / / / /___  (_) ____/__  / /_/ / / /  _/
                       / / / / __ \/ / / __/ _ \/ __/ / / // /
                      / /_/ / / / / / /_/ /  __/ /_/ /_/ // /
                      \____/_/ /_/_/\____/\___/\__/\____/___/
                          Welcome to UniGetUI Version 3.1.5
[23.12.2024 10:28:47]
[23.12.2024 10:28:47] Build 74
[23.12.2024 10:28:47] Encoding Code Page set to 850
[23.12.2024 10:28:47] Using built-in UniGetUI Elevator
[23.12.2024 10:28:48] Tried to access a non-existing cached language file! file=C:\Users\mva\AppData\Local\UniGetUI\CachedLanguageFiles\lang_en.json
[23.12.2024 10:28:48] Loaded language locale: en
[23.12.2024 10:28:48] Randomly-generated background API auth token for the current session: nv60y7k4orj9b34ofj99uigzwokl7t4q8x5dr6fpvpohebb466og9mzi7uvh269l
[23.12.2024 10:28:48] Api running on http://localhost:7058
[23.12.2024 10:28:48] Lang files were updated successfully from GitHub
[23.12.2024 10:28:49] Downloaded new icons and screenshots successfully!
[23.12.2024 10:28:49] Command npm was not found on the system
[23.12.2024 10:28:49] Command vcpkg was not found on the system
[23.12.2024 10:28:49] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                      █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                      █ Name: Npm
                      █ Enabled: False
                      █ THE MANAGER IS DISABLED
                      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[23.12.2024 10:28:49] Command cargo was not found on the system
[23.12.2024 10:28:49] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                      █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                      █ Name: Cargo
                      █ Enabled: False
                      █ THE MANAGER IS DISABLED
                      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[23.12.2024 10:28:49] Command pwsh.exe was not found on the system
[23.12.2024 10:28:49] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                      █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                      █ Name: PowerShell7
                      █ Enabled: False
                      █ THE MANAGER IS DISABLED
                      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[23.12.2024 10:28:49] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                      █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                      █ Name: .NET Tool
                      █ Enabled: False
                      █ THE MANAGER IS DISABLED
                      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[23.12.2024 10:28:49] Command vcpkg was not found on the system
[23.12.2024 10:28:50] Command vcpkg was not found on the system
[23.12.2024 10:28:50] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                      █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                      █ Name: vcpkg
                      █ Enabled: False
                      █ THE MANAGER IS DISABLED
                      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[23.12.2024 10:28:50] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                      █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                      █ Name: Pip
                      █ Enabled: False
                      █ THE MANAGER IS DISABLED
                      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[23.12.2024 10:28:50] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                      █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                      █ Name: PowerShell
                      █ Enabled: False
                      █ THE MANAGER IS DISABLED
                      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[23.12.2024 10:28:50] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                      █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                      █ Name: Winget
                      █ Enabled: True
                      █ Found: True
                      █ Fancy exe name: winget.exe
                      █ Executable path: C:\Users\mva\AppData\Local\Microsoft\WindowsApps\winget.exe
                      █ Call arguments: 
                      █ Version: 
                      █   System WinGet CLI Version: v1.9.25200
                      █   Using Native WinGet helper (COM Api)
                      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[23.12.2024 10:28:50] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                      █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                      █ Name: Chocolatey
                      █ Enabled: False
                      █ THE MANAGER IS DISABLED
                      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[23.12.2024 10:28:51] Command scoop was not found on the system
[23.12.2024 10:28:51] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                      █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                      █ Name: Scoop
                      █ Enabled: False
                      █ THE MANAGER IS DISABLED
                      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[23.12.2024 10:28:51] LoadComponentsAsync finished executing. All managers loaded. Proceeding to interface.
[23.12.2024 10:28:54] Found 7 available updates from Winget
[23.12.2024 10:28:54] Found 348 installed packages from Winget
[23.12.2024 10:28:55] Unknown mimetype image/jpeg for icon https://img.utdstc.com/icon/aab/566/aab566ff80c739e8a4d06f1fee8f87fb93c845c92d05751d2e372bde3eb26480:200, aborting download
[23.12.2024 10:28:56] Unknown mimetype text/html; charset=utf-8 for icon https://github.com/zint/zint/blob/master/docs/images/zint-qt.png, aborting download
[23.12.2024 10:28:58] Resetting administrator rights cache for process id 604
[23.12.2024 10:28:58] Command vcpkg was not found on the system

Package Managers Logs

Manager WinGet with version:
System WinGet CLI Version: v1.9.25200
Using Native WinGet helper (COM Api)

——————————————————————————————————————————


Logged native task on manager Winget. Task type is ListSources
Process start time: 23.12.2024 10:28:50
Process end time:   23.12.2024 10:28:50

-- Task information
 ...

The task reported success

——————————————————————————————————————————

Logged subprocess-based task on manager Winget. Task type is RefreshIndexes
Subprocess executable: "C:\Users\mva\AppData\Local\Microsoft\WindowsApps\winget.exe"
Command-line arguments: " source update --disable-interactivity"
Process start time: 23.12.2024 10:28:51
Process end time:   23.12.2024 10:28:52

-- Process STDOUT
 ...

Return code: SUCCESS (0)

——————————————————————————————————————————

Logged native task on manager Winget. Task type is ListInstalledPackages
Process start time: 23.12.2024 10:28:51
Process end time:   23.12.2024 10:28:54

-- Task information
 ...

The task reported success

——————————————————————————————————————————

Logged native task on manager Winget. Task type is OtherTask
Process start time: 23.12.2024 10:28:51
Process end time:   23.12.2024 10:28:53

-- Task information
 ...

The task reported success

——————————————————————————————————————————

Logged native task on manager Winget. Task type is ListUpdates
Process start time: 23.12.2024 10:28:52
Process end time:   23.12.2024 10:28:54

-- Task information
 ...

The task reported success

——————————————————————————————————————————

Relevant information

No response

Screenshots and videos

No response

@Mad5555 Mad5555 added the bug Something isn't working label Dec 23, 2024
@marticliment
Copy link
Owner

Setting "Always run WinGet operations with administrator rights" is ignored when running updates/installations from Winget-Sources.

When you say "is ignored", you mean that the package is not elevated at all, or that you see an UAC prompt each time?

@marticliment marticliment added this to the Bugs milestone Dec 23, 2024
@Mad5555
Copy link
Author

Mad5555 commented Dec 23, 2024

It means I see no UAC prompt. Installation will happen not elevated. Unfortunately most of my installations need elevation. So update/install fails.

If I manually use "Install/Update as admin" this works.

@marticliment
Copy link
Owner

marticliment commented Dec 23, 2024

Does this only happen with WinGet? Or other package managers are affected too? (I mean, with their specific settings)

@Mad5555
Copy link
Author

Mad5555 commented Dec 23, 2024

I only have Winget in use.

@marticliment
Copy link
Owner

Ok, I will investigate the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ready-to-go
Projects
None yet
Development

No branches or pull requests

2 participants