Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Package Issue]: Zotero added 64-bit version in v7 but not handled by winget #169607

Closed
2 tasks done
xarthurx opened this issue Aug 27, 2024 · 4 comments · Fixed by #169918 or #169919
Closed
2 tasks done

[Package Issue]: Zotero added 64-bit version in v7 but not handled by winget #169607

xarthurx opened this issue Aug 27, 2024 · 4 comments · Fixed by #169918 or #169919
Labels
Error-Hash-Mismatch The InstallerSHA256 Hash specified in the manifest doesn't match with the InstallerURL hash In-PR Needs-Triage This work item needs to be triaged by a member of the core team. Package-Update This package needs to be updated
Milestone

Comments

@xarthurx
Copy link

Please confirm these before moving forward

  • I have searched for my issue and not found a work-in-progress/duplicate/resolved issue.
  • 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

From Zotero v7, there're two versions, 32-bit and 64-bit.

The current manifest for Zotero is from v6 and automatically installed the 32-bit.
Even I manually install 64-bit version, updating the updating the software with winget will revert back to 32-bit (though newer version).

This problem should be resolved properly.

Steps to reproduce

  1. Install 64-bit version Zotero v7
  2. Update Zotero with winget

Actual behavior

winget install the 32-bit version.

Expected behavior

The 64-bit version should be installed.

Environment

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

Windows: Windows.Desktop v10.0.19045.4780
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.23.1911.0

Screenshots and Logs

No response

@xarthurx xarthurx added the Issue-Bug It either shouldn't be doing this or needs an investigation. label Aug 27, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added Needs-Triage This work item needs to be triaged by a member of the core team. Package-Update This package needs to be updated Error-Hash-Mismatch The InstallerSHA256 Hash specified in the manifest doesn't match with the InstallerURL hash labels Aug 27, 2024
@xarthurx xarthurx changed the title [Package Issue]: Package.Identifier [Package Issue]: Zotero added 64-bit version in v7 but not handled by winget Aug 27, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot removed the Issue-Bug It either shouldn't be doing this or needs an investigation. label Aug 27, 2024
@David-Moody
Copy link

David-Moody commented Aug 27, 2024

Just had this same issue with a fresh install. Winget defaults to 32-bit installer for 7.0.2. Winget will behave correctly if given:
winget install Zotero -a X64 --force
Force was required, as without it, it reuses the 32 bit installer previously downloaded.

I don't have anything useful on why it picks the wrong architecture installer.

@fancybody
Copy link
Contributor

Only the latest version 7.0.2 manifest has all three architectures - x64, x86 and arm64.
I have added x64 and arm64 installers to the last version 7.0.1.

Future versions can be maintained accordingly.

@treysis
Copy link
Contributor

treysis commented Nov 28, 2024

How does winget determine which version to use?

@denelon denelon added this to the 1.10 Packages milestone Dec 3, 2024
@mfaathirarsa
Copy link

It seems that this problem is still present in version 7.0.11

The following packages have an upgrade available, but require explicit targeting for upgrade:
Name   Id                    Version Available Source
-----------------------------------------------------
Zotero DigitalScholar.Zotero 7.0.9   7.0.11    winget

C:\Users\Admin>winget update DigitalScholar.Zotero
Found Zotero [DigitalScholar.Zotero] Version 7.0.11
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Downloading https://download.zotero.org/client/release/7.0.11/Zotero-7.0.11_win32_setup.exe
  ██████████████████████████████  83.5 MB / 83.5 MB
Successfully verified installer hash
Starting package install...
Successfully installed

C:\Users\Admin>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Error-Hash-Mismatch The InstallerSHA256 Hash specified in the manifest doesn't match with the InstallerURL hash In-PR Needs-Triage This work item needs to be triaged by a member of the core team. Package-Update This package needs to be updated
Projects
None yet
6 participants