WinGet in Win11 & Win10 registry differences #3791
Replies: 1 comment 1 reply
-
Have you tried using our PowerShell module? Obviously there are a lot of specifics that I'm not aware of in your situation, so it might not work for you. It does support usage from I'm confident that the registry key in question is considered an internal implementation detail, and thus is not likely to have a setting that drives it. There are other means to find the location in PowerShell if you need to follow that route: > $PackageBasePath = (Get-AppxPackage -AllUsers Microsoft.DesktopAppInstaller).InstallLocation
> $WingetPath = (Get-ChildItem -Recurse -Path $PackageBasePath -Filter winget.exe).FullName That finds the file, but I feel it is likely that anything you do from here is not supported. |
Beta Was this translation helpful? Give feedback.
-
I have been using WinGet to deploy packages silently across a network on Windows 10 with pretty great success, I've been able to use a custom variable in the PS script that pulls from the registry the AppPath for WinGet, that way I never need to call it version specific in the script. I've been pulling this regentry from HKLM\SOFTWARE\Microsoft\Windows\Current Version\AppPaths\winget.exe. However I've noticed in my testing of W11 that this regentry is no longer found in HKLM but instead in HKCU meaning I can't pull the registry information for a custom variable. I've done a fair bit of to and fro on it and any "solution" I can find for this ends up being overly complex in the long run and would require considerable upkeep. My team were looking to migrate to using WinGet more frequently once we've upgraded the business to W11 however this odd difference between the installation on the two operating systems certainly throws a spanner in the works. My question then is it possible to change something in the install so that the regkey that is created is made in HKLM as opposed to HKCU? any thoughts or tips are greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions