microsoft / winget-cli

WinGet is the Windows Package Manager. This project includes a CLI (Command Line Interface), PowerShell modules, and a COM (Component Object Model) API (Application Programming Interface).
https://learn.microsoft.com/windows/package-manager/
MIT License
23.09k stars 1.44k forks source link

winget does not updating app version info #2502

Closed demios97 closed 3 months ago

demios97 commented 2 years ago

Brief description of your issue

winget doesn't see actual version of the program after upgrade of the program through winget itself. Reinstalling doesn't help.

Screenshot 2022-09-07 125741 Screenshot 2022-09-07 125903

Steps to reproduce

winget install AIMP.AIMP winget upgrade --all

Expected behavior

After upgrade winget should show me actual version number.

Actual behavior

Every time I try to upgrade, aimp install himself, no matter the version.

Environment

Windows Package Manager v1.3.2091
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.19044.1949
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.18.2091.0

Logs: %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir

Links
---------------------------------------------------------------------------
Privacy Statement   https://aka.ms/winget-privacy
License Agreement   https://aka.ms/winget-license
Third Party Notices https://aka.ms/winget-3rdPartyNotice
Homepage            https://aka.ms/winget
Windows Store Terms https://www.microsoft.com/en-us/storedocs/terms-of-sale
Trenly commented 2 years ago

What is shown when you run winget list AIMP ?

Trenly commented 2 years ago

As I was looking into this, in additon to the bug above, I found that this application installs side by side.

Setting UpgradeBehavior: uninstallPrevious is not an option, as the application uninstaller returns success immediately and is interactive, thus requiring #1885 to provide custom silent uninstall arguments.

demios97 commented 2 years ago

What is shown when you run winget list AIMP ?

Screenshot 2022-09-08 110837
Trenly commented 2 years ago

What is shown when you run winget list AIMP ?

Screenshot 2022-09-08 110837

Thank you; This looks exactly like the issue I reported in the issue linked above, which means you don’t have the other side-by-side upgrade issue

emoxam commented 8 months ago

Face the same with a bunch of apps dbeaver.dbeaver Docker.DockerDesktop Microsoft.WindowsTerminal PostgreSQL.pgAdmin Telegram.TelegramDesktop Python.Python.3.12 MongoDB.Compass.Full VideoLAN.VLC

emoxam commented 8 months ago

winget update #Refreshes the repositories winget upgrade #Actually updates apps is it true ? Why does "winget update" works if we don't have any mention at "winget -?" ?

winget upgrade

Имя                                                   ИД                           Версия        Доступно      Источник
-----------------------------------------------------------------------------------------------------------------------
OpenWebStart 1.7.0                                    karakun.OpenWebStart         1.7.0         1.9.0         winget
MongoDB Compass                                       MongoDB.Compass.Full         1.40.3        1.42.0.0      winget
Notepad++ (64-bit x64)                                Notepad++.Notepad++          8.2           8.6.2         winget

pgAdmin 4 version 7.3                                 PostgreSQL.pgAdmin           7.3           8.2           winget

winget upgrade PostgreSQL.pgAdmin

Найдено pgAdmin 4 [PostgreSQL.pgAdmin] Версия 8.2
Лицензия на это приложение предоставлена вам владельцем.
Корпорация Майкрософт не несет ответственность за сторонние пакеты и не предоставляет для них никакие лицензии.
Скачивание https://ftp.postgresql.org/pub/pgadmin/pgadmin4/v8.2/windows/pgadmin4-8.2-x64.exe
  ██████████████████████████████   181 MB /  181 MB
Хэш установщика успешно проверен
Запуск установки пакета...
Успешно установлено

And again

winget upgrade

Имя                                                   ИД                           Версия        Доступно      Источник
-----------------------------------------------------------------------------------------------------------------------
OpenWebStart 1.7.0                                    karakun.OpenWebStart         1.7.0         1.9.0         winget
MongoDB Compass                                       MongoDB.Compass.Full         1.40.3        1.42.0.0      winget
Notepad++ (64-bit x64)                                Notepad++.Notepad++          8.2           8.6.2         winget
pgAdmin 4 version 7.3                                 PostgreSQL.pgAdmin           7.3           8.2           winget

Why does PostgreSQL.pgAdmin still shows as not updated ?

denelon commented 3 months ago

WinGet 1.8 has better support for packages that get installed "side-by-side". Is this a situation where multiple versions are installed?

If it's not, it's possibly a case of the registry entry not getting updated by the installer.

demios97 commented 3 months ago

There were no multiple versions of the same app. But the issue was gone long ago. Maybe @emoxam can provide recent feedback?

denelon commented 3 months ago

I'm going to go ahead and close this issue. If the problem persists, please re-open this issue or file a new one. I'm fairly confident the issue has been resolved in WinGet 1.8.