Skip to content

[BUG] Chocolatey not autoelevating vscode update when required #3107

@GeoSimos

Description

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

Windows version, edition, and architecture

Windows 10 Enterprise 22H2 (10.0.19045 Build 19045)

Describe your issue

The new UniGetUI-Branded UAC Elevator doesn't work when running the application as a standard user (non-elevated).

Steps to reproduce the issue

Enable the new UniGetUl-Branded UAC Elevator from the Experimental Settings and restart the application as a standard user.
Let the application update itself a detected package, it will fail with access denied error on the installation path.

UniGetUI Log

[21/12/2024 12:34:13 πμ]    __  __      _ ______     __  __  ______
                           / / / /___  (_) ____/__  / /_/ / / /  _/
                          / / / / __ \/ / / __/ _ \/ __/ / / // /
                         / /_/ / / / / / /_/ /  __/ /_/ /_/ // /
                         \____/_/ /_/_/\____/\___/\__/\____/___/
                             Welcome to UniGetUI Version 3.1.4
[21/12/2024 12:34:13 πμ]
[21/12/2024 12:34:13 πμ] Build 73
[21/12/2024 12:34:13 πμ] Encoding Code Page set to 737
[21/12/2024 12:34:14 πμ] Using built-in UniGetUI Elevator
[21/12/2024 12:34:14 πμ] Loaded language locale: en
[21/12/2024 12:34:14 πμ] Checking for internet connectivity. Pinging google.com, microsoft.com, couldflare.com and marticliment.com
[21/12/2024 12:34:14 πμ] google.com responded successfully to ping, internet connection was validated.
[21/12/2024 12:34:14 πμ] Begin check for updates on endpoint https://www.marticliment.com/versions/unigetui/stable.ver
[21/12/2024 12:34:14 πμ] Lang files were updated successfully from GitHub
[21/12/2024 12:34:14 πμ] Begin "which" search for command npm
[21/12/2024 12:34:14 πμ] Begin "which" search for command winget.exe
[21/12/2024 12:34:14 πμ] Old chocolatey path does not exist, not migrating Chocolatey
[21/12/2024 12:34:14 πμ] Begin "which" search for command choco.exe
[21/12/2024 12:34:15 πμ] Command choco.exe was found on C:\ProgramData\chocolatey\bin\choco.exe
[21/12/2024 12:34:15 πμ] Command npm was not found on the system
[21/12/2024 12:34:15 πμ] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                         █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                         █ Name: Npm
                         █ Enabled: False
                         █ THE MANAGER IS DISABLED
                         ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[21/12/2024 12:34:15 πμ] Begin "which" search for command python.exe
[21/12/2024 12:34:15 πμ] Command winget.exe was found on C:\Users\SouthPark\AppData\Local\Microsoft\WindowsApps\winget.exe
[21/12/2024 12:34:15 πμ] Saving window geometry 2553,380,1922,1025,0
[21/12/2024 12:34:15 πμ] Command python.exe was found on C:\Users\SouthPark\AppData\Local\Programs\Python\Python312\python.exe
[21/12/2024 12:34:15 πμ] Downloaded new icons and screenshots successfully!
[21/12/2024 12:34:15 πμ] Loaded 2 sources for manager Winget
[21/12/2024 12:34:15 πμ] Begin "which" search for command cargo
[21/12/2024 12:34:15 πμ] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                         █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                         █ Name: Winget
                         █ Enabled: True
                         █ Found: True
                         █ Fancy exe name: winget.exe
                         █ Executable path: C:\Users\SouthPark\AppData\Local\Microsoft\WindowsApps\winget.exe
                         █ Call arguments: 
                         █ Version: 
                         █   System WinGet CLI Version: v1.9.25200
                         █   Using Native WinGet helper (COM Api)
                         ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[21/12/2024 12:34:15 πμ] Begin "which" search for command vcpkg
[21/12/2024 12:34:16 πμ] Command cargo was not found on the system
[21/12/2024 12:34:16 πμ] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                         █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                         █ Name: Cargo
                         █ Enabled: True
                         █ Found: False
                         █ THE MANAGER WAS NOT FOUND. PERHAPS IT IS NOT 
                         █ INSTALLED OR IT HAS BEEN MISCONFIGURED 
                         ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[21/12/2024 12:34:16 πμ] Command vcpkg was not found on the system
[21/12/2024 12:34:16 πμ] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                         █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                         █ Name: vcpkg
                         █ Enabled: True
                         █ Found: False
                         █ THE MANAGER WAS NOT FOUND. PERHAPS IT IS NOT 
                         █ INSTALLED OR IT HAS BEEN MISCONFIGURED 
                         ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[21/12/2024 12:34:16 πμ] Begin "which" search for command dotnet.exe
[21/12/2024 12:34:16 πμ] Command dotnet.exe was found on C:\Program Files\dotnet\dotnet.exe
[21/12/2024 12:34:16 πμ] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                         █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                         █ Name: .NET Tool
                         █ Enabled: True
                         █ Found: False
                         █ THE MANAGER WAS NOT FOUND. PERHAPS IT IS NOT 
                         █ INSTALLED OR IT HAS BEEN MISCONFIGURED 
                         ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[21/12/2024 12:34:16 πμ] Got response from endpoint: (73, 3.1.4, 88491C8F11D981F4259833448C1CE631B4F6D8279B69C8DF3AAB5DC3F6B6776E)
[21/12/2024 12:34:16 πμ] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                         █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                         █ Name: Pip
                         █ Enabled: False
                         █ THE MANAGER IS DISABLED
                         ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[21/12/2024 12:34:16 πμ] Begin "which" search for command pwsh.exe
[21/12/2024 12:34:16 πμ] Command pwsh.exe was not found on the system
[21/12/2024 12:34:16 πμ] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                         █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                         █ Name: PowerShell7
                         █ Enabled: True
                         █ Found: False
                         █ THE MANAGER WAS NOT FOUND. PERHAPS IT IS NOT 
                         █ INSTALLED OR IT HAS BEEN MISCONFIGURED 
                         ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[21/12/2024 12:34:16 πμ] Begin "which" search for command scoop
[21/12/2024 12:34:17 πμ] Command scoop was not found on the system
[21/12/2024 12:34:17 πμ] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                         █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                         █ Name: Scoop
                         █ Enabled: False
                         █ THE MANAGER IS DISABLED
                         ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[21/12/2024 12:34:18 πμ] Loaded 1 sources for manager Chocolatey
[21/12/2024 12:34:18 πμ] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                         █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                         █ Name: Chocolatey
                         █ Enabled: True
                         █ Found: True
                         █ Fancy exe name: choco.exe
                         █ Executable path: C:\ProgramData\chocolatey\bin\choco.exe
                         █ Call arguments: 
                         █ Version: 
                         █   2.4.1
                         ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[21/12/2024 12:34:21 πμ] Loaded 1 sources for manager PowerShell
[21/12/2024 12:34:21 πμ] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                         █▀▀▀▀▀▀▀▀▀▀▀▀▀ 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.19041.5247                                                                          
                         █   PSEdition                      Desktop                                                                                 
                         █   PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}                                                                 
                         █   BuildVersion                   10.0.19041.5247                                                                         
                         █   CLRVersion                     4.0.30319.42000                                                                         
                         █   WSManStackVersion              3.0                                                                                     
                         █   PSRemotingProtocolVersion      2.3                                                                                     
                         █   SerializationVersion           1.1.0.1
                         ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[21/12/2024 12:34:21 πμ] LoadComponentsAsync finished executing. All managers loaded. Proceeding to interface.
[21/12/2024 12:34:21 πμ] Manager Chocolatey has not implemented RefreshPackageIndexes
[21/12/2024 12:34:22 πμ] Manager PowerShell has not implemented RefreshPackageIndexes
[21/12/2024 12:34:23 πμ] Found 64 installed packages from Chocolatey
[21/12/2024 12:34:29 πμ] Resetting administrator rights cache for process id 16264
[21/12/2024 12:34:31 πμ] Found 2 available updates from Chocolatey
[21/12/2024 12:34:31 πμ] Found 97 installed packages from PowerShell
[21/12/2024 12:34:32 πμ] Found 0 available updates from Winget
[21/12/2024 12:34:32 πμ] Found 0 installed packages from Winget
[21/12/2024 12:34:33 πμ] Starting package backup
[21/12/2024 12:34:33 πμ] Finished loading serializable objects. Serializing with format JSON
[21/12/2024 12:34:33 πμ] Serialization finished successfully
[21/12/2024 12:34:33 πμ] Backup saved to D:\Data\Users\SouthPark\OneDrive\Documents\UniGetUI\AltsantiriNewz installed packages 2024-12-21 00-34-33.ubundle
[21/12/2024 12:35:22 πμ] Manager PowerShell 5.x failed to list available updates with exception TimeoutException: Task _getInstalledPackages for manager PowerShell did not finish after 60 seconds, aborting.  You may disable timeouts from UniGetUI Advanced Settings
[21/12/2024 12:35:22 πμ] Since this was the first attempt, PowerShell.AttemptFastRepair() will be called and the procedure will be restarted
[21/12/2024 12:35:22 πμ] Manager PowerShell has not implemented RefreshPackageIndexes
[21/12/2024 12:36:03 πμ] Cached icon for id=BurntToast is valid and won't be downloaded again (PackageVersion)
[21/12/2024 12:36:04 πμ] Cached icon for id=Microsoft.WinGet.Client is valid and won't be downloaded again (PackageVersion)
[21/12/2024 12:36:05 πμ] Failed to download the PowerShell manifest at Url=https://www.powershellgallery.com/api/v2/Packages(Id='Particular.ServiceControl.Manage...',Version='5.3.0') with status code NotFound
[21/12/2024 12:36:05 πμ] No manifest content could be loaded for package Particular.ServiceControl.Manage... on manager PowerShell
[21/12/2024 12:36:06 πμ] Cached icon for id=VcRedist is valid and won't be downloaded again (PackageVersion)
[21/12/2024 12:36:22 πμ] Error finding updates on manager PowerShell
[21/12/2024 12:36:22 πμ] System.TimeoutException: Task _getInstalledPackages for manager PowerShell did not finish after 60 seconds, aborting.  You may disable timeouts from UniGetUI Advanced Settings
                            at UniGetUI.PackageEngine.ManagerClasses.Manager.PackageManager._getAvailableUpdates(Boolean SecondAttempt) in C:\SomePrograms\WingetUI-Store\src\UniGetUI.PackageEngine.PackageManagerClasses\Manager\PackageManager.cs:line 204
[21/12/2024 12:36:22 πμ] Starting check for updates wait interval with waitTime=604800

Package Managers Logs

None at the moment.

Relevant information

None.

Screenshots and videos

No response

Metadata

Metadata

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions