TakataSanshiro / Chocolatey-Packages

Some packages that can be installed via chocolatey.org
MIT License
15 stars 29 forks source link

Choosing a specific version doesn't work #103

Closed opusforlife2 closed 9 months ago

opusforlife2 commented 9 months ago

Chocolatey lets you use the --version parameter to download a specific version of a package. However, doing this with Element-Desktop doesn't seem to work. The package itself is indeed the version that you specify using the parameter, but the installer that gets downloaded is for the latest version instead. I got 1.11.50 instead of 1.11.49.

TakataSanshiro commented 9 months ago

choco install element-desktop --version 1.11.49 It's working as I expected. The element-desktop package contains the version installer, Element Setup 1.11.49_x64.exe.

The installer is downloaded on this path. C:\ProgramData\chocolatey\lib\element-desktop\tools There is available Element Setup 1.11.49_x64.exe

Element Desktop application All Settings> Help & About> Versions Element version: 1.11.49

I guess, Element Desktop is automatically updated when the app running.

opusforlife2 commented 9 months ago

Ah, no, it turns out there is some confusion here. I still have the installer exe which says 50 instead of 49. But when I checked the version from within the app after installing, it said 49. :/

I am speculating here: My firewall blocks the update.exe file that Element uses to update itself. My guess is that since that connection was denied, the "update" (which wants to occur as part of the installation, for some weird reason) failed, and Element had to fall back to using whatever data it currently had, which was its data from version 49 that was already present from a previous install.

So my tentative conclusion is that these are side effects of Electron/Squirrel shenanigans. I wish there were a zip version of the app so that there could be more control over this process.