[BUG] "Ask for administrator privileges once for each batch" can still show multiple UAC prompts with parallel operations set to 1
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 62/100
Hướng nghiên cứu
Start by tracing the administrator/elevation settings and the operations launched through "UniGetUI Elevator.exe", using the attached ICS-PC01-session.log to follow process ID 20532 and the administrator-rights cache. Reproduce the seven-update batch with parallel operations set to 1, then verify that all elevated operations in one batch reuse a single UAC confirmation before the cache is cleared.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
2026.3.0
Windows version, edition, and architecture
Microsoft Windows 11 Pro 25H2 · Build 26200.9457 · x64
Describe your issue
I have enabled the option "Ask for administrator privileges once for each batch of operations".
The separate option "Ask only once for administrator privileges" is disabled, and the maximum number of parallel operations is set to 1.
When I start multiple package updates together as one batch, UniGetUI can still display multiple UAC prompts for package operations that require elevation.
In one reproducible test, I started a batch of 7 WinGet updates. Three packages required administrator privileges:
- CodecGuide.K-LiteCodecPack.Full
- Notepad++.Notepad++
- Microsoft.WindowsADK
Although all three operations belonged to the same batch and were processed sequentially, I received 3 separate UAC prompts.
The UniGetUI logs show that all three elevated operations were launched through "UniGetUI Elevator.exe" and that the same administrator-rights cache process ID was used until the batch completed.
With "Ask for administrator privileges once for each batch of operations" enabled, I would expect one UAC confirmation to be reused for all elevated package operations within that batch.
Steps to reproduce the issue
-
Open UniGetUI Settings.
-
Under the administrator/elevation settings:
- Enable "Ask for administrator privileges once for each batch of operations".
- Leave "Ask only once for administrator privileges" disabled.
- Set the maximum number of parallel operations to 1.
-
Make sure multiple WinGet updates are available, including more than one package that requires elevation.
-
Start all selected updates together as one batch.
-
Approve the UAC prompts as they appear.
-
Observe that multiple UAC prompts can be shown during the same batch.
In my reproducible test, the batch contained 7 updates. Three of them required elevation:
- CodecGuide.K-LiteCodecPack.Full
- Notepad++.Notepad++
- Microsoft.WindowsADK
All operations were processed sequentially because the parallel operation limit was set to 1, but 3 separate UAC prompts were shown.
UniGetUI Log
Relevant excerpt from ICS-PC01-session.log:
[2026-09-27 12:16:00 ] WinGet package CodecGuide.K-LiteCodecPack.Full requires elevation, forcing administrator rights...
[2026-09-27 12:16:00 ] Caching admin rights for process id 20532
[2026-09-27 12:17:32 ] WinGet package Notepad++.Notepad++ requires elevation, forcing administrator rights...
[2026-09-27 12:17:32 ] Caching admin rights for process id 20532
[2026-09-27 12:17:45 ] WinGet package Microsoft.WindowsADK requires elevation, forcing administrator rights...
[2026-09-27 12:17:45 ] Caching admin rights for process id 20532
[2026-09-27 12:19:16 ] Clearing UAC prompt since there are no remaining operations
[2026-09-27 12:19:16 ] Resetting administrator rights cache for process id 20532
The complete ICS-PC01-session.log is attached.
Package Managers Logs
Relevant package manager operation logs:
K-Lite Codec Pack Full:
Executing process with StartInfo:
- FileName: "C:\Program Files\UniGetUI\Assets\Utilities\UniGetUI Elevator.exe"
- Arguments: ""C:\Users\gufa\AppData\Local\Microsoft\WindowsApps\winget.exe" update --id "CodecGuide.K-LiteCodecPack.Full" --exact --source winget --accept-source-agreements --disable-interactivity --silent --include-unknown --accept-package-agreements --force"
The operation completed successfully with return value 0.
Notepad++:
Executing process with StartInfo:
- FileName: "C:\Program Files\UniGetUI\Assets\Utilities\UniGetUI Elevator.exe"
- Arguments: ""C:\Users\gufa\AppData\Local\Microsoft\WindowsApps\winget.exe" update --id "Notepad++.Notepad++" --exact --source winget --accept-source-agreements --disable-interactivity --silent --include-unknown --accept-package-agreements --force"
The operation completed successfully with return value 0.
Windows Assessment and Deployment Kit:
Executing process with StartInfo:
- FileName: "C:\Program Files\UniGetUI\Assets\Utilities\UniGetUI Elevator.exe"
- Arguments: ""C:\Users\gufa\AppData\Local\Microsoft\WindowsApps\winget.exe" update --id "Microsoft.WindowsADK" --exact --source winget --accept-source-agreements --disable-interactivity --silent --include-unknown --accept-package-agreements --force"
The operation completed successfully with return value 0.
The complete operation logs for all three packages are attached.
Relevant information
ICS-PC01-session.log
UniGetUI-Protokoll_K-LiteCodecPack.txt
UniGetUI-Protokoll_Notepad++.txt
UniGetUI-Protokoll_WindowsADK.txt
Screenshots and videos
No response
- Ngôn ngữ chính
- C#
- Star
- 26.6k
- Fork
- 945
- Merge trung bình
- 22 giờ 5 phút
- Pull request đã merge (30 ngày)
- 76
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của Devolutions/UniGetUI
-
bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
Devolutions/UniGetUI#5029 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[BUG] Bun updates not detected when installed via Scoop — GetGlobalPackagesDirectory ignores BUN_INSTALLCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Devolutions/UniGetUI#4918 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
Devolutions/UniGetUI#4768 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[IMPROVEMENT] UI/UX Architecture layers: Package Bundle Catalogue and Startup Operations IntegrationĐang mởenhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 12/100
Devolutions/UniGetUI#5524 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 15/100
Devolutions/UniGetUI#5523 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của Devolutions/UniGetUI
Issue tương tự
-
python triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
microsoft/semantic-kernel#14615 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
vzeol/DeployCraft#125 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
fboucher/2d6-dungeon-app#245 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area: settings good first issue priority: p2 type: bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
AmineChr54/umbra#3 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày