Client Auto-Update Does Not Work
My Setup
-
Operating System: Windows 10 1909 & 2004 Releases
-
App Version: 2.17.10
-
Installation type: exe
-
[x] I have tested with the latest version
-
[X] I can simulate the issue easily
Description
Automatic update doesn't work. User is prompted and informed that install will proceed once new client is downloaded. But nothing happens.
Current Behavior
-
User is notified that there's an update available and clicks on "INSTALL UPDATE"

-
Dialog pops up letting user know they'll be notified when update is ready to be installed

-
No notification occurs, no update is installed
-
Update installer file is downloaded to "C:\Users[username]\AppData\Local\rocket-chat-updater\pending"
-
File is called "temp-rocketchat-setup-2.17.11.exe

-
After file is downloaded it disappears
Expected Behavior
- After updated is downloaded, the installer is started and the user is notified
Additional Info
This issue has been around a very long time. At least since I've been using Rocket.Chat which was 3 years ago now. As updates have been coming out we've been instructing users to update manually by downloading the releases through github, but this is tedious as some users don't want to take the time to do it and others don't feel comfortable installing software. It also causes confusion for people who do try, but are constantly prompted that there's an update still every time they launch the client.
Looks like a (nicely documented) duplicate of #1205. We've also observed this issue too going back at least several months in successive version.
This also appears to be similar to issue #1300
A new bit of info that I hadn't seen in the others. This may be caused by Windows Smart Screen interfering and not posting a pop-up. I manually downloaded .11 for the update and when I went to install I received a smart filter alert that Windows Defender had prevented it from running as seen below.

So, maybe this is a false positive and breaking the install process, or the binary off github has somehow been posted with malicious content?
I have had this problem for years. It silently fails, I guess--nothing happens at all except when I reboot, it again reminds me that I need to update, I tell it fine, and it tells me it will tell me when it's ready. It never is ready, apparently...
I think the background downloading is doing a disservice here, especially when it's so unreliable (read: it doesn't work at all, for anyone that I know using it). Instead, download it in the foreground, which should be pretty fast, and when it's done, let the user launch it. Maybe then, they will be able to see what error is occurring, if any.
As of now, users click ok, then forget about it, thinking it will update later, when it won't. I'm not sure why this is so hard to get right.
Same Issue here. Installer/Updater just disappears.
@canuckbrian @Dimitrie23 I don't know why, but today it worked! I upgraded from 2.17.9 to 2.17.11 by auto-update feature. Please check it now.
@ankar84 Just tested it. Did still not work on one of our notebooks.
Edit: Same behaviour as mentioned by OP. Download works but updater disappears without a warning/error.
I'm guessing it's an asynchronous bug in electron-updater, because I've never been able to reproduce at >= 2.16.*.
@adipose
I think the background downloading is doing a disservice here, especially when it's so unreliable (read: it doesn't work at all, for anyone that I know using it). Instead, download it in the foreground, which should be pretty fast, and when it's done, let the user launch it. Maybe then, they will be able to see what error is occurring, if any.
One workaround I'm trying to code (but I haven't found time to work on it) is make it unobtrusive as Electrons apps as Visual Studio Code do: showing a small badge instead of a modal dialog.
I don't get it, are you saying after 2.16 the issue is fixed in some way? That would be great...
Still have this issue for update to 3.0.0.
So, I too have finally had a chance to test this again, and my 2.17.7 is failing the auto-update to 3.0. So, no fix has occurred.
What steps were taken to fix it before, because it doesn't seem to be working!
Same here from 2.17.11 to 3.0.1. It will be downloaded locally as mentioned above but the installer/updater never appears.
I think it's fixed only in 3.0.0 so don't expect it magic work in 2.17.11
3.0.0 => 3.0.1

Nope, upgrade 3.0.0 => 3.0.1 does not work for me. I have a per user installation (i.e. in AppData/Local).
Nope, upgrade 3.0.0 => 3.0.1 does not work for me. I have a per user installation (i.e. in
AppData/Local).
Mine was system wide installation and required Administrator credentials. But was successful.
Auto-update of Windows client still does not work. Same symptoms like the original description of this issue.
Attempted: 3.0.1 => 3.0.2. Windows 10 version: 2004. System-wide RC client installation.
It seems that this is only an issue on newer Windows 10 builds, hence the appearance that it was fixed (reading the comment of @ankar84 above). I might be wrong, but I suspect that it worked for ankar84 because he is running RC on an older windows version.
Currently to me this is the most annoying RC client bug, for multiple reasons:
- it confuses end-users by promising an update which never takes place;
- it annoys users by repeatedly offering to update on every RC client start (unless choosing to "skip this version");
- most users do not feel comfortable to manually download and run the new installer over the existing installation.
I think @alc123ng could be right.
Successful update was not on most modern Windows release (I can clarify version on Monday).
Today I try update 3.0.1 => 3.0.2 on my home laptop on Windows 10 2004 and it was not successful.
Here some details
Update screen and information about update process - that's good
Here is a new file C:\Users\ankar84\AppData\Local\rocketchat-updater\pending\temp-rocketchat-setup-3.0.2.exe for distributive download
After file temp-rocketchat-setup-3.0.2.exe was downloaded system start search prowershell.exe to execute command
powershell.exe -NoProfile -NonInteractive -InputFormat None -Command "Get-AuthenticodeSignature 'C:\Users\ankar84\AppData\Local\rocketchat-updater\pending\temp-rocketchat-setup-3.0.2.exe' | ConvertTo-Json -Compress | ForEach-Object { [Convert]::ToBase64String([System.Text.Encoding]::UTF8.GetBytes($_)) }"
I think that command was successful and issue not here
And here is something not normal
For some reason file temp-rocketchat-setup-3.0.2.exe not transform to file rocketchat-setup-3.0.2.exe but temp file deleted
I try to search Windows Event logs for something strange, but couldn't find anything.
Windows 10 1803 - Update works perfect

Same for me. Just tells me 3.0.0 is available, then 3.0.1 now this morning 3.0.2. Give me the option to skip or install. When I select install it does not. I get this error message every morning and I'm on version 2.17.11
3.0.2=>3.0.3 failed on W10 1809
Then it's gone

Same issue with 3.0.2 -> 3.0.3, Win 10 (64 ) Build 2004.