winget-pkgs icon indicating copy to clipboard operation
winget-pkgs copied to clipboard

[Package Issue]: CologneCodeCompany.XYplorer

Open SSLbits opened this issue 1 year ago • 8 comments

Please confirm these before moving forward

  • [x] I have searched for my issue and not found a work-in-progress/duplicate/resolved issue.
  • [x] I have not been informed if the issue is resolved in a preview version of the winget client.

Category of the issue

Installer hash mismatch.

Brief description of your issue

XYplorer updates do not (ever?) work with winget. I've never had this application update successfully using winget.

Steps to reproduce

winget upgrade CologneCodeCompany.XYplorer

Actual behavior

Installer hash does not match.

Expected behavior

Upgrade successful.

Environment

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

Windows: Windows.Desktop v10.0.26100.2605
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.24.25200.0

Winget Directories
-----------------------------------------------------------------------------------------------------------------------
Logs                               %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\Diag…
User Settings                      %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\sett…
Portable Links Directory (User)    %LOCALAPPDATA%\Microsoft\WinGet\Links
Portable Links Directory (Machine) C:\Program Files\WinGet\Links
Portable Package Root (User)       %LOCALAPPDATA%\Microsoft\WinGet\Packages
Portable Package Root              C:\Program Files\WinGet\Packages
Portable Package Root (x86)        C:\Program Files (x86)\WinGet\Packages
Installer Downloads                %USERPROFILE%\Downloads

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

Admin Setting                             State
--------------------------------------------------
LocalManifestFiles                        Disabled
BypassCertificatePinningForMicrosoftStore Disabled
InstallerHashOverride                     Disabled
LocalArchiveMalwareScanOverride           Disabled
ProxyCommandLineOptions                   Disabled
DefaultProxy                              Disabled

Screenshots and Logs

Image

SSLbits avatar Jan 14 '25 06:01 SSLbits

We've found some similar issues:

  • #171903 , similarity score: 84%
  • #150758 , similarity score: 83%
  • #87458 , similarity score: 83%
  • #150449 , similarity score: 83%
  • #148536 , similarity score: 83%

If any of the above are duplicates, please consider closing this issue out and adding additional context in the original issue.

Note: You can give me feedback by 👍 or 👎 this comment.

similar-issues-ai[bot] avatar Jan 14 '25 06:01 similar-issues-ai[bot]

✅ Issue verified.

14:57:03 D:\...\winget-pkgs  [master ≡] 5ms pwsh$ winget download --skip-dependencies -s winget CologneCodeCompany.XYplorer -v 26.70.0600
已找到 XYplorer [CologneCodeCompany.XYplorer] 版本 26.70.0600
此应用程序由其所有者授权给你。
Microsoft 对第三方程序包概不负责,也不向第三方程序包授予任何许可证。
已跳过依赖项。
正在下载 https://www.xyplorer.com/download/XYplorer_26.70_Install.exe
  ██████████████████████████████  6.33 MB / 6.33 MB
安装程序哈希不匹配;若要重写此检查,请使用 --ignore-security-hash
14:58:14 D:\...\winget-pkgs  [master ≡] 1ms pwsh$ winget download --ignore-security-hash --skip-dependencies -s winget CologneCodeCompany.XYplorer -v 26.70.0600
已找到 XYplorer [CologneCodeCompany.XYplorer] 版本 26.70.0600
此应用程序由其所有者授权给你。
Microsoft 对第三方程序包概不负责,也不向第三方程序包授予任何许可证。
已跳过依赖项。
正在下载 https://www.xyplorer.com/download/XYplorer_26.70_Install.exe
  ██████████████████████████████  6.33 MB / 6.33 MB
安装程序哈希不匹配;由于 --ignore-security-hash 而继续进行
已下载安装程序: D:\Dragon1573\Downloads\CologneCodeCompany.XYplorer_26.70.0600\XYplorer_26.70.0600_Machine_X64_nullsoft_en-US.exe

14:58:36 D:\...\winget-pkgs  [master ≡] 6.364s pwsh$ winget hash D:\Dragon1573\Downloads\CologneCodeCompany.XYplorer_26.70.0600\XYplorer_26.70.0600_Machine_X64_nullsoft_en-US.exe
InstallerSha256: 0b5d07ce93e1b2d5bd59d1ed4394b6003fe71480066e70837d2227ac49b328c4

Dragon1573 avatar Jan 14 '25 06:01 Dragon1573

Image Image

[!IMPORTANT]

Currently, this package is released with a vanity URL which always points to the latest patch version of an exact minor version series (keep pointing to the latest x.y.z build for the x.y series). This issue will keep exists when a new patch version is released.

Dragon1573 avatar Jan 14 '25 07:01 Dragon1573

Here's the URL in the existing manifest: https://www.xyplorer.com/download/XYplorer_26.70_Install.exe and here's the URL for the latest full release: https://www.xyplorer.com/download/XYplorer_26.70.0600_Install.exe which also matches the SHA-256 checksum in the manifest.

According to the vendor, the versioned package links are available in the forum: https://www.xyplorer.com/xyfc/viewtopic.php?p=190279&hilit=download+url#p190279

I just think that the winget package manifests should use these xx.xx.xxxx versioned package links rather than the vanity xx.xx URLs.

SSLbits avatar Jan 14 '25 14:01 SSLbits

Version v26.70.0600 you provided is valid. ❤

But version v26.70.0602 goes to an HTTP 404 Not Found page.


Edit: The last valid x.y.z format URL is v26.70.0600, there's no version-static URL for 0601 and 0602.

Dragon1573 avatar Jan 14 '25 16:01 Dragon1573

I'm not sure if 26.70.0602 is officially released yet?

Image

The application is showing that 26.70.0600 is the latest available version.

SSLbits avatar Jan 14 '25 16:01 SSLbits

The only available release format on Download Center are ZIP and RAR archives.

I can't sure how previous contributors find this EXE install wizard. 😕

The above EXE URL with x.y format will download version 26.70.0602, hence there's an https://github.com/microsoft/winget-pkgs/labels/Error-Hash-Mismatch error occur.

Dragon1573 avatar Jan 14 '25 17:01 Dragon1573

Image According to the vendor, 26.70.0602 is not an official release. https://www.xyplorer.com/download/History.txt

The PackageVersion should be 26.70.0600. InstallerSha256 should be C3AA9C002F377CC7DCA9B345A3347E73F65AEAC3BC39FBDFAE5B4B23B5AFAF1A. InstallerUrl should be https://www.xyplorer.com/download/XYplorer_26.70.0600_Install.exe

Moving forward, the InstallerUrl in the manifests for XYplorer should be in the XX.YY.ZZZZ format: https://www.xyplorer.com/download/XYplorer_XX.YY.ZZZZ_Install.exe

This should ensure proper updates to official releases and resolve the hash mismatch error.

SSLbits avatar Jan 14 '25 19:01 SSLbits