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] Only ask for administrator rights once for each batch of processes not working #3140

Open
4 tasks done
udobehm opened this issue Dec 28, 2024 · 9 comments
Open
4 tasks done
Assignees
Labels
Milestone

Comments

@udobehm
Copy link

udobehm commented Dec 28, 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

Win 11 Pro

Describe your issue

Good day. I think the Only ask for administrator rights once for each batch of processes function isn't working properly.
If the option is selected in the UniGetUI settings and I click on "Actualize all"...
Screenshot 2024-12-28 210848
...I'm not getting the screen with the UniGet Elevator that allows me to install the apps with admin rights (what happens after I click the install with admin rights button).

Is this an error or does UniGetUI not want me to install my batch of processes with admin rights if I configured this before in the settings? Or do I have to activate this function: Only once after administrator rights (not recommended)?

Thanks!

Steps to reproduce the issue

No response

UniGetUI Log

[28.12.2024 21:04:32]    __  __      _ ______     __  __  ______
                        / / / /___  (_) ____/__  / /_/ / / /  _/
                       / / / / __ \/ / / __/ _ \/ __/ / / // /
                      / /_/ / / / / / /_/ /  __/ /_/ /_/ // /
                      \____/_/ /_/_/\____/\___/\__/\____/___/
                          Welcome to UniGetUI Version 3.1.5
[28.12.2024 21:04:32]
[28.12.2024 21:04:32] Build 74
[28.12.2024 21:04:32] Encoding Code Page set to 850
[28.12.2024 21:04:32] Using built-in UniGetUI Elevator
[28.12.2024 21:04:33] Loaded language locale: de
[28.12.2024 21:04:34] Randomly-generated background API auth token for the current session: yutsomctcmwiq0guh4nc44upx092q7c5ycqpnorpax3alauijopl0mc25rdiiiby
[28.12.2024 21:04:34] Api running on http://localhost:7058
[28.12.2024 21:04:34] Lang files were updated successfully from GitHub
[28.12.2024 21:04:34] Old chocolatey path is a symbolic link, not migrating Chocolatey...
[28.12.2024 21:04:35] Downloaded new icons and screenshots successfully!
[28.12.2024 21:04:36] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                      █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                      █ Name: Winget
                      █ Enabled: True
                      █ Found: True
                      █ Fancy exe name: winget.exe
                      █ Executable path: C:\Users\Udo\AppData\Local\Microsoft\WindowsApps\winget.exe
                      █ Call arguments: 
                      █ Version: 
                      █   System WinGet CLI Version: v1.9.25200
                      █   Using Native WinGet helper (COM Api)
                      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[28.12.2024 21:04:36] Command npm was not found on the system
[28.12.2024 21:04:36] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                      █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                      █ Name: Npm
                      █ Enabled: True
                      █ Found: False
                      █ THE MANAGER WAS NOT FOUND. PERHAPS IT IS NOT 
                      █ INSTALLED OR IT HAS BEEN MISCONFIGURED 
                      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[28.12.2024 21:04:38] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                      █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                      █ Name: Pip
                      █ Enabled: True
                      █ Found: True
                      █ Fancy exe name: pip
                      █ Executable path: C:\Users\Udo\AppData\Local\Programs\Python\Python313\python.exe
                      █ Call arguments:  -m pip
                      █ Version: 
                      █   pip 24.3.1 from C:\Users\Udo\AppData\Local\Programs\Python\Python313\Lib\site-packages\pip (python 3.13)
                      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[28.12.2024 21:04:38] Command cargo was not found on the system
[28.12.2024 21:04:38] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                      █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                      █ Name: Cargo
                      █ Enabled: True
                      █ Found: False
                      █ THE MANAGER WAS NOT FOUND. PERHAPS IT IS NOT 
                      █ INSTALLED OR IT HAS BEEN MISCONFIGURED 
                      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[28.12.2024 21:04:38] Command scoop was not found on the system
[28.12.2024 21:04:38] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                      █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                      █ Name: Scoop
                      █ Enabled: True
                      █ Found: False
                      █ THE MANAGER WAS NOT FOUND. PERHAPS IT IS NOT 
                      █ INSTALLED OR IT HAS BEEN MISCONFIGURED 
                      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[28.12.2024 21:04:38] Command vcpkg was not found on the system
