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] Ask Only Once For Administrator Priviledges Broken #3297

Open
4 tasks done
timothymowens opened this issue Feb 12, 2025 · 9 comments
Open
4 tasks done

[BUG] Ask Only Once For Administrator Priviledges Broken #3297

timothymowens opened this issue Feb 12, 2025 · 9 comments
Assignees
Labels
bug Something isn't working needs-author-answer
Milestone

Comments

@timothymowens
Copy link

timothymowens commented Feb 12, 2025

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.6

Windows version, edition, and architecture

Windows 11 Pro 10.0.26100.2894 x64

Describe your issue

I have the option to "Ask only once for administrator priviledges" when updating multiple winget packages, however, I am getting a UAC prompt for each individual package. I've tested on a machine that had Unigetui updated and another machne that was a fresh install (brand new Windows install). Same behavior on both.

Steps to reproduce the issue

Enable the "Ask only once for administrator priviledges" option, upgrade multiple packages at once, get multiple admin/UAC prompts.

UniGetUI Log

[2025-02-12 08:53:35]    __  __      _ ______     __  __  ______
                        / / / /___  (_) ____/__  / /_/ / / /  _/
                       / / / / __ \/ / / __/ _ \/ __/ / / // /
                      / /_/ / / / / / /_/ /  __/ /_/ /_/ // /
                      \____/_/ /_/_/\____/\___/\__/\____/___/
                          Welcome to UniGetUI Version 3.1.6
[2025-02-12 08:53:35]
[2025-02-12 08:53:35] Build 80
[2025-02-12 08:53:35] Data directory C:\Users\timot\AppData\Local\UniGetUI
[2025-02-12 08:53:35] Encoding Code Page set to 437
[2025-02-12 08:53:35] Using built-in UniGetUI Elevator
[2025-02-12 08:53:36] Loaded language locale: en
[2025-02-12 08:53:37] Randomly-generated background API auth token for the current session: 77jqm21mmuc9m9ty1vywg926pkmhs48tsoz7sj3n9tt7yew82ph9o2uhqjbndxwg
[2025-02-12 08:53:37] Api running on http://localhost:7058
[2025-02-12 08:53:37] Lang files were updated successfully from GitHub
[2025-02-12 08:53:37] Downloaded new icons and screenshots successfully!
[2025-02-12 08:53:38] Command cargo was not found on the system
[2025-02-12 08:53:38] Command npm was not found on the system
[2025-02-12 08:53:38] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                      █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                      █ Name: Cargo
                      █ Enabled: False
                      █ THE MANAGER IS DISABLED
                      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[2025-02-12 08:53:38] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                      █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                      █ Name: .NET Tool
                      █ Enabled: True
                      █ Found: False
                      █ THE MANAGER WAS NOT FOUND. PERHAPS IT IS NOT 
                      █ INSTALLED OR IT HAS BEEN MISCONFIGURED 
                      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[2025-02-12 08:53:38] Command vcpkg was not found on the system
[2025-02-12 08:53:38] Command vcpkg was not found on the system
[2025-02-12 08:53:38] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                      █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                      █ Name: vcpkg
                      █ Enabled: False
                      █ THE MANAGER IS DISABLED
                      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[2025-02-12 08:53:38] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                      █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                      █ Name: Pip
                      █ Enabled: False
                      █ THE MANAGER IS DISABLED
                      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[2025-02-12 08:53:38] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                      █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                      █ Name: Winget
                      █ Enabled: True
                      █ Found: True
                      █ Fancy exe name: winget.exe
                      █ Executable path: C:\Users\timot\AppData\Local\Microsoft\WindowsApps\winget.exe
                      █ Call arguments: 
                      █ Version: 
                      █   System WinGet CLI Version: v1.9.25200
                      █   Using Native WinGet helper (COM Api)
                      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[2025-02-12 08:53:38] UniGetUI Chocolatey was found in the path
[2025-02-12 08:53:38] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                      █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                      █ Name: Chocolatey
                      █ Enabled: False
                      █ THE MANAGER IS DISABLED
                      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[2025-02-12 08:53:38] Command scoop was not found on the system
[2025-02-12 08:53:38] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                      █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                      █ Name: Scoop
                      █ Enabled: False
                      █ THE MANAGER IS DISABLED
                      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[2025-02-12 08:53:40] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                      █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                      █ Name: PowerShell7
                      █ Enabled: True
                      █ Found: True
                      █ Fancy exe name: pwsh.exe
                      █ Executable path: C:\Program Files\PowerShell\7\pwsh.exe
                      █ Call arguments:  -NoProfile -Command
                      █ Version: 
                      █   PowerShell 7.5.0
                      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[2025-02-12 08:53:40] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                      █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                      █ Name: PowerShell
                      █ Enabled: True
                      █ Found: True
                      █ Fancy exe name: powershell.exe
                      █ Executable path: C:\WINDOWS\system32\windowspowershell\v1.0\powershell.exe
                      █ Call arguments:  -NoProfile -Command
                      █ Version: 
                      █   Name                           Value                                                                                                                                               
                      █   ----                           -----                                                                                                                                               
                      █   PSVersion                      5.1.26100.2161                                                                                                                                      
                      █   PSEdition                      Desktop                                                                                                                                             
                      █   PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}                                                                                                                             
                      █   BuildVersion                   10.0.26100.2161                                                                                                                                     
                      █   CLRVersion                     4.0.30319.42000                                                                                                                                     
                      █   WSManStackVersion              3.0                                                                                                                                                 
                      █   PSRemotingProtocolVersion      2.3                                                                                                                                                 
                      █   SerializationVersion           1.1.0.1
                      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[2025-02-12 08:53:40] LoadComponentsAsync finished executing. All managers loaded. Proceeding to interface.
[2025-02-12 08:53:41] Found 0 installed packages from PowerShell7
[2025-02-12 08:53:41] Found 0 available updates from PowerShell7
[2025-02-12 08:53:42] Found 0 installed packages from PowerShell
[2025-02-12 08:53:42] Found 0 available updates from PowerShell
[2025-02-12 08:53:43] Found 7 available updates from Winget
[2025-02-12 08:53:43] Found 182 installed packages from Winget
[2025-02-12 09:00:55] Found 0 installed packages from PowerShell7
[2025-02-12 09:00:56] Found 0 installed packages from PowerShell
[2025-02-12 09:00:57] Found 183 installed packages from Winget
[2025-02-12 09:00:57] Adding missing package MSIX\Microsoft.WindowsAppRuntime.1.6_6000.401.2352.0_x64__8wekyb3d8bbwe to installed packages list
[2025-02-12 09:00:57] Adding missing package MSIX\Microsoft.WindowsAppRuntime.1.6_6000.401.2352.0_x86__8wekyb3d8bbwe to installed packages list
[2025-02-12 09:01:00] Loaded operation parameters for package id=Microsoft.AzureDataStudio on manager Winget and operation Update: update --id "Microsoft.AzureDataStudio" --exact --source winget --accept-source-agreements --disable-interactivity --silent --include-unknown --accept-package-agreements --force
[2025-02-12 09:01:32] Loaded operation parameters for package id=Microsoft.DotNet.DesktopRuntime.8 on manager Winget and operation Update: update --id "Microsoft.DotNet.DesktopRuntime.8" --exact --source winget --accept-source-agreements --disable-interactivity --silent --include-unknown --accept-package-agreements --force
[2025-02-12 09:03:53] Resetting administrator rights cache for process id 19020
[2025-02-12 09:03:53] Resetting administrator rights cache for process id 19020
[2025-02-12 09:03:53] Command vcpkg was not found on the system
[2025-02-12 09:03:57] Loaded operation parameters for package id=Microsoft.VisualStudioCode on manager Winget and operation Update: update --id "Microsoft.VisualStudioCode" --exact --source winget --accept-source-agreements --disable-interactivity --silent --include-unknown --accept-package-agreements --force
[2025-02-12 09:04:18] Package requires elevation, forcing administrator rights...
[2025-02-12 09:04:18] Loaded operation parameters for package id=Microsoft.VisualStudio.2022.Community on manager Winget and operation Update: update --id "Microsoft.VisualStudio.2022.Community" --exact --source winget --accept-source-agreements --disable-interactivity --silent --include-unknown --accept-package-agreements --force
[2025-02-12 09:04:18] Caching admin rights for process id 19020

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: 2025-02-12 08:53:38
Process end time:   2025-02-12 08:53:38

-- Task information
 ...

The task reported success

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

Logged subprocess-based task on manager Winget. Task type is RefreshIndexes
Subprocess executable: "C:\Users\timot\AppData\Local\Microsoft\WindowsApps\winget.exe"
Command-line arguments: " source update --disable-interactivity"
Process start time: 2025-02-12 08:53:40
Process end time:   2025-02-12 08:53:41

-- Process STDOUT
 ...

Return code: SUCCESS (0)

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

Logged native task on manager Winget. Task type is ListInstalledPackages
Process start time: 2025-02-12 08:53:40
Process end time:   2025-02-12 08:53:43

-- Task information
 ...

The task reported success

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

Logged native task on manager Winget. Task type is OtherTask
Process start time: 2025-02-12 08:53:40
Process end time:   2025-02-12 08:53:42

-- Task information
 ...

The task reported success

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

Logged native task on manager Winget. Task type is ListUpdates
Process start time: 2025-02-12 08:53:41
Process end time:   2025-02-12 08:53:43

-- Task information
 ...

The task reported success

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

Logged native task on manager Winget. Task type is ListInstalledPackages
Process start time: 2025-02-12 09:00:55
Process end time:   2025-02-12 09:00:57

-- Task information
 ...

The task reported success

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

Logged native task on manager Winget. Task type is OtherTask
Process start time: 2025-02-12 09:00:55
Process end time:   2025-02-12 09:00:56

-- Task information
 ...

The task reported success

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

Logged native task on manager Winget. Task type is ListSources
Process start time: 2025-02-12 09:03:53
Process end time:   2025-02-12 09:03:53

-- Task information
 ...

The task reported success

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

Relevant information

This used to work perfectly on an earlier build, but the last few releases have broken this feature.

Screenshots and videos

No response

@timothymowens timothymowens added the bug Something isn't working label Feb 12, 2025
@marticliment
Copy link
Owner

The prompts you are seeing are from UniGetUI Elevator or from the package installers themselves?

@marticliment marticliment added this to the Bugs milestone Feb 12, 2025
@timothymowens
Copy link
Author

timothymowens commented Feb 12, 2025 via email

@marticliment
Copy link
Owner

I also get UAC prompts for each individual package being installed. So to answer your question, I get both. The first one from UniGetUI used to be the only one I'd see.

But those prompts, what do you see on the screen? Do you see the UniGetUI Logo, with the text "UniGetUI Elevator", or you see the name and logo of the package being updated at the time?

@timothymowens
Copy link
Author

timothymowens commented Feb 12, 2025 via email

@marticliment
Copy link
Owner

When updating the packages, do you see a "shield" logo on the left side of the operations?

Image

@timothymowens
Copy link
Author

timothymowens commented Feb 13, 2025 via email

@psych0genesis
Copy link

When updating the packages, do you see a "shield" logo on the left side of the operations?

Image

I have the same issue under the same circumstances. and I do see a shield on the side.

@psych0genesis
Copy link

Image

Here's the initial popup. Occasionally it includes the name and the icon of the program making the request.

@marticliment
Copy link
Owner

Image

Here's the initial popup. Occasionally it includes the name and the icon of the program making the request.

Any packages that show their icon and names, instead of UniGetUI Elevator, also have the shield?

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

No branches or pull requests

3 participants