Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
edotappstore opened this issue Jul 28, 2022 · 1 comment
Labels

Comments

@edotappstore
Copy link

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);
};

@arthurvalentereis
Copy link

arthurvalentereis commented 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants