marticliment / UniGetUI

UniGetUI: The Graphical Interface for your package managers. Could be terribly described as a package manager manager to manage your package managers
https://www.marticliment.com/unigetui/
MIT License
12.9k stars 443 forks source link

[BUG] Now requires running wingetUI as administrator #1692

Closed NobbyBarnes closed 8 months ago

NobbyBarnes commented 9 months ago

Please confirm these before moving forward

Describe your issue

If a User (account not in the administrators group) runs WingetUI no repositories are available. Installed apps are not listed, nor are any updates listed. If you RunAS 'Administrator' all looks good.

This is a change of operation since sometime in December 2023 Windows 10 22H2

Steps to reproduce the issue

Install latest WinGetUI Logon as User (no admin rights) load WinGetUI unable to search for apps EG: Chrome, No updates showing, installed apps not listed

WingetUI Log

🟑 Using bundled lang file (forced=False)
🟑 Using bundled lang file (forced=True)
πŸ”΅ It took 0.008999347686767578 to load all language files
🟒 checkQueue Thread started!
🟒 Updating outdated language file...
🟒 Using cached lang file
🟑 Chocolatey was not found on the default location, perhaps a portable WingetUI installation?
---------------------------------------------------------------------------------------------------

   WingetUI version 2.2.0 (version number 2.2) log
   All modules loaded successfully and sys.stdout patched correctly, starting main script
   Translator function language set to "en"

---------------------------------------------------------------------------------------------------

 Log legend:
 πŸ”΅: Verbose
 🟒: Information
 🟑: Warning
 🟠: Handled unexpected exception
 πŸ”΄: Unhandled unexpected exception

πŸ”΅ Starting main application...
πŸ”΅ Looking for alive instances...
πŸ”΅ Starting API with random session authentication token 9159676c0da65d5c20db2ef82d75ab81ca10e38223a3b574891dce0a4440afac
🟑 Found lock file(s), reactivating...
πŸ”΅ Reloading Winget sources...
πŸ”΅ Loading WingetUI AUMID...
πŸ”΅ Starting update check
πŸ”΅ Version URL: https://www.marticliment.com/versions/wingetui.ver
🟒 Updates not found
🟒 Downloaded latest metadata to local file from url https://raw.githubusercontent.com/marticliment/WingetUI/main/WebBasedData/screenshot-database-v2.json
πŸ”΅ Loaded metadata from local file
πŸ”΅ Starting Winget source search...
🟒 Winget source search finished with 0 sources
🟒 Found valid aumid {6D809377-6AF0-444B-8957-A3773F02200E}\WingetUI\wingetui.exe
πŸ”΅ Reactivation signal ignored: RaiseWindow_[1704726666.638889]
{'sudoFound': True, 'sudoVersion': 'gsudo v2.0.4 (Branch.tags-v2.0.4.Sha.506efa024af0cef6e4b0cfec42e0c8c5d0b1472c)\r', 'ScoopFound': False, 'ScoopVersion': 'Scoop is disabled', 'PipFound': False, 'PipVersion': 'Pip is disabled', 'NpmFound': False, 'NpmVersion': 'Npm is disabled', '.NET ToolFound': False, '.NET ToolVersion': '.NET Tool is disabled', 'ChocolateyFound': False, 'ChocolateyVersion': '', 'PowerShellFound': False, 'PowerShellVersion': '', 'WingetFound': True, 'WingetVersion': ''}
πŸ”΅ Reached main ui load milestone
🟒 Discover tab loaded successfully
🟒 Total packages: 0
🟒 Update tab loaded successfully
πŸ”΅ Reloading sources...
πŸ”΅ Reloading Winget sources...
πŸ”΅ Reloading sources...
πŸ”΅ Reloading Winget sources...
πŸ”΅ Reloading sources...
πŸ”΅ Reloading Winget sources...
🟒 Searching for string ""
πŸ”΅ Reloading Scoop sources...
πŸ”΅ Reloading Scoop sources...
πŸ”΅ Reloading Scoop sources...
🟒 Uninstall tab loaded successfully
πŸ”΅ Starting Winget search for installed packages
πŸ”΅ Starting Chocolatey search for installed packages
πŸ”΅ Starting PowerShell search for installed packages
🟒 Searching for string ""
🟒 Chocolatey search for installed packages finished with 1 result(s)
🟠 Chocolatey got too few installed packages, retrying
πŸ”΅ Starting Chocolatey search for installed packages
🟒 Winget search for installed packages finished with 0 result(s)
🟠 Chocolatey got too few installed packages, retrying
πŸ”΅ Starting Winget search for installed packages
🟒 Chocolatey search for installed packages finished with 1 result(s)
🟒 Winget search for installed packages finished with 0 result(s)
πŸ”΅ Starting Winget source search...
πŸ”΅ Starting Scoop source search...
πŸ”΅ Starting Chocolatey source search...
🟒 Winget source search finished with 0 sources
πŸ”΅ Starting PowerShell source search...
🟒 Settings tab loaded!
🟒 Chocolatey source search finished with 0 sources
🟒 About tab loaded!
Win32Mica Error: win32 version 19045 is not supported
🟒 Scoop source search finished with 0 sources
Win32Mica Error: win32 version 19045 is not supported
🟒 Main application loaded...
🟒 PowerShell search for installed packages finished with 0 result(s)
🟒 Total packages: 0
🟒 Total packages: 0
🟒 Total packages: 0
🟒 Searching for string ""
🟒 Searching for string ""
🟒 Total packages: 0
🟒 Searching for string ""
🟒 Searching for string ""
🟒 Total packages: 0
Traceback (most recent call last):
  File ".\Interface\CustomWidgets\InstallerWidgets.py", line 669, in <lambda>
TypeError: 'NoneType' object is not callable
🟒 Searching for string ""
🟒 Searching for string ""
🟒 Total packages: 0
πŸ”΅ Starting Chocolatey search for updates
🟒 Chocolatey search for updates finished with 0 result(s)
🟒 Searching for string ""
🟒 PowerShell source search finished with 1 sources
πŸ”΅ Starting Winget search for updates
πŸ”΅ Starting PowerShell source search...
🟒 Winget search for updates finished with 0 result(s)
🟒 Searching for string ""
🟒 PowerShell source search finished with 1 sources
πŸ”΅ Starting PowerShell search for updates
🟒 PowerShell search for updates finished with 0 result(s)
🟒 Searching for string ""
🟒 Searching for string ""
🟑 Can't get custom interval time! (got value was '')
🟒 Total packages: 0
🟒 Found reactivation lock file...
πŸ”΅ Starting Winget search for installed packages
πŸ”΅ Starting Chocolatey search for installed packages
πŸ”΅ Starting PowerShell search for installed packages
🟒 Searching for string ""
🟒 Chocolatey search for installed packages finished with 1 result(s)
🟠 Chocolatey got too few installed packages, retrying
πŸ”΅ Starting Chocolatey search for installed packages
🟒 Winget search for installed packages finished with 0 result(s)
🟠 Chocolatey got too few installed packages, retrying
πŸ”΅ Starting Winget search for installed packages
🟒 Chocolatey search for installed packages finished with 1 result(s)
🟒 Searching for string ""
🟒 Winget search for installed packages finished with 0 result(s)
🟒 Searching for string ""
🟒 PowerShell search for installed packages finished with 0 result(s)
🟒 Searching for string ""
🟒 Searching for string ""
🟒 Total packages: 0
πŸ”΅ Starting Winget source search...
πŸ”΅ Starting Scoop source search...
πŸ”΅ Starting Chocolatey source search...
πŸ”΅ Starting PowerShell source search...
Traceback (most recent call last):
  File ".\Interface\CustomWidgets\InstallerWidgets.py", line 669, in <lambda>
TypeError: 'NoneType' object is not callable
🟒 Chocolatey source search finished with 0 sources
🟒 Winget source search finished with 0 sources
πŸ”΅ Announcement URL: https://www.marticliment.com/resources/wingetui.announcement
πŸ”΅ Image URL: https://www.marticliment.com/resources/wingetui.png
🟠 Unable to retrieve announcement image
πŸ”΄  Traceback (most recent call last):

πŸ”΄  Traceback (most recent call last):

πŸ”΄    File ".\Interface\CustomWidgets\SpecificWidgets.py", line 403, in loadAnnouncements

