Recommend Checking for Winget Registration on Install in WinUtil #1775
james8675309
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi - I recently have come across some issues among friends and family members, and then with my own computer with winget. When repairing peoples computers or reinstalling, etc, I often use Winget or a combination of Winget and this utlilty.
I had an outstanding issue with quite a few of the below cases where PS would state that Winget wasn't installed,. Windows Store would say it was installed or wouldn't show winget at all. When using WinUtil through last week, it would fail when Chocolatey tried to force installation.
The following cases seem to be the source of this issue:
I happened to run across the fix for this about 5 days ago. Note, in all of these instances, I tried to use WinUtil to force a reinstall of Winget and it always failed.
The fix I happened to find on Microsofts Winget Install page. You have to register the Winget app again on new or modified User Accounts using the following line:
Add-AppxPackage -RegisterByFamilyName -MainPackage Microsoft.DesktopAppInstaller_8wekyb3d8bbwe
I ran this on each of the cases where I was having this issue, and bam, it works perfectly now for my friend, my aunt & uncles computer, and my two computers where this was an issue.
I don't know enough about how this utility works in the backend to submit changes... But is there any way this check can be added if someone select ths install Winget option in the utility?
Beta Was this translation helpful? Give feedback.
All reactions