Open ffes opened 3 years ago
We've run into a few interesting scenarios. I think we're close to the point of having enough information in the Windows Package Manager to provide better information after upgrade. The 1.1 schema enhancements have been added for validation, but we're still working on client implementation.
PowerToys will be fixed with better information in Apps and Features in the manifest once we support .exe installers containing an MSI.
Teams has multiple installers on systems: Machine Wide Installer and the Application. We've got fixes coming specifically for that.
We will have to look into Edge to see if the fix for Teams also addresses that one.
We have also seen packages that do not "upgrade" per se', but they install the new version, so since the old one is still present it appears as still needing upgrade. We're looking at specific messaging for those scenarios.
I've run in a similar issue with SumatraPDF
2022-02-15 12:21:00.339 [CLI ] Manifest fields: Name [SumatraPDF], Version [3.3.3]
2022-02-15 12:21:00.340 [CLI ] Starting installer selection.
2022-02-15 12:21:00.340 [CLI ] Installer [X64,exe,User,en-US] not applicable: Installer scope does not matched currently installed scope: User != Machine
Would be nice if winget could pick up the installer scope of the previous installation, and the performs the upgrade with the same scope. But at least it should report the reason why its not upgrading the package to the user.
Description of the new feature/enhancement
When I run
winget upgrade
3 packages are shown. So I runwinget upgrade --all
, but 2 package are never mentioned in the output and the 3th fails silently.Note that there are 3 packages available for upgrade.
Note that Edge and Powertoys are not mentioned here and that Teams is mentioned as installed successfully. But when I run
winget upgrade
again it outputs exactly the same as above. So apparently Teams didn't get upgraded as well.When I dig into the log there are explanations for all the failures, but there are never shown to the user. I've provided the errors from the log file below.
Note that this issue is not about these specific errors below (they are explainable and fixable), but about the fact that the they not show to user when
winget upgrade --all
is ran.FYI the error for Edge (never installed it through winget, came with Win10):
FYI the error for Teams (installed by Office 365, most likely caused by https://github.com/microsoft/winget-pkgs/issues/18415):
And later on in that some log:
FYI the error for PowerToys (installed manually before I discovered winget):