Tíquete #43969

WinGet can't tell if upgrade needed

: 2022-02-22 04:02 Última Atualização: 2022-09-29 00:26

Relator:
Dono:
(Nenhum)
Tipo:
Estado:
Aberto
Componente:
(Nenhum)
Marcos:
(Nenhum)
Prioridade:
3
Gravidade:
3
Resolução:
Nenhum
Arquivo:
Nenhum

Details

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
Comentário

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

Editar

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