mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-03 17:56:44 +02:00
This is a fix for a pair of related crashes. Basically, we'd crash on startup if we failed to initialize WinGet. This could happen in two different places: * If WinGet wasn't installed, then we'd explode, cause obviously we can't call its APIs * If we're running as Admin, we won't be able to instantiate it's COM server. Regardless of how it happens, I've defaulted us to just _not enabling the winget built-in_. That's the simplest solution here. As I was helpfully reminded, there's also an elevated WindowsPackageManagerFactory we could use too - though, that wouldn't solve the case of "winget isn't installed" Closes #38460 Closes #38440 (most likely)