πŸ”΄    File ".\Interface\CustomWidgets\SpecificWidgets.py", line 403, in loadAnnouncements

πŸ”΄  FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\DavidBarnes\\AppData/Local/WingetUI/CachedIcons\\announcement.png'

πŸ”΄  FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\DavidBarnes\\AppData/Local/WingetUI/CachedIcons\\announcement.png'

πŸ”΄ Note this traceback was caught by reporter and has been added to the log ([Errno 2] No such file or directory: 'C:\\Users\\DavidBarnes\\AppData/Local/WingetUI/CachedIcons\\announcement.png')
🟒 Scoop source search finished with 1 sources
🟒 PowerShell source search finished with 1 sources
🟒 Found reactivation lock file...
πŸ”΅ Starting Winget source search...
πŸ”΅ Starting Scoop source search...
πŸ”΅ Starting Chocolatey source search...
πŸ”΅ Starting PowerShell source search...
πŸ”΅ Starting Winget search for installed packages
πŸ”΅ Starting Chocolatey search for installed packages
πŸ”΅ Starting PowerShell search for installed packages
🟒 Searching for string ""
Traceback (most recent call last):
  File ".\Interface\CustomWidgets\InstallerWidgets.py", line 669, in <lambda>
TypeError: 'NoneType' object is not callable
πŸ”΅ Announcement URL: https://www.marticliment.com/resources/wingetui.announcement
🟒 Chocolatey source search finished with 0 sources
🟒 Winget source search finished with 0 sources
🟒 Chocolatey search for installed packages finished with 1 result(s)
🟠 Chocolatey got too few installed packages, retrying
πŸ”΅ Starting Chocolatey search for installed packages
πŸ”΅ Image URL: https://www.marticliment.com/resources/wingetui.png
🟠 Unable to retrieve announcement image
πŸ”΄  Traceback (most recent call last):

πŸ”΄  Traceback (most recent call last):

πŸ”΄    File ".\Interface\CustomWidgets\SpecificWidgets.py", line 403, in loadAnnouncements

πŸ”΄    File ".\Interface\CustomWidgets\SpecificWidgets.py", line 403, in loadAnnouncements

πŸ”΄  FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\DavidBarnes\\AppData/Local/WingetUI/CachedIcons\\announcement.png'

πŸ”΄  FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\DavidBarnes\\AppData/Local/WingetUI/CachedIcons\\announcement.png'

πŸ”΄ Note this traceback was caught by reporter and has been added to the log ([Errno 2] No such file or directory: 'C:\\Users\\DavidBarnes\\AppData/Local/WingetUI/CachedIcons\\announcement.png')
πŸ”΅ Announcement URL: https://www.marticliment.com/resources/wingetui.announcement
🟒 Winget search for installed packages finished with 0 result(s)
🟠 Chocolatey got too few installed packages, retrying
πŸ”΅ Starting Winget search for installed packages
πŸ”΅ Image URL: https://www.marticliment.com/resources/wingetui.png
🟠 Unable to retrieve announcement image
πŸ”΄  Traceback (most recent call last):

πŸ”΄  Traceback (most recent call last):

πŸ”΄    File ".\Interface\CustomWidgets\SpecificWidgets.py", line 403, in loadAnnouncements

πŸ”΄    File ".\Interface\CustomWidgets\SpecificWidgets.py", line 403, in loadAnnouncements

πŸ”΄  FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\DavidBarnes\\AppData/Local/WingetUI/CachedIcons\\announcement.png'

πŸ”΄  FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\DavidBarnes\\AppData/Local/WingetUI/CachedIcons\\announcement.png'

