UniGetUI icon indicating copy to clipboard operation
UniGetUI copied to clipboard

Chocolatey was not found after UnigetUI installation using chocolatey

Open roell-f opened this issue 6 months ago • 4 comments

Please confirm these before moving forward

  • [x] I have searched for my issue and have not found a work-in-progress/duplicate/resolved issue.
  • [x] I have tested that this issue has not been fixed in the latest (beta or stable) release.
  • [x] I have checked the FAQ section for solutions.
  • [x] This issue is about a bug (if it is not, please use the correct template).

UniGetUI Version

3.2.0

Windows version, edition, and architecture

Windows 11 pro 10.0.26100.4349 x64

Describe your issue

after a fresh installtion of UniGetUI by chocolatey i obtain the message "The executable file for Chocolatey was not found", but indeed chocolatey is installed, because I used it to install UniGetUI.

while writing the error report, i discovered that the problem can be solved by activating the “Use system Chocolatey” slide switch (see section “screenshots” below ).

i suggest: a) to leave this report here for documentation purposes. b) that UNiGetUI searches for chocolatey during setup and automatically activates the above-mentioned slide switch if it is found.

Steps to reproduce the issue

  1. Install a fresh Windows 11.
  2. Install chocolatey ([https://chocolatey.org/install#individual](Install Chocolatey for Individual Use).
  3. Open elevated cmd.exe.
  4. Run "choco install wingetui".
  5. double-click icon "UniGetUI"
  6. go to "package manager preferences"
  7. go to "chocolatey settings"

UniGetUI Log

[16.06.2025 16:06:20]    __  __      _ ______     __  __  ______
                        / / / /___  (_) ____/__  / /_/ / / /  _/
                       / / / / __ \/ / / __/ _ \/ __/ / / // /
                      / /_/ / / / / / /_/ /  __/ /_/ /_/ // /
                      \____/_/ /_/_/\____/\___/\__/\____/___/
                          Welcome to UniGetUI Version 3.2.0
[16.06.2025 16:06:20]
[16.06.2025 16:06:20] Build 90
[16.06.2025 16:06:20] Data directory C:\Users\root\AppData\Local\UniGetUI
[16.06.2025 16:06:20] Encoding Code Page set to 850
[16.06.2025 16:06:21] Using built-in UniGetUI Elevator at C:\Program Files\UniGetUI\Assets\Utilities\UniGetUI Elevator.exe
[16.06.2025 16:06:21] Tried to access a non-existing cached language file! file=C:\Users\root\AppData\Local\UniGetUI\CachedLanguageFiles\lang_en.json
[16.06.2025 16:06:21] Loaded language locale: en
[16.06.2025 16:06:22] Checking for internet connectivity...
[16.06.2025 16:06:22] DWM Thread was already running
[16.06.2025 16:06:22] XAML Thread was already running
[16.06.2025 16:06:22] Internet connectivity was established.
[16.06.2025 16:06:22] DWM Thread was already running
[16.06.2025 16:06:22] XAML Thread was already running
[16.06.2025 16:06:22] Randomly-generated background API auth token: lngomtsrhpwkueux1lux2b6eeoy1slml8s9y0uns80x58cqbgbi0fkx88xk9ndwj
[16.06.2025 16:06:23] Api running on http://localhost:7058
[16.06.2025 16:06:24] Begin "which" search for command winget.exe
[16.06.2025 16:06:24] Begin "which" search for command npm
[16.06.2025 16:06:24] Old chocolatey path does not exist, not migrating Chocolatey
[16.06.2025 16:06:24] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                      █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                      █ Name: Chocolatey
                      █ Enabled: True
                      █ Found: False
                      █ THE MANAGER WAS NOT FOUND. PERHAPS IT IS NOT 
                      █ INSTALLED OR IT HAS BEEN MISCONFIGURED 
                      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[16.06.2025 16:06:24] Begin "which" search for command python.exe
[16.06.2025 16:06:24] Lang files were updated successfully from GitHub
[16.06.2025 16:06:24] Begin check for updates on endpoint https://www.marticliment.com/versions/unigetui/stable.ver
[16.06.2025 16:06:24] Saving window geometry -12,-12,3864,2100,1
[16.06.2025 16:06:24] Command python.exe was found on C:\Users\root\AppData\Local\Microsoft\WindowsApps\python.exe
[16.06.2025 16:06:24] Command winget.exe was found on C:\Users\root\AppData\Local\Microsoft\WindowsApps\winget.exe
[16.06.2025 16:06:24] Command npm was not found on the system
[16.06.2025 16:06:24] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                      █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                      █ Name: Npm
                      █ Enabled: False
                      █ THE MANAGER IS DISABLED
                      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[16.06.2025 16:06:24] Begin "which" search for command cargo
[16.06.2025 16:06:24] Command cargo was not found on the system
[16.06.2025 16:06:24] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                      █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                      █ Name: Cargo
                      █ Enabled: False
                      █ THE MANAGER IS DISABLED
                      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[16.06.2025 16:06:24] Begin "which" search for command vcpkg
[16.06.2025 16:06:24] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                      █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                      █ Name: Pip
                      █ Enabled: False
                      █ THE MANAGER IS DISABLED
                      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[16.06.2025 16:06:24] Begin "which" search for command dotnet.exe
[16.06.2025 16:06:24] Command vcpkg was not found on the system
[16.06.2025 16:06:24] Begin "which" search for command vcpkg
[16.06.2025 16:06:24] Command dotnet.exe was found on C:\Program Files\dotnet\dotnet.exe
[16.06.2025 16:06:24] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                      █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                      █ Name: .NET Tool
                      █ Enabled: False
                      █ THE MANAGER IS DISABLED
                      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[16.06.2025 16:06:24] Begin "which" search for command pwsh.exe
[16.06.2025 16:06:24] Command vcpkg was not found on the system
[16.06.2025 16:06:24] Begin "which" search for command vcpkg
[16.06.2025 16:06:24] Command pwsh.exe was not found on the system
[16.06.2025 16:06:24] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                      █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                      █ Name: PowerShell7
                      █ Enabled: False
                      █ THE MANAGER IS DISABLED
                      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[16.06.2025 16:06:24] Command vcpkg was not found on the system
[16.06.2025 16:06:24] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                      █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                      █ Name: vcpkg
                      █ Enabled: False
                      █ THE MANAGER IS DISABLED
                      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[16.06.2025 16:06:24] Downloaded new icons and screenshots successfully!
[16.06.2025 16:06:24] Loaded 2 sources for manager Winget
[16.06.2025 16:06:24] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                      █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                      █ Name: Winget
                      █ Enabled: True
                      █ Found: True
                      █ Fancy exe name: winget.exe
                      █ Executable path: C:\Users\root\AppData\Local\Microsoft\WindowsApps\winget.exe
                      █ Call arguments: 
                      █ Version: 
                      █   System WinGet CLI Version: v1.10.390
                      █   Using Native WinGet helper (COM Api)
                      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[16.06.2025 16:06:24] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                      █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                      █ Name: PowerShell
                      █ Enabled: False
                      █ THE MANAGER IS DISABLED
                      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[16.06.2025 16:06:25] Got response from endpoint: (90, 3.2.0, 9674CB060A769236DFA037A4DA485F79B650CCEBEFD5AD1AF5C12E436BDC0A67)
[16.06.2025 16:06:26] Begin "which" search for command scoop
[16.06.2025 16:06:27] Command scoop was not found on the system
[16.06.2025 16:06:27] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                      █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                      █ Name: Scoop
                      █ Enabled: False
                      █ THE MANAGER IS DISABLED
                      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[16.06.2025 16:06:27] Checking for internet connectivity...
[16.06.2025 16:06:27] LoadComponentsAsync finished executing. All managers loaded. Proceeding to interface.
[16.06.2025 16:06:27] Internet connectivity was established.
[16.06.2025 16:06:30] Found 2 available updates from Winget
[16.06.2025 16:06:30] Found 139 installed packages from Winget
[16.06.2025 16:06:30] Invalid value for UpdatesCheckInterval, using default value of 3600 seconds
[16.06.2025 16:06:30] Cached icon for id=libreoffice is valid and won't be downloaded again (PackageVersion)
[16.06.2025 16:06:30] Cached icon for id=7zip is valid and won't be downloaded again (SHA256)
[16.06.2025 16:06:30] Cached icon for id=anydesk is valid and won't be downloaded again (SHA256)
[16.06.2025 16:06:30] Cached icon for id=myphoneexplorer is valid and won't be downloaded again (SHA256)
[16.06.2025 16:06:30] Cached icon for id=appinstaller is valid and won't be downloaded again (PackageVersion)
[16.06.2025 16:06:30] Cached icon for id=ausweisapp is valid and won't be downloaded again (PackageVersion)
[16.06.2025 16:06:30] Cached icon for id=iprintscan is valid and won't be downloaded again (SHA256)
[16.06.2025 16:06:30] Cached icon for id=keepass is valid and won't be downloaded again (SHA256)
[16.06.2025 16:06:30] Cached icon for id=dotnet.desktopruntime.8 is valid and won't be downloaded again (SHA256)
[16.06.2025 16:06:30] Cached icon for id=dotnet.hostingbundle.8 is valid and won't be downloaded again (SHA256)
[16.06.2025 16:06:30] Cached icon for id=edge is valid and won't be downloaded again (PackageVersion)
[16.06.2025 16:06:30] Cached icon for id=onedrive is valid and won't be downloaded again (PackageVersion)
[16.06.2025 16:06:30] Cached icon for id=teams is INVALID (PackageVersion)
[16.06.2025 16:06:30] File C:\Users\root\AppData\Local\UniGetUI\CachedMedia\Winget\teams\icon.png was downsized from 258x240 to 192x179
[16.06.2025 16:06:30] Icon for Location=C:\Users\root\AppData\Local\UniGetUI\CachedMedia\Winget\teams has been downloaded and verified properly (if applicable) (PackageVersion)
[16.06.2025 16:06:30] Cached icon for id=vcredist.2005.x86 is INVALID (PackageVersion)
[16.06.2025 16:06:31] File C:\Users\root\AppData\Local\UniGetUI\CachedMedia\Winget\vcredist.2005.x86\icon.png was downsized from 193x193 to 192x192
[16.06.2025 16:06:31] Icon for Location=C:\Users\root\AppData\Local\UniGetUI\CachedMedia\Winget\vcredist.2005.x86 has been downloaded and verified properly (if applicable) (PackageVersion)
[16.06.2025 16:06:31] Cached icon for id=vcredist.2005.x64 is INVALID (PackageVersion)
[16.06.2025 16:06:31] File C:\Users\root\AppData\Local\UniGetUI\CachedMedia\Winget\vcredist.2005.x64\icon.png was downsized from 193x193 to 192x192
[16.06.2025 16:06:31] Icon for Location=C:\Users\root\AppData\Local\UniGetUI\CachedMedia\Winget\vcredist.2005.x64 has been downloaded and verified properly (if applicable) (PackageVersion)
[16.06.2025 16:06:31] Cached icon for id=vcredist.2010.x64 is INVALID (PackageVersion)
[16.06.2025 16:06:31] File C:\Users\root\AppData\Local\UniGetUI\CachedMedia\Winget\vcredist.2010.x64\icon.png was downsized from 193x193 to 192x192
[16.06.2025 16:06:31] Icon for Location=C:\Users\root\AppData\Local\UniGetUI\CachedMedia\Winget\vcredist.2010.x64 has been downloaded and verified properly (if applicable) (PackageVersion)
[16.06.2025 16:06:31] Cached icon for id=vcredist.2010.x86 is INVALID (PackageVersion)
[16.06.2025 16:06:31] File C:\Users\root\AppData\Local\UniGetUI\CachedMedia\Winget\vcredist.2010.x86\icon.png was downsized from 193x193 to 192x192
[16.06.2025 16:06:31] Icon for Location=C:\Users\root\AppData\Local\UniGetUI\CachedMedia\Winget\vcredist.2010.x86 has been downloaded and verified properly (if applicable) (PackageVersion)
[16.06.2025 16:06:31] Cached icon for id=vclibs.desktop.14 is valid and won't be downloaded again (PackageVersion)
[16.06.2025 16:06:31] Cached icon for id=vcredist.2015+.x64 is valid and won't be downloaded again (SHA256)
[16.06.2025 16:06:31] Cached icon for id=vcredist.2015+.x86 is valid and won't be downloaded again (SHA256)
[16.06.2025 16:06:31] Cached icon for id=ui.xaml.2.7 is valid and won't be downloaded again (PackageVersion)
[16.06.2025 16:06:31] Cached icon for id=ui.xaml.2.8 is valid and won't be downloaded again (PackageVersion)
[16.06.2025 16:06:31] Cached icon for id=firefox.esr.de is valid and won't be downloaded again (SHA256)
[16.06.2025 16:06:31] Cached icon for id=thunderbird.de is valid and won't be downloaded again (SHA256)
[16.06.2025 16:06:31] Cached icon for id=phonerlite is valid and won't be downloaded again (PackageVersion)
[16.06.2025 16:06:32] Cached icon for id=windowsinstallationassistant is valid and won't be downloaded again (SHA256)
[16.06.2025 16:06:32] Cached icon for id=windowsterminal is valid and won't be downloaded again (PackageVersion)
[16.06.2025 16:14:49] Saving window geometry -10,0,1940,2086,0
[16.06.2025 16:16:38] DWM Thread was already running
[16.06.2025 16:16:38] XAML Thread was already running
[16.06.2025 16:21:06] DWM Thread was already running
[16.06.2025 16:21:06] XAML Thread was already running
[16.06.2025 16:21:12] DWM Thread was already running
[16.06.2025 16:21:12] XAML Thread was already running
[16.06.2025 16:30:06] DWM Thread was already running
[16.06.2025 16:30:06] XAML Thread was already running
[16.06.2025 16:30:06] DWM Thread was already running
[16.06.2025 16:30:06] XAML Thread was already running
[16.06.2025 16:30:09] Found 139 installed packages from Winget

Package Managers Logs

Manager Chocolatey with version:

(Is empty)

Relevant information

No response

Screenshots and videos

slide switch "Use system Chocolatey": off (Aus)

==> error message "Chocolatey was not found"

Image

slide switch "Use system Chocolatey": on (Ein)

==> info message "Chocolatey is enabled and ready to go"

Image

roell-f avatar Jun 16 '25 15:06 roell-f

I will be modifying the chocolatey package to enable this setting by default

marticliment avatar Jun 16 '25 17:06 marticliment

This should also be fixed by #3703 when I'm able to finish it in a few weeks.

mrixner avatar Jun 17 '25 03:06 mrixner

in the UniGetUI installer there is an option “install chocolatey” which is active by default. isn't this also affected by the above-mentioned change?!

roell-f avatar Jun 18 '25 07:06 roell-f

Yes, but sometimes it fails to detect. I need to fix that detection

marticliment avatar Jun 18 '25 08:06 marticliment

Newer UniGetUI versions, when installed from chocolatey, will make UniGetUI use system chocolatey by default

marticliment avatar Jun 29 '25 19:06 marticliment