Chocolatey 0.19.1 BROKEN

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
Post Reply
xgpt
Posts: 1
Joined: Thu Oct 01, 2020 1:33 am

Chocolatey 0.19.1 BROKEN

Post by xgpt »

Fix from DisQus commenter KeithFromCanada • 4 days ago : permalink: http://disq.us/p/2g3gbuo
It is a bit of a hassle, but here is how to successfully install it.
1. Run the install command as usual, but *DON'T* press Y. (Leave the install script running.)
2. Open up an admin-level Notepad.
3. Open up 'C:\ProgramData\chocolatey\lib\freecad\tools\chocolateyInstall.ps1'
4. Find 'WIN-x64-installer.exe' and change it to 'WIN-x64-installer-1.exe'
5. Save the file but DON'T close Notepad.
6. Go back to the PowerShell window and press <y><enter> to continue the script. It will fail with a mismatched hash.
7. Look in the window for 'Error - hashes do not match. Actual value was' and copy the hash there. (It is the hash for the real installer file.) Mentally note the first few characters of the hash that follows 'did not meet'.
8. Go back to Notepad and look for the hash that starts with the characters that you mentally noted. Replace it with the hash you copied.
9. Save the file and close Notepad.
10. Rerun the altered script.
11. PROFIT!!!
So basically the linky link and the checksum need to be updated.

This fix works...but goodness what a bad impression on a new user! That being said thank you to whoever manages the chocolatey packaging, it's been a godsend with the rapid updates of the 0.19 GitHub development packages on Windows for me as a casual user!
chrisb
Veteran
Posts: 54192
Joined: Tue Mar 17, 2015 9:14 am

Re: Chocolatey 0.19.1 BROKEN

Post by chrisb »

Hi and welcome to the forum!

Thanks for this fix, I will add it to the Known OS specific issues.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
lalberts
Posts: 87
Joined: Fri Feb 05, 2016 2:40 pm
Location: Esslingen am Neckar

Re: Chocolatey 0.19.1 BROKEN

Post by lalberts »

Still broken:
choco says:
Attempt to get headers for https://github.com/FreeCAD/FreeCAD/rele ... taller.exe failed

because we have an installer1.exe and with this the same hash problem.

almost same solution as above:
run choco upgrade freecad in an admin win10 powershell.
before pressing y
open with an admin notepad++ session the chocolateyinstall.ps1 script
replace installer.exe with installer1.exe AND replace the hash256 with the one available in github.
then continue with :y

lukas
raycekar
Posts: 2
Joined: Tue Mar 02, 2021 12:10 am

Re: Chocolatey 0.19.1 BROKEN

Post by raycekar »

Seems to be broken for 19.2 as well. Does anyone know how this can be fixed by whomever updates this in Chocolaty?
Post Reply