winget-cli: Using command `winget upgrade --all` does not update some software and does not say why.
Brief description of your issue
Using command winget upgrade --all
does not update some software and does not say why.
I can see in the log the real reason :
Installer [X64,wix,Machine,] not applicable: Installed package type ‘exe’ is not compatible with installer type wix, or with accepted type(s) wix
Steps to reproduce
winget upgrade --all
Nom ID Version Disponible Source
-------------------------------------------------------------------------
MiKTeX ChristianSchenk.MiKTeX 22.3 22.7 winget
Password Safe (64-bit) RonyShapiro.PasswordSafe 3.58.0 3.59.0 winget
2 des mises à niveau sont disponibles.
Expected behavior
It must update all these softwares or say why it can’t. I think wget should provide a command to reinstall the software in this case.
Actual behavior
Somme’s software are skipped without any visible explanation.
Environment
Windows: Windows.Desktop v10.0.19044.1889
Architecture du système: X64
Package: Microsoft.DesktopAppInstaller v1.18.2091.
About this issue
- Original URL
- State: open
- Created 2 years ago
- Reactions: 5
- Comments: 25 (12 by maintainers)
Many of these packages support “side-by-side” installation. If you run
winget list
you are likely to see more than one version present. We’re working on enhancements to the upgrade flow to check and see if the latest version is already installed on the system to avoid displaying them again.For me the same thing happens for these packages:
They just show up again after being upgraded.
I’m on windows 11 x64
It looks like a typo in the manifest, where
373
was used instead of372
. I’ve opened microsoft/winget-pkgs#78888 to fix the package, and also updated it to use the Marketing Version, with ARP Mapping.Removing it from the registry worked. Thanks.
But I found that the files for the previous version were still present, so I had to delete the files manually as well.
I guess the installer isn’t cleaning up the files or the entries in this case atleast…