[28.12.2024 21:04: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 
                      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[28.12.2024 21:04:38] Command vcpkg was not found on the system
[28.12.2024 21:04:39] Command pwsh.exe was not found on the system
[28.12.2024 21:04:39] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                      █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                      █ Name: PowerShell7
                      █ Enabled: True
                      █ Found: False
                      █ THE MANAGER WAS NOT FOUND. PERHAPS IT IS NOT 
                      █ INSTALLED OR IT HAS BEEN MISCONFIGURED 
                      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[28.12.2024 21:04:39] Command vcpkg was not found on the system
[28.12.2024 21:04:39] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                      █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                      █ Name: vcpkg
                      █ Enabled: True
                      █ Found: False
                      █ THE MANAGER WAS NOT FOUND. PERHAPS IT IS NOT 
                      █ INSTALLED OR IT HAS BEEN MISCONFIGURED 
                      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[28.12.2024 21:04:42] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                      █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                      █ Name: Chocolatey
                      █ Enabled: True
                      █ Found: True
                      █ Fancy exe name: choco.exe
                      █ Executable path: C:\Users\Udo\AppData\Local\UniGetUI\Chocolatey\choco.exe
                      █ Call arguments: 
                      █ Version: 
                      █   2.2.2
                      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[28.12.2024 21:04:43] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                      █▀▀▀▀▀▀▀▀▀▀▀▀▀ 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
                      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[28.12.2024 21:04:43] LoadComponentsAsync finished executing. All managers loaded. Proceeding to interface.
[28.12.2024 21:04:51] Dependency parse-pip-search for manager Pip is present
[28.12.2024 21:04:56] Found 0 available updates from Chocolatey
[28.12.2024 21:04:56] Found 0 installed packages from Chocolatey
[28.12.2024 21:04:57] Found 14 installed packages from Pip
[28.12.2024 21:04:59] Found 0 installed packages from PowerShell
[28.12.2024 21:05:02] Found 0 available updates from PowerShell
[28.12.2024 21:05:04] Found 1 available updates from Pip
[28.12.2024 21:05:12] WinGet package Microsoft.Teams.Classic not being shown as an updated as this version has already been marked as installed
[28.12.2024 21:05:13] WinGet package Python.Python.3.12 not being shown as an updated as this version has already been marked as installed
[28.12.2024 21:05:17] Found 9 available updates from Winget
[28.12.2024 21:05:17] Found 883 installed packages from Winget
[28.12.2024 21:05:17] Backup saved to C:\Users\Udo\Einstellungen\UniGetUI\Sicherung\ENVY installierte Pakete.ubundle
[28.12.2024 21:05:17] Icon download attempt at http://static.4kdownload.com/main/img/logo/videodownloader-512.7395df698c5e.png failed with code NotFound
[28.12.2024 21:05:18] Icon download attempt at https://community.chocolatey.org/content/packageimages/gimagereader.3.4.1.png failed with code NotFound
[28.12.2024 21:05:19] Could not parse Images array from Microsoft Store response
[28.12.2024 21:05:58] Resetting administrator rights cache for process id 14268
[28.12.2024 21:05:58] Command vcpkg was not found on the system
[28.12.2024 21:10:22] Loaded operation parameters for package id=OpenMedia.4KVideoDownloader on manager Winget and operation Update: update --id "OpenMedia.4KVideoDownloader" --exact --source winget --accept-source-agreements --disable-interactivity --silent --include-unknown --accept-package-agreements --force
[28.12.2024 21:10:22] Caching admin rights for process id 14268
[28.12.2024 21:10:44] Elevator [or GSudo] UAC prompt was canceled, not showing error message...
[28.12.2024 21:10:44] Loaded operation parameters for package id=OpenMedia.4KVideoDownloaderPlus on manager Winget and operation Update: update --id "OpenMedia.4KVideoDownloaderPlus" --exact --source winget --accept-source-agreements --disable-interactivity --silent --include-unknown --accept-package-agreements --force
[28.12.2024 21:10:44] Caching admin rights for process id 14268
[28.12.2024 21:10:49] Elevator [or GSudo] UAC prompt was canceled, not showing error message...
[28.12.2024 21:10:50] Loaded operation parameters for package id=charset-normalizer on manager Pip and operation Update: install --upgrade charset-normalizer --no-input --no-color --no-python-version-warning --no-cache
[28.12.2024 21:10:50] Caching admin rights for process id 14268
[28.12.2024 21:10:54] Elevator [or GSudo] UAC prompt was canceled, not showing error message...
[28.12.2024 21:10:54] Loaded operation parameters for package id=CPUID.CPU-Z on manager Winget and operation Update: update --id "CPUID.CPU-Z" --exact --source winget --accept-source-agreements --disable-interactivity --silent --include-unknown --accept-package-agreements --force
[28.12.2024 21:10:54] Caching admin rights for process id 14268
[28.12.2024 21:11:05] Elevator [or GSudo] UAC prompt was canceled, not showing error message...
[28.12.2024 21:11:05] Loaded operation parameters for package id=EaseUS.PartitionMaster on manager Winget and operation Update: update --id "EaseUS.PartitionMaster" --exact --source winget --accept-source-agreements --disable-interactivity --silent --include-unknown --accept-package-agreements --force
[28.12.2024 21:11:05] Caching admin rights for process id 14268
[28.12.2024 21:13:24] Loaded operation parameters for package id=IObit.IObitSoftwareUpdater on manager Winget and operation Update: update --id "IObit.IObitSoftwareUpdater" --exact --source winget --accept-source-agreements --disable-interactivity --silent --include-unknown --accept-package-agreements --force
[28.12.2024 21:13:24] Caching admin rights for process id 14268

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: 28.12.2024 21:04:35
Process end time:   28.12.2024 21:04:36

-- Task information
 ...

The task reported success

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

Logged subprocess-based task on manager Winget. Task type is RefreshIndexes
Subprocess executable: "C:\Users\Udo\AppData\Local\Microsoft\WindowsApps\winget.exe"
Command-line arguments: " source update --disable-interactivity"
Process start time: 28.12.2024 21:04:43
Process end time:   28.12.2024 21:04:52

-- Process STDOUT
 ...

Return code: SUCCESS (0)

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

Logged native task on manager Winget. Task type is ListInstalledPackages
Process start time: 28.12.2024 21:04:43
Process end time:   28.12.2024 21:05:17

-- Task information
 ...

The task reported success

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

Logged native task on manager Winget. Task type is OtherTask
Process start time: 28.12.2024 21:04:43
Process end time:   28.12.2024 21:05:03

-- Task information
 ...

The task reported success

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

Logged native task on manager Winget. Task type is ListUpdates
Process start time: 28.12.2024 21:04:52
Process end time:   28.12.2024 21:05:17

-- Task information
 ...

The task reported success

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

Logged native task on manager Winget. Task type is ListSources
Process start time: 28.12.2024 21:05:58
Process end time:   28.12.2024 21:05:58

-- Task information
 ...

The task reported success

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

Relevant information

No response

Screenshots and videos

No response

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

Are you seeing multiple UniGetUI Elevator prompts, or the prompts are from the installers themselves?

@udobehm
Copy link
Author

udobehm commented Dec 28, 2024

I see one UniGetUI Elevator prompt when clicking the install with admin rights button inside the app. I would expect the same prompt to appear when clicking on the actualize all (Alles aktualisieren) button shown above when the Only ask for administrator rights once for each batch of processes function is activated inside the settings. However, nothing appears in this case...

@marticliment
Copy link
Owner

In that case, UniGetUI elevator prompt will show only when an operation requests rights. If no operation requests UAC rights, then no prompt will be shown

@udobehm
Copy link
Author

udobehm commented Dec 28, 2024

Ok. Can't I configure UniGetUI to always show me that dialogue once when I want to update all my apps (instead of showing me the prompt for each app that needs elevated rights)?

@marticliment
Copy link
Owner

(instead of showing me the prompt for each app that needs elevated rights)?

No, this feature is supposed to show it the first time. The second time an operation requires rights, no prompt should be shown. You should be seeing between 0 and 1 UAC prompts

@udobehm
Copy link
Author

udobehm commented Dec 28, 2024

I see. But this is not working here. When I click the actualize all (alles aktualisieren) button that you see on my pic above, no single UniGetUI elevator promp appears. How can I make this prompt appear once after I click on the actualize all button?

@robertheadley
Copy link

I am seeing the same thing.

@marticliment
Copy link
Owner

I see. But this is not working here. When I click the actualize all (alles aktualisieren) button that you see on my pic above, no single UniGetUI elevator promp appears. How can I make this prompt appear once after I click on the actualize all button?

To do this, you need to enable "Elevate all operations" under Administrator rights settings.

@udobehm
Copy link
Author

udobehm commented Dec 29, 2024

I see. I didn't want to do this as you don't recommend it. Was thinkingbthat the second option there would do the trick

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants