Bug 479799 - Winget package manager displays installed version as 7.9.0 instead of 8.2.0
Summary: Winget package manager displays installed version as 7.9.0 instead of 8.2.0
Status: RESOLVED DOWNSTREAM
Alias: None
Product: digikam
Classification: Applications
Component: Bundle-Windows (show other bugs)
Version: 8.2.0
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords: qt6
Depends on:
Blocks:
 
Reported: 2024-01-14 13:33 UTC by lajawi55
Modified: 2024-01-14 16:00 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 8.3.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description lajawi55 2024-01-14 13:33:45 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***
Since recently, I've started using Winget package manager to install, update, and uninstall applications on my Windows device. When I list all available updates, it displays Digikam 8.2.0, as it thinks version 7.9.0 is installed:
```
Name            ID                            Version  Available Quelle
-----------------------------------------------------------------------
digiKam 7.9.0   KDE.digikam                   7.9.0    8.2.0     winget
```

STEPS TO REPRODUCE
*I don't know how this issue came to be, but I expect this:*
1. Install DigiKam
2. Use Winget to check for updates
3. Check whether the "current" version is lower than the actually installed version

OBSERVED RESULT
Instead of displaying the currently installed version, Winget displays an older one, and everytime I try to update, it downloads and runs the 8.2.0 installer, but it doesn't change the fact the old version is still detected.

EXPECTED RESULT
As soon as the newest version of DigiKam is installed, I expect it to not show up in Winget with an available update.

SOFTWARE/OS VERSIONS
Windows: 11
macOS: -
Linux/KDE Plasma: -
(available in About System)
KDE Plasma Version: -
KDE Frameworks Version: 5.245.0
Qt Version: 6.6.0

ADDITIONAL INFORMATION
-
Comment 1 Maik Qualmann 2024-01-14 13:41:50 UTC
*** This bug has been marked as a duplicate of bug 479487 ***
Comment 2 Maik Qualmann 2024-01-14 13:42:48 UTC
We do not support winget (Windows package manager).

Here is the GitHub entry that hosts digKam, you can also report your problem here.

https://github.com/microsoft/winget-pkgs/tree/master/manifests/k/KDE/digikam/8.2.0

Maik
Comment 3 Maik Qualmann 2024-01-14 13:54:30 UTC
Use the Registry Editor to check whether orphaned entries still exist in HKLM "Software\digiKam". This problem was solved with the digiKam-8.2.0 installer during  the uninstallation.

Maik
Comment 4 lajawi55 2024-01-14 14:04:46 UTC
(In reply to Maik Qualmann from comment #2)
> We do not support winget (Windows package manager).
> 
> Here is the GitHub entry that hosts digKam, you can also report your problem
> here.
> 
> https://github.com/microsoft/winget-pkgs/tree/master/manifests/k/KDE/digikam/
> 8.2.0
> 
> Maik

If you do not support Winget, how can I download and update via Winget? Isn't it the developers responsibility to make the package available via Winget?
Comment 5 Maik Qualmann 2024-01-14 14:13:32 UTC
I only became aware of Winget with Bug 479487. Before that, I was not aware of this Windows package manager. As I understand it, the Winget team itself maintain the updates.

https://en.wikipedia.org/wiki/Windows_Package_Manager

By the way, digiKam has its own online update function.
https://docs.digikam.org/en/getting_started/installation.html#application-updates

Maik
Comment 6 Maik Qualmann 2024-01-14 14:30:56 UTC
The issue may be related to Bug 468597. Uninstalling digiKam-8.2.0 should then solve it.

Maik
Comment 7 lajawi55 2024-01-14 15:17:15 UTC
(In reply to Maik Qualmann from comment #6)
> The issue may be related to Bug 468597. Uninstalling digiKam-8.2.0 should
> then solve it.
> 
> Maik

I've just tried this, but even if the application isn't installed anymore, if checking for updates with Winget, it outputs digiKam has an update availabe, from 7.9.0 to 8.2.0.
Comment 8 Maik Qualmann 2024-01-14 15:58:22 UTC
Here you would have to ask the Winget project how they recognize installed versions. digiKam itself does not write anything into the Windows Registry, the installer only writes the software entry.
Is there perhaps an orphaned entry in the Start menu folder?

Maik
Comment 9 lajawi55 2024-01-14 16:00:36 UTC
(In reply to Maik Qualmann from comment #8)
> Here you would have to ask the Winget project how they recognize installed
> versions. digiKam itself does not write anything into the Windows Registry,
> the installer only writes the software entry.
> Is there perhaps an orphaned entry in the Start menu folder?
> 
> Maik

There was, but removing it doesn't change anything.