Electron.AutoUpdater.OnDownloadProgress not getting called during differential update download #816

Closed
opened 2026-01-29 16:49:23 +00:00 by claunia · 3 comments
Owner

Originally created by @edotappstore on GitHub (Jul 28, 2022).

We are using SignalR package to show the download progress to our electron desktop application. But it was found that the Electron.AutoUpdater.OnDownloadProgress was not getting called during differential update download after Electron.AutoUpdater.DownloadUpdateAsync(); was called.

electron1

However after deleting all the files inside C:\Users\username\AppData\Local\electron-updater and calling DownloadUpdateAsync(); the OnDownloadProgress works.
electron3

electron2

Electron Package: ElectronNET.API Version:13.5.1

.Net Version: 5.0
Node Version: v14.15.0

Electron.AutoUpdater.OnDownloadProgress += async (info) =>
{
var percentage = Math.Round(Convert.ToDouble(info.Percent), 1);
var totalsizeinmb = FormatSize(Convert.ToInt64(info.Total), "MB");
var downloadspeedinmb = FormatSize(Convert.ToInt64(info.BytesPerSecond), "MB");
var transfereedinmb = FormatSize(Convert.ToInt64(info.Transferred), "MB");
Console.WriteLine("percentage: " + percentage + "totalSize: " + totalsizeinmb + "downloadspeed: " + downloadspeedinmb + "transferSpeed: " + transfereedinmb);
await app.ApplicationServices.GetRequiredService().Clients.All.SendAsync("ReceiveDownloadProgress", percentage.ToString(), downloadspeedinmb, transfereedinmb, totalsizeinmb);
};

Originally created by @edotappstore on GitHub (Jul 28, 2022). We are using SignalR package to show the download progress to our electron desktop application. But it was found that the Electron.AutoUpdater.OnDownloadProgress was not getting called during differential update download after Electron.AutoUpdater.DownloadUpdateAsync(); was called. ![electron1](https://user-images.githubusercontent.com/98312418/181424538-0bd59625-ab23-46d3-9926-44cad843e691.PNG) However after deleting all the files inside C:\Users\username\AppData\Local\electron-updater and calling DownloadUpdateAsync(); the OnDownloadProgress works. ![electron3](https://user-images.githubusercontent.com/98312418/181424566-698939c1-fd42-4116-ba9d-773e142b34b2.PNG) ![electron2](https://user-images.githubusercontent.com/98312418/181424686-33f1a6fc-b897-46ae-8511-75f9bf81c846.PNG) Electron Package: ElectronNET.API Version:13.5.1 .Net Version: 5.0 Node Version: v14.15.0 Electron.AutoUpdater.OnDownloadProgress += async (info) => { var percentage = Math.Round(Convert.ToDouble(info.Percent), 1); var totalsizeinmb = FormatSize(Convert.ToInt64(info.Total), "MB"); var downloadspeedinmb = FormatSize(Convert.ToInt64(info.BytesPerSecond), "MB"); var transfereedinmb = FormatSize(Convert.ToInt64(info.Transferred), "MB"); Console.WriteLine("percentage: " + percentage + "totalSize: " + totalsizeinmb + "downloadspeed: " + downloadspeedinmb + "transferSpeed: " + transfereedinmb); await app.ApplicationServices.GetRequiredService<IHubContext>().Clients.All.SendAsync("ReceiveDownloadProgress", percentage.ToString(), downloadspeedinmb, transfereedinmb, totalsizeinmb); };
claunia added the bug label 2026-01-29 16:49:23 +00:00
Author
Owner

@arthurvalentereis commented on GitHub (Apr 24, 2024):

I have the same problem, is there any solution?
When I manually delete installer.exe it works for me too.
I'm researching this and found this:

I will keep trying to solve

@arthurvalentereis commented on GitHub (Apr 24, 2024): I have the same problem, is there any solution? When I manually delete installer.exe it works for me too. I'm researching this and found this: - https://github.com/electron-userland/electron-builder/issues/4919 - https://github.com/Cypherock/cypherock-cysync/pull/259 I will keep trying to solve
Author
Owner

@Matsu-v commented on GitHub (Jun 23, 2024):

Is there any solution yet?
As far as I could find it looks like that when updating with differential updater the messages will not emit.
There is this package that fixes that for electron, maybe worth a shot to implement it in electron.NET?
Electron Differential Updater

@Matsu-v commented on GitHub (Jun 23, 2024): Is there any solution yet? As far as I could find it looks like that when updating with differential updater the messages will not emit. There is this package that fixes that for electron, maybe worth a shot to implement it in electron.NET? [Electron Differential Updater](https://github.com/imjsElectron/electron-differential-updater)
Author
Owner

@FlorianRappl commented on GitHub (Oct 31, 2025):

Outdated - use ElectronNET.Core and ElectronNET.Core.AspNet.

See Wiki / What's New.

@FlorianRappl commented on GitHub (Oct 31, 2025): Outdated - use `ElectronNET.Core` and `ElectronNET.Core.AspNet`. See [Wiki / What's New](https://github.com/ElectronNET/Electron.NET/wiki/What's-New).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Electron.NET#816