Fix WinGet getting corrupted on devices with non-admin accounts#3255
Fix WinGet getting corrupted on devices with non-admin accounts#3255Martí Climent (marticliment) merged 3 commits intomainfrom
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. |
|
I've tried again today. Deinstalled UniGetUI, deleted all related folders I could try, then reinstalled v3.2. Tried multiple times, install for all users, install only for me. Always the same problem. I get this error when trying to update programs: Fehler beim Öffnen der Quelle(n): Probieren Sie den Befehl "source reset" aus, wenn das Problem weiterhin besteht. Resetting winget, deleting temp folder, all no success... Any more ideas what I could try to get it work? |
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.