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] I can`t use the bundled winget.exe #1543

Closed
4 tasks done
Waboath opened this issue Nov 1, 2023 · 9 comments
Closed
4 tasks done

[BUG] I can`t use the bundled winget.exe #1543

Waboath opened this issue Nov 1, 2023 · 9 comments
Assignees
Labels
bug Something isn't working needs-further-study

Comments

@Waboath
Copy link

Waboath commented Nov 1, 2023

Please confirm these before moving forward

  • I have searched for my issue and 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)

Describe your issue

Hello,

if i start wingetui i see nothing under installed packages.

image

so i used the bundled winget.exe with powershell and i get also nothing.

image

I think something in a fresh installed windows 11 is blocking.

win ver: 22H2 Build. 22621.2428
normal user (non admin)

Steps to reproduce the issue

No response

WingetUI Log

🟢 Using cached lang file
🟡 Using bundled lang file (forced=True)
🔵 It took 0.0 to load all language files
🟢 checkQueue Thread started!
🟡 Chocolatey was not found on the default location, perhaps a portable WingetUI installation?
🔵 Language file up-to-date
🔵 Starting main application...
🔵 Looking for alive instances...
🟡 Found lock file(s), reactivating...
🔵 Reloading Winget sources...
🔵 Loading WingetUI AUMID...
🔵 Starting update check
 * Serving Flask app 'WingetUI backend'
 * Debug mode: off
WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
 * Running on http://localhost:7058
Press CTRL+C to quit
🟢 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
🟢 Found valid aumid {6D809377-6AF0-444B-8957-A3773F02200E}\WingetUI\wingetui.exe
🔵 Version URL: https://www.marticliment.com/versions/wingetui.ver
🟢 Updates not found
🔵 Reactivation signal ignored: RaiseWindow_[1698846904.2268746]
{'sudoFound': True, 'sudoVersion': 'gsudo v2.0.4 (Branch.tags-v2.0.4.Sha.506efa024af0cef6e4b0cfec42e0c8c5d0b1472c)\r', 'ScoopFound': False, 'ScoopVersion': 'Scoop ist deaktiviert', 'ChocolateyFound': False, 'ChocolateyVersion': 'Chocolatey ist deaktiviert', 'PipFound': False, 'PipVersion': 'Pip ist deaktiviert', 'NpmFound': False, 'NpmVersion': 'Npm ist deaktiviert', '.NET ToolFound': False, '.NET ToolVersion': '.NET Tool ist deaktiviert', 'WingetFound': True, 'WingetVersion': ''}
🔵 Reached main ui load milestone
🟢 Discover tab loaded successfully
🟢 Total packages: 0
🟢 Update tab loaded successfully
🟢 Searching for string ""
🔵 Reloading sources...
🔵 Reloading Winget sources...
🔵 Reloading Scoop sources...
🟢 Uninstall tab loaded successfully
🔵 Starting Winget search for installed packages
🟢 Searching for string ""
🟢 Winget search for installed packages finished with 0 result(s)
🟠 Chocolatey got too few installed packages, retrying
🔵 Starting Winget search for installed packages
🟢 Winget search for installed packages finished with 0 result(s)
🟢 Starting winget source search...
🟢 Starting winget source search...
🟢 Settings tab loaded!
🟢 winget source search finished
🟢 winget source search finished
🟢 About tab loaded!
🔵 Starting Winget search for updates
🟢 Winget search for updates finished with 0 result(s)
🟢 Main application loaded...
🔵 Starting Winget search for installed packages
🟢 Searching for string ""
🟢 Winget search for installed packages finished with 0 result(s)
🟠 Chocolatey got too few installed packages, retrying
🔵 Starting Winget search for installed packages
🟢 Searching for string ""
🟢 Searching for string ""
🟢 Searching for string ""
🟡 Can't get custom interval time! (got value was '')
🟢 Total packages: 0
🟢 Winget search for installed packages finished with 0 result(s)
🟢 Searching for string ""
🟢 Searching for string ""
🟢 Total packages: 0
🔵 Starting Winget search for installed packages
🟢 Searching for string ""
🟢 Winget search for installed packages finished with 0 result(s)
🟠 Chocolatey got too few installed packages, retrying
🔵 Starting Winget search for installed packages
🟢 Winget search for installed packages finished with 0 result(s)
🟢 Searching for string ""
🟢 Searching for string ""
🟢 Total packages: 0
🔵 Loading WingetUI log...
🔵 Starting update check
🔵 Version URL: https://www.marticliment.com/versions/wingetui.ver
🟢 Updates not found
🔵 Loading WingetUI log...
🔵 Copying log to the clipboard...
🔵 Loading WingetUI log...

Package Managers Logs

Outputs from package managers on the current session:
 ---------Winget---------Winget

---------Winget

---------Winget---------Winget---------Winget
---------Winget

Relevant information

No response

Screenshots and videos

No response

@Waboath Waboath added the bug Something isn't working label Nov 1, 2023
@marticliment
Copy link
Owner

Hello,

Have you tried reinstalling WingetUI?

How did you install wingetui in first place?

@Waboath
Copy link
Author

Waboath commented Nov 3, 2023

Hello,

yes i reinstalled wingetui three times.
I installed it for all users.
The funny thing is, after i installed it for the first it works after a reboot i won't work again.

@marticliment
Copy link
Owner

Do you have any antivirus that could be interfiering?

@Waboath
Copy link
Author

Waboath commented Nov 4, 2023

I use only windows defender.

@DrStrange
Copy link

DrStrange commented Nov 6, 2023

I have the same issue in Windows 10. Winget and Pip are set as the package managers. WingetUI shows installed packages for Pip but shows no packages for winget. WingetUI's winget shows no packages in PowerShell. Reset/reinstall/reset MS App Installer does not fix it. Packages showed ok for several days/reboots after installing, now there are no packages listed. The same thing happened on my other PC.
Installed packages show ok when using system winget in experimental settings or when using WingetUI as an administrator.
I only use Windows Defender.

There are no sources listed for winget in its settings. Where they should be shown, it says Loading... but when I try to add them they fail to add as WingetUI says they already exist:

installation failed

@Stibax
Copy link

Stibax commented Nov 14, 2023

I have the exact same issue, only difference i have from DrStrange, if i select from experimental option to use system winget, the problem still exist. Only if i run wingetUI with admin privileges it seems to work. I have windows 11.

@Stibax
Copy link

Stibax commented Nov 15, 2023

Hi, i have found the solution, it's not a problem of wingetui, i have uninstall dev-home from the app store and that cause the downgrade of winget, so the system messed-up. Now with use system winget it works. The same problem of ather still exist if don't use the sytem one.

@redactedscribe
Copy link

redactedscribe commented Jan 17, 2024

Just curious, is it possible to use the winget-cli executable already installed on the system rather than the bundled WingetUI one? It bothers me to have two possibly differing winget versions installed at the same time.

Edit: Found the answer (although experimental):

wingetui_2024-01-17_15-16-12

@DrStrange
Copy link

DrStrange commented Feb 17, 2024

Just to report, I used the fix in #1721 and also deleted these folders:

C:\Users\<ADMIN-USER>\AppData\Local\Temp\WinGet\defaultState\
C:\Users\<NON-ADMIN-USER>\AppData\Local\Temp\WinGet\defaultState\

I now am able to view the list of installed packages using WingetUI's bundled winget instead of using the system winget. I also uninstalled WingetUI and rebooted then reinstalled it. I am using WingetUI 2.2.0 installed only in my standard user account in Windows 10 22H2.
Hope this also works for you, @Waboath @Stibax

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-further-study
Projects
None yet
Development

No branches or pull requests

5 participants