-
-
Notifications
You must be signed in to change notification settings - Fork 529
Fix WinGet getting corrupted on devices with non-admin accounts #3255
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
Conversation
Sounds great. Looking forward to testing it! |
Thanks for fixing this issue. It happened to me also running UniGetUI in a domain environment. |
Thank you for fixing this long standing and annoying bug. |
The fix should be live now on 3.1.6. I would appreciate if you could confirm that it is no longer happening on your machines. (Please note that if WinGet was already corrupted you will need to fix this before) |
To me, it mainly works. That means, that the WinGet store gets no longer corrupted, which is great!
And this is the successful CLI update. Funnily it said that it would ask for admin rights and that a prompt would be coming up, but I was not asked for admin credentials.
|
Whenever WinGet reports that the installer may require administrator rights, or that the installer will install system-wide, UniGetUI will elevate the operation, as chances are you would be still prompted for UAC. If git is the only affected package, perhaps there is an issue with how git is reporting to winget, not allowing it to properly upgrade. |
Yes, it may totally be wrong reporting of the installer. My impression was that about 40% of the installs failed, but that may have other reasons as well like not being updateable if the original install was not by WinGet. Let's wait for more reports of other users. It could as well be fixed now from the UniGetUI side. |
it is producing the same issue. i did clic the fix it button banner. but the banner kept showing up. tried installing it in local account mode but still complains there is a winget malfunction detected |
@Coach8806, please delete a folder named WinGet under your temp folder. |
that fixed it |
I am unable to update any packages with winget on 3.1.6. Always get the below error message. I deletet the winget folder under temp, but no success. I uninstalled unigetui, then re-installed via microsoft store. Somehow I got version 3.1.5 and in this one everything worked well. After closing it, however, version 3.1.6 was automatically installed and now I am back to the error... Error message:
|
Please delete the folder on |
Thanks, but it still does not work. I've deleted both winget and unigetui temp folder, started UniGetUI by a simple double-click and still get the same error message. I'm on Win 11 Pro Version 10.0.26100 Build 26100. |
Redirect WinGet temp folder when running elevated, so it does not change ACLs on
%temp%\WinGet
, and then it stops working due to incorrect permissions. This would only happen when UniGetUI was running from a local account, and different credentials of a different account were provided to Elevator/GSudo.Wait for an internet connection before loading package lists. This condition also triggered the WinGet corruption banner.