Ticket #43969

WinGet can't tell if upgrade needed

Date d'ouverture: 2022-02-22 04:02 Dernière mise à jour: 2022-09-29 00:26

Rapporteur:
Propriétaire:
(Aucun)
Type:
État:
Ouvert
Composant:
(Aucun)
Jalon:
(Aucun)
Priorité:
3
Sévérité:
3
Résolution:
Aucun
Fichier:
Aucun

Détails

Reported to WinGet as WinGet issue #1943 :

WinDirStat 1.1.2 doesn't have its installed version number visible to the API used by WinGet.

WinDirStat 1.1.2 installed. winget upgrade lists it as upgradable.

Steps to reproduce

C:\Windows\system32>winget upgrade
Name                Id                    Version Available Source
------------------------------------------------------------------
WinDirStat          WinDirStat.WinDirStat Unknown 1.1.2     winget
1 upgrades available.

Ticket History (2/2 Histories)

2022-02-22 04:02 Updated by: thoreandan
  • New Ticket "WinGet can't tell if upgrade needed" created
2022-09-29 00:26 Updated by: myticktack
Commentaire

to fix this there need to be a additional registry entry in the uninstall part (REG_SZ, Name: DisplayVersion, Value: (VersionNr like 1.1.2) Missing in the file setup/WDS.nsi Function CreateUninstallEntry This might be the additional line needed:

WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\WinDirStat" "DisplayVersion" "${dVersionMajor}.${dVersionMinor}.${dVersionRev}"

Workaround run the flowing command: reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\WinDirStat /v DisplayVersion /t REG_SZ /d 1.1.2

Attachment File List

No attachments

Modifier

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Connexion