πŸ”΄ Note this traceback was caught by reporter and has been added to the log ([Errno 2] No such file or directory: 'C:\\Users\\DavidBarnes\\AppData/Local/WingetUI/CachedIcons\\announcement.png')
🟒 Chocolatey search for installed packages finished with 1 result(s)
🟒 Searching for string ""
🟒 Winget search for installed packages finished with 0 result(s)
🟒 Searching for string ""
🟒 Scoop source search finished with 1 sources
🟒 PowerShell search for installed packages finished with 0 result(s)
🟒 Searching for string ""
🟒 Searching for string ""
🟒 Total packages: 0
🟒 PowerShell source search finished with 1 sources
πŸ”΅ Starting Winget source search...
🟒 Winget source search finished with 0 sources
πŸ”΅ Starting Winget source search...
🟒 Winget source search finished with 0 sources
πŸ”΅ Starting update check
πŸ”΅ Version URL: https://www.marticliment.com/versions/wingetui.ver
🟒 Updates not found
🟒 Waiting for install permission... title=C:\Program, id=C:\Program, installId=1704727392.0326
πŸ”΅ Given package: <Package: C:\Program;C:\Program;;Winget;<wingetui.PackageEngine.Managers.winget.WingetPackageManager object at 0x00000174ACD6F1D0>;<wingetui.Interface.CustomWidgets.SpecificWidgets.PackageItem object at 0x00000174ADDB5BC0>>
πŸ”΅ Installation options: <InstallationOptions: SkipHashCheck=False;InteractiveInstallation=False;RunAsAdministrator=False;Version=;Architecture=;InstallationScope=;CustomParameters=[];RemoveDataOnUninstall=False>
Win32Mica Error: win32 version 19045 is not supported
πŸ”΅ Found icon:  
🟑 Icon url empty
🟑 Icon  not found in json (KeyError)
🟑 Icon for C:\Program does not exist
πŸ”΅ Current program set to 1704727392.0326
🟒 Have permission to install, starting installation threads...
πŸ”΅ Starting source C:\Program installation with Command ['C:\\Program Files\\WingetUI\\wingetui\\components\\gsudo.exe', 'C:\\Program Files\\WingetUI\\wingetui\\PackageEngine/Managers\\winget-cli_x64\\winget.exe', 'source', 'add', '--name', 'C:\\Program', '--arg', 'Files\\WingetUI\\wingetui\\PackageEngine\\Managers\\winget-cli_x64\\winget.exe', '--accept-source-agreements', '--disable-interactivity']
.\PackageEngine\Managers\winget.py:809: RuntimeWarning: libshiboken: Overflow: Value 2147942403 exceeds limits of type  [signed] "int" (4bytes).
OverflowError
['Adding source:', 'C:\\Program -> Files\\WingetUI\\wingetui\\PackageEngine\\Managers\\winget-cli_x64\\winget.exe', 'An unexpected error occurred while executing the command:', '0x80070003 : unknown error', '']
Win32Mica Error: win32 version 19045 is not supported
πŸ”΅ Starting Winget source search...
🟒 Winget source search finished with 0 sources
🟒 Waiting for install permission... title="C:\Program, id="C:\Program, installId=1704727448.494437
πŸ”΅ Given package: <Package: "C:\Program;"C:\Program;;Winget;<wingetui.PackageEngine.Managers.winget.WingetPackageManager object at 0x00000174ACD6F1D0>;<wingetui.Interface.CustomWidgets.SpecificWidgets.PackageItem object at 0x00000174ADD972C0>>
πŸ”΅ Installation options: <InstallationOptions: SkipHashCheck=False;InteractiveInstallation=False;RunAsAdministrator=False;Version=;Architecture=;InstallationScope=;CustomParameters=[];RemoveDataOnUninstall=False>
πŸ”΅ Found icon:  
🟑 Icon url empty
🟑 Icon  not found in json (KeyError)
🟑 Icon for "C:\Program does not exist
Win32Mica Error: win32 version 19045 is not supported
πŸ”΅ Current program set to 1704727448.494437
🟒 Have permission to install, starting installation threads...
πŸ”΅ Starting source "C:\Program installation with Command ['C:\\Program Files\\WingetUI\\wingetui\\components\\gsudo.exe', 'C:\\Program Files\\WingetUI\\wingetui\\PackageEngine/Managers\\winget-cli_x64\\winget.exe', 'source', 'add', '--name', '"C:\\Program', '--arg', 'Files\\WingetUI\\wingetui\\PackageEngine\\Managers\\winget-cli_x64\\winget.exe"', '--accept-source-agreements', '--disable-interactivity']
OverflowError
['Adding source:', '"C:\\Program -> Files\\WingetUI\\wingetui\\PackageEngine\\Managers\\winget-cli_x64\\winget.exe"', 'An unexpected error occurred while executing the command:', '0x80070003 : unknown error', '']
Win32Mica Error: win32 version 19045 is not supported
πŸ”΅ Starting Winget source search...
🟒 Winget source search finished with 0 sources
πŸ”΅ Sending cancel signal...
πŸ”΅ Sending cancel signal...
🟒 Found reactivation lock file...
πŸ”΅ Starting Winget source search...
πŸ”΅ Starting Scoop source search...
πŸ”΅ Starting Chocolatey source search...
πŸ”΅ Starting PowerShell source search...
πŸ”΅ Starting Winget search for installed packages
πŸ”΅ Starting Chocolatey search for installed packages
πŸ”΅ Starting PowerShell search for installed packages
🟒 Searching for string ""
Traceback (most recent call last):
  File ".\Interface\CustomWidgets\InstallerWidgets.py", line 669, in <lambda>
TypeError: 'NoneType' object is not callable
πŸ”΅ Announcement URL: https://www.marticliment.com/resources/wingetui.announcement
🟒 Chocolatey search for installed packages finished with 1 result(s)
🟠 Chocolatey got too few installed packages, retrying
πŸ”΅ Starting Chocolatey search for installed packages
🟒 Chocolatey source search finished with 0 sources
🟒 Winget source search finished with 0 sources
πŸ”΅ Image URL: https://www.marticliment.com/resources/wingetui.png
πŸ”΅ Announcement URL: https://www.marticliment.com/resources/wingetui.announcement
πŸ”΅ Image URL: https://www.marticliment.com/resources/wingetui.png
🟒 Winget search for installed packages finished with 0 result(s)
🟠 Chocolatey got too few installed packages, retrying
πŸ”΅ Starting Winget search for installed packages
🟒 Chocolatey search for installed packages finished with 1 result(s)
🟒 Searching for string ""
🟒 Winget search for installed packages finished with 0 result(s)
🟒 Searching for string ""
🟒 Scoop source search finished with 1 sources
🟒 PowerShell search for installed packages finished with 0 result(s)
🟒 Searching for string ""
🟒 Searching for string ""
🟒 Total packages: 0
🟒 PowerShell source search finished with 1 sources
Traceback (most recent call last):
  File ".\Interface\CustomWidgets\InstallerWidgets.py", line 797, in InstallSource
IndexError: list index out of range
🟒 Waiting for install permission... title=winget, id=winget, installId=1704727674.4208782
πŸ”΅ Given package: <Package: winget;winget;;Winget;<wingetui.PackageEngine.Managers.winget.WingetPackageManager object at 0x00000174ACD6F1D0>;<wingetui.Interface.CustomWidgets.SpecificWidgets.PackageItem object at 0x00000174ADDB0CC0>>
πŸ”΅ Installation options: <InstallationOptions: SkipHashCheck=False;InteractiveInstallation=False;RunAsAdministrator=False;Version=;Architecture=;InstallationScope=;CustomParameters=[];RemoveDataOnUninstall=False>
πŸ”΅ Found icon:  
🟑 Icon url empty
🟑 Icon  not found in json (KeyError)
Win32Mica Error: win32 version 19045 is not supported
🟑 Icon for winget does not exist
πŸ”΅ Current program set to 1704727674.4208782
🟒 Have permission to install, starting installation threads...
πŸ”΅ Starting source winget installation with Command ['C:\\Program Files\\WingetUI\\wingetui\\components\\gsudo.exe', 'C:\\Program Files\\WingetUI\\wingetui\\PackageEngine/Managers\\winget-cli_x64\\winget.exe', 'source', 'add', '--name', 'winget', '--arg', 'https://cdn.winget.microsoft.com/cache', '--accept-source-agreements', '--disable-interactivity']
.\PackageEngine\Managers\winget.py:809: RuntimeWarning: libshiboken: Overflow: Value 2316632076 exceeds limits of type  [signed] "int" (4bytes).
OverflowError
['A source with the given name already exists and refers to the same location:', 'winget -> https://cdn.winget.microsoft.com/cache', '']
Win32Mica Error: win32 version 19045 is not supported
πŸ”΅ Starting Winget source search...
🟒 Winget source search finished with 0 sources
πŸ”΅ Starting update check
πŸ”΅ Version URL: https://www.marticliment.com/versions/wingetui.ver
🟒 Updates not found
πŸ”΅ Starting update check
πŸ”΅ Version URL: https://www.marticliment.com/versions/wingetui.ver
🟒 Updates not found
🟒 Found reactivation lock file...
πŸ”΅ Starting Winget source search...
πŸ”΅ Starting Scoop source search...
πŸ”΅ Starting Chocolatey source search...
πŸ”΅ Starting PowerShell source search...
πŸ”΅ Starting Winget search for installed packages
πŸ”΅ Starting Chocolatey search for installed packages
πŸ”΅ Starting PowerShell search for installed packages
🟒 Searching for string ""
πŸ”΅ Announcement URL: https://www.marticliment.com/resources/wingetui.announcement
🟒 Chocolatey source search finished with 0 sources
Traceback (most recent call last):
  File ".\Interface\CustomWidgets\InstallerWidgets.py", line 669, in <lambda>
TypeError: 'NoneType' object is not callable
πŸ”΅ Image URL: https://www.marticliment.com/resources/wingetui.png
πŸ”΅ Announcement URL: https://www.marticliment.com/resources/wingetui.announcement
πŸ”΅ Image URL: https://www.marticliment.com/resources/wingetui.png
🟒 Chocolatey search for installed packages finished with 1 result(s)
🟠 Chocolatey got too few installed packages, retrying
πŸ”΅ Starting Chocolatey search for installed packages
🟒 Winget search for installed packages finished with 0 result(s)
🟠 Chocolatey got too few installed packages, retrying
πŸ”΅ Starting Winget search for installed packages
🟒 Winget source search finished with 0 sources
🟒 Chocolatey search for installed packages finished with 1 result(s)
🟒 Searching for string ""
🟒 Winget search for installed packages finished with 0 result(s)
🟒 Searching for string ""
🟒 Scoop source search finished with 1 sources
🟒 PowerShell search for installed packages finished with 0 result(s)
🟒 Searching for string ""
🟒 Searching for string ""
🟒 Total packages: 0
🟒 PowerShell source search finished with 1 sources
πŸ”΅ Loading WingetUI log...
πŸ”΅ Loading WingetUI log...
πŸ”΅ Loading WingetUI log...
πŸ”΅ Loading WingetUI log...
πŸ”΅ Loading WingetUI log...
πŸ”΅ Sending cancel signal...
🟒 Searching for string "c"
🟒 Searching for string "ch"
πŸ”΅ Loading dynamic packages for query ch
πŸ”΅ Searching packages on chocolatey for query ch
πŸ”΅ Starting Winget search for dynamic packages
πŸ”΅ Starting PowerShell query search
🟒 Winget search for updates finished with 0 result(s)
🟒 Searching for string "chr"
🟒 Searching for string "chro"
🟒 Searching for string "chrom"
🟒 Searching for string "chrome"
πŸ”΅ Loading dynamic packages for query chrome
πŸ”΅ Searching packages on chocolatey for query chrome
πŸ”΅ Starting Winget search for dynamic packages
πŸ”΅ Starting PowerShell query search
🟒 Winget search for updates finished with 0 result(s)
🟒 Searching for string "chrome"
🟒 Searching for string "chrome"
πŸ”΅ Loading operation log...
πŸ”΅ Loading WingetUI log...
🟒 Searching for string ""
🟒 Searching for string ""
πŸ”΅ Loading WingetUI log...
πŸ”΅ Copying log to the clipboard...
πŸ”΅ Loading WingetUI log...

Package Managers Logs

Outputs from package managers on the current session:
 ---------Chocolatey
The system cannot find the path specified.

---------Winget---------Chocolatey
The system cannot find the path specified.---------Winget------------------Chocolatey
The system cannot find the path specified.---------Winget---------
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

Try the new cross-platform PowerShell https://aka.ms/pscore6

PS C:\Users\DavidBarnes> 
PS C:\Users\DavidBarnes>         function Test-GalleryModuleUpdate
>>         {
>>             param
>>             (
>>                 [Parameter(Mandatory,ValueFromPipelineByPropertyName)]
>>                 [string]
>>                 $Name,
>> 
>>                 [Parameter(Mandatory,ValueFromPipelineByPropertyName)]
>>                 [version]
>>                 $Version,
>> 
>>                 [Parameter(Mandatory,ValueFromPipelineByPropertyName)]
>>                 [string]
>>                 $Repository,
>> 
>>                 [switch]
>>                 $NeedUpdateOnly
>>             )
>> 
>>             process
>>             {
>> 
>> 
>>                 $URLs = @{"PSGallery" = "https://www.powershellgallery.com/api/v2";}
>> 
>>                 $page = Invoke-WebRequest -Uri ($URLs[$Repository] + "/package/$Name") -UseBasicParsing -Maximum 0 -ea Ignore
>>                 [version]$latest = Split-Path -Path ($page.Headers.Location -replace "$Name." -replace ".nupkg") -Leaf
>>                 $needsupdate = $Latest -gt $Version
>> 
>>                 if ($needsupdate)
>>                 {
>>                     Write-Output ($Name + "|" + $Version.ToString() + "|" + $Latest.ToString() + "|" + $Repository)
>>                 }
>>             }
>>         }
>> 
PS C:\Users\DavidBarnes>         Get-InstalledModule | Test-GalleryModuleUpdate
PS C:\Users\DavidBarnes>         exit---------Chocolatey
The system cannot find the path specified.---------Winget

---------Chocolatey
The system cannot find the path specified.---------Winget---------

---------Chocolatey
The system cannot find the path specified.
---------Winget

---------Chocolatey
The system cannot find the path specified.---------Winget------------------Chocolatey
The system cannot find the path specified.

---------Winget
---------Chocolatey
The system cannot find the path specified.
---------Winget
---------
---------Chocolatey
The system cannot find the path specified.

---------Winget
---------Chocolatey
The system cannot find the path specified.---------Winget
---------------- Winget query ch

------- Winget query chrome

---------Chocolatey
The system cannot find the path specified.

---------Winget
---------Chocolatey
The system cannot find the path specified.
---------Winget
---------

Relevant information

No response

Screenshots and videos

image

As 'User': image

As 'Administrator' image

image

marticliment commented 9 months ago

This is an issue with WingetUI 2.2.0.

Please disable automatic WingetUI updates from the settings and install WingetUI 2.1.1

thomas315 commented 9 months ago

Same issue for me but I can see Chocolatey packages at least. Uninstalling WingetUI 2.2.0 and using WingetUI 2.1.1 doesn't fix the issue for me.

gilromano commented 9 months ago

I have the same issue, and downgrading to WingetUI 2.1.1 doesn't solve it for me either. Forcing the use of the system winget via the "experimental" wingetui settings DOES resolve the problem for me.

marticliment commented 9 months ago

Hello,

Please try deleting the C:\Users\%USERNAME%\AppData\Local\Microsoft\WinGet\Settings\defaultState\sources_metadata file

gilromano commented 9 months ago

In file explorer, as I traversed down the path, it asked for UAC elevation in order to view the β€œdefaultState” directory (elevation not required prior to that). The defaultState directory was completely empty, so no β€œsources_metadata” file to delete.


Gil Romano @.> @.

From: MartΓ­ Climent @.> Sent: Friday, January 19, 2024 8:30 AM To: marticliment/WingetUI @.> Cc: gilromano @.>; Comment @.> Subject: Re: [marticliment/WingetUI] [BUG] Now requires running wingetUI as administrator (Issue #1692)

Hello, Please try deleting the C:\Users%USERNAME%\AppData\Local\Microsoft\WinGet\Settings\defaultState\sources_metadata file β€” Reply to this email directly, view it on GitHub https://github.com/marticliment/WingetUI/issues/1692#issuecomment-1900725650 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AANPS6FJFPDGNJE52MXQJQDYPKNQXAVCNFSM6AAAAABBRVQC7SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBQG4ZDKNRVGA . You are receiving this because you commented. https://github.com/notifications/beacon/AANPS6ANBTWGPGOUMYEQTFDYPKNQXA5CNFSM6AAAAABBRVQC7SWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTRJLCZE.gif Message ID: @. @.> >

marticliment commented 9 months ago

Then try to remove the defaultState folder and any other folder that requires UAC

gilromano commented 9 months ago

That worked!

  1. Deleted the empty and UAC protected directory C:\Users\Gil\AppData\Local\Microsoft\WinGet\Settings\defaultState
  2. Started WingetUI and turned off the setting to use the system winget
  3. Restarted WingetUI, which recreated the defaultState directory and the contained sources_metadata file. The defaultState directory no longer requires UAC to view
  4. Installed apps now show up

Gil Romano @.> @.

From: MartΓ­ Climent @.> Sent: Friday, January 19, 2024 9:04 AM To: marticliment/WingetUI @.> Cc: gilromano @.>; Comment @.> Subject: Re: [marticliment/WingetUI] [BUG] Now requires running wingetUI as administrator (Issue #1692)

Then try to remove the defaultState folder and any other folder that requires UAC β€” Reply to this email directly, view it on GitHub https://github.com/marticliment/WingetUI/issues/1692#issuecomment-1900774643 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AANPS6D4TDLFSXOSDYSTDFDYPKRQNAVCNFSM6AAAAABBRVQC7SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBQG43TINRUGM . You are receiving this because you commented. https://github.com/notifications/beacon/AANPS6FTHFCOYTRZUBUUYZLYPKRQNA5CNFSM6AAAAABBRVQC7SWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTRJOCPG.gif Message ID: @. @.> >

marticliment commented 9 months ago

Perfect!

marticliment commented 9 months ago

I will try to add an automated script that performs those actions

gilromano commented 9 months ago

After deleting defaultState and disabling system winget, the winget sources work again.

I now tried enabling chocolatey again (which did work previously when system winget was enabled), and I’m now getting no sources and the error β€œThe system cannot find the path specified”.

I noticed that the operation log and the top of the Chocolatey Preferences panel show an incorrect path: Incorrect Path: C:\Program Files\WingetUI\wingetui\choco-cli\choco.exe Correct Path (after clean install of v2.2.0): C:\Program Files\WingetUI\choco-cli\choco.exe


Operation: installation - Perform date 2024-01-19 10:10:48.591580 Package: <Package: chocolatey;chocolatey;;Chocolatey;<wingetui.PackageEngine.Managers.choco.ChocoPackageManager object at 0x0000028D5667DB50>;<wingetui.Interface.CustomWidgets.SpecificWidgets.PackageItem object at 0x0000028D71774040>> Command-line call: "C:\Program Files\WingetUI\wingetui\choco-cli\choco.exe source add --name chocolatey --source https://community.chocolatey.org/api/v2/ -y" Output code: 1 Console output: | The system cannot find the path specified.

I’m running v2.2.0


Gil Romano @.> @.

From: MartΓ­ Climent @.> Sent: Friday, January 19, 2024 9:20 AM To: marticliment/WingetUI @.> Cc: gilromano @.>; Comment @.> Subject: Re: [marticliment/WingetUI] [BUG] Now requires running wingetUI as administrator (Issue #1692)

I will try to add an automated script that performs those actions β€” Reply to this email directly, view it on GitHub https://github.com/marticliment/WingetUI/issues/1692#issuecomment-1900798222 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AANPS6CI5LKBKBNFE2U2LILYPKTNPAVCNFSM6AAAAABBRVQC7SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBQG44TQMRSGI . You are receiving this because you commented. https://github.com/notifications/beacon/AANPS6GXEDZQVKLUKEXHKLLYPKTNPA5CNFSM6AAAAABBRVQC7SWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTRJPQQ4.gif Message ID: @. @.> >

captainfalcon23 commented 9 months ago

Tried the advice to delete the defaulttate folder, but still have the same issue. Also tried upgrading to latest 2.2.0 and still cannot load any packages :(

captainfalcon23 commented 9 months ago

Tried also uninstalling and reinstalling, and same issue.

marticliment commented 9 months ago

@captainfalcon23, does system winget work for you?

marticliment commented 9 months ago

@gilromano, can you try enabling system chocolatey?

captainfalcon23 commented 9 months ago

@marticliment It seems to work with system winget on ver 2.1.0. Should I upgrade to latest and see? Should we even be using system winget?

marticliment commented 9 months ago

Maybe you can give version 2.2.0 a try

Should we even be using system winget?

You should not, but if bundled winget does not is always an alternative

llvs commented 9 months ago

Sounds like the temporary files issue here. Please check if it also applies to you.

captainfalcon23 commented 9 months ago

Yep, cleaning up the temp dir worked for me