I’m a HUGE fan of WinGet, Microsoft’s Windows Package Manager. It makes installing and updating Windows software remarkably easy. But “Successfully installed” doesn’t necessarily mean “ready to run.” That’s why I entitled this post No depedencies in WinGet can be misleading. Indeed, it seems that even after a successful update, unexpected dependencies can still pop up. Let me explain…
A Routine WinGet Update
I recently learned that lesson while updating Patch My PC Home Updater. Everything appeared to go exactly as expected. WinGet found Patch My PC Home Updater version 5.4.6.0. It downloaded the MSI, verified its hash, launched the installer and finished with its typical, reassuring message: Successfully installed.
Then Patch My PC Asked for .NET 10
When I launched Patch My PC Home Updater, however, I got a surprise. A pop-up told me that before the program could run, I needed to install .NET 10.0 Desktop Runtime, version 10.0.15. The dialog conveniently provided a link.
Hence, I downloaded windowsdesktop-runtime-10.0.15-win-x64.exe, installed it and tried Patch My PC again. Presto! This time it came right up and ran normally.
Wasn’t WinGet Supposed to Handle That?
That naturally raised this question: Wasn’t WinGet supposed to handle dependencies? Normally, that’s exactly what it does. But there’s a catch, as with many things Windows related.
Here’s the deal: WinGet packages are described through manifests. Those manifests tell Windows Package Manager about an application and how it should be installed. That includes dependencies, where applicable.
Dependencies Must Be Declared
Among their many prescriptive capabilities, manifests can describe and require dependencies to be satisfied. In fact, WinGet dependency handling isn’t magic. It works from information supplied in the package manifest. If a required dependency isn’t declared there, WinGet has nothing to act upon. That seems to be how this post-update pop-up made itself known.
“WinGet Show” Tells the Tale
After installing the missing runtime manually, I asked WinGet to show me its package information for the app:
winget show "Patch My PC Home Updater"
The resulting entry contains publisher information, a description, URLs, release notes, tags and installer details. What’s missing. There’s no information about dependencies in there anywhere. You can see all this in the intro screencap, which shows a successful Patch My PC Home Updater update, and the manifest info for the package.
No Dependencies = No Dependency Handling
Look closely, and you’ll see there’s no Dependencies section in the package information displayed. The output proceeds from the package’s tags directly to its installer information. That helps explain why WinGet could truthfully report a successful installation even though Patch My PC wouldn’t actually run afterward.
From WinGet’s perspective, its assigned job had succeeded. The package downloaded. Its installer hash was verified. The MSI ran successfully. Mission accomplished!
Installation Success Isn’t Always Runtime Ready
Only when I launched the application did .NET identify the missing runtime and ask me to install it. That distinction is worth remembering. WinGet reporting Successfully installed tells me the package installation succeeded. It doesn’t necessarily guarantee that every prerequisite needed at runtime is present. Normally, dependency information helps bridge that gap.
But that depends upon the dependency being declared. If it isn’t, somebody may still have to supply the missing piece manually. In this case, that somebody was your humble correspondent. The fix was easy. Installing the requested .NET 10 Desktop Runtime took only a few moments. Diagnosing why it happened was more interesting.
Here in Windows-World…
The lesson is a useful one for anybody who relies heavily on WinGet. Package managers automate an enormous amount of otherwise tedious work. But that automation ultimately depends on metadata. WinGet can’t act upon a dependency it hasn’t been told exists.
Thus, after an apparently successful WinGet installation or update, don’t automatically assume a subsequent launch failure means WinGet itself malfunctioned. Indeed, that very gotcha manifested here (forgive the terrible pun, it was intentional).
When “Successfully Installed” Isn’t the End
Take a look at:
winget show "package name"
If the application needs another runtime, library or package, check whether WinGet actually knows about that dependency. Here in Windows-World, WinGet updates are only as good as what’s declared in app manifests.
Sometimes “Successfully installed” means exactly that. It just doesn’t always mean “all done.” That’s just the way things go sometimes.