Using winget install package or the download msi for Sublime 4 doesn’t have version information added to the add/remove programs panel. This is causing winget/UnigetUI to keep wanting to install version 4 over itself because it thinks the listed version (Version 4.0.0.420000) is greater than unknown (empty or null version), even though that is the version that is already installed.
Sublime 4 version info missing
This has been reported at https://github.com/sublimehq/sublime_text/issues/1114 almost 10 years ago, I guess sublimehq aren’t interested in fixing it, I guess because if you install using the official instructions instead of winget, there are no problems with a missing version
Can’t confirm.
I only recently started automating my updates via WinGet.
Sublime was installed beforehand, and yet I still don’t have “DisplayVersion” as a value and therefore also not in WinGet.
I installed from https://www.sublimetext.com/download but still I get the following
C:\Users\Admin>winget update
No installed package found matching input criteria.
1 package(s) have version numbers that cannot be determined. Use --include-unknown to see all results.
And when I run with the CLI option
C:\Users\Admin>winget update --include-unknown
Name Id Version Available Source
Sublime Text SublimeHQ.SublimeText.4 Unknown 4.0.0.420000 winget
1 upgrades available.
Of course, it is pointing to the latest version that’s already installed because it cannot compare existing version
Any registry hack? 