Issue Description:
When attempting to install Winaero Tweaker via Chocolatey, users encounter a mismatched hash error for the downloaded winaerotweaker.zip file. The root cause of this issue lies in the download link behavior on the Winaero Tweaker website.
Details:
Download Link Behavior:
The Winaero Tweaker website does not update the download link when a new version is released.
Instead, it simply replaces the existing winaerotweaker.zip file with the latest version.
Installer Script Expectations:
The installer script expects a specific version (e.g., winaero-tweaker v1.55.0).
However, the download link provides a different version (e.g., v1.62.1.0).
Hash Mismatch:
As a result, the hashes do not match, leading to installation failures.
This is the output I got while trying to install the package-
PS C:\Users\Khalid> choco install winaero-tweaker -y
Chocolatey v2.2.2
Installing the following packages:
winaero-tweaker
By installing, you accept licenses for the packages.
Progress: Downloading winaero-tweaker.install 1.55.0... 100%
winaero-tweaker.install v1.55.0 [Approved]
winaero-tweaker.install package files install completed. Performing other installation steps.
File appears to be downloaded already. Verifying with package checksum to determine if it needs to be redownloaded.
Error - hashes do not match. Actual value was '8C5F942BB21CBA4C27877B5F2E81D021ACF24C65C6A42A0E272F5151A81A2BB7'.
Downloading winaero-tweaker.install
from 'https://winaerotweaker.com/download/winaerotweaker.zip'
Progress: 100% - Completed download of C:\Users\Khalid\AppData\Local\Temp\chocolatey\winaero-tweaker.install\1.55.0\winaerotweaker.zip (5.21 MB).
Download of winaerotweaker.zip (5.21 MB) completed.
Error - hashes do not match. Actual value was 'C3E711FB6519F106409D368DE9A37E7A0CE499FD609F0E938283FA32CD7FE212'.
ERROR: Checksum for 'C:\Users\Khalid\AppData\Local\Temp\chocolatey\winaero-tweaker.install\1.55.0\winaerotweaker.zip' did not meet '370095778b69f763af03e553f5a83b192c7183d098cb0d87350f66fb525573b8' for checksum type 'sha256'. Consider passing the actual checksums through with --checksum --checksum64 once you validate the checksums are appropriate. A less secure option is to pass --ignore-checksums if necessary.
The install of winaero-tweaker.install was NOT successful.
Error while running 'C:\ProgramData\chocolatey\lib\winaero-tweaker.install\tools\chocolateyinstall.ps1'.
See log for details.
Progress: Downloading winaero-tweaker 1.55.0... 100%
winaero-tweaker v1.55.0 [Approved]
winaero-tweaker package files install completed. Performing other installation steps.
The install of winaero-tweaker was successful.
Software installed to 'C:\ProgramData\chocolatey\lib\winaero-tweaker'
Chocolatey installed 1/2 packages. 1 packages failed.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Failures
- winaero-tweaker.install (exited -1) - Error while running 'C:\ProgramData\chocolatey\lib\winaero-tweaker.install\tools\chocolateyinstall.ps1'.
See log for details.
Enjoy using Chocolatey? Explore more amazing features to take your
experience to the next level at
https://chocolatey.org/compare
Issue Description: When attempting to install Winaero Tweaker via Chocolatey, users encounter a mismatched hash error for the downloaded
winaerotweaker.zip
file. The root cause of this issue lies in the download link behavior on the Winaero Tweaker website.Details:
winaerotweaker.zip
file with the latest version.This is the output I got while trying to install the package-