-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Abort download #1150
Comments
What do you mean? |
when autoUpdater download release file, and another event is emitted, I want programmatically abort (stop) download in progress and delete file in temp directory.
Thanks |
Hi developer, Thanks |
You can abort download —
But —
It is a different issue. To investigate (currently we suppose that OS will delete temp files). |
I use generic provider on windows OS |
we automatically delete temp file, because if download fail, on reopen app, it try dowload update. Repeating this step many times and create problem on disk full temp directory. |
The problem is that while downloading the update, I wish I could stop at any time. Then if it is blocked or fails for other reasons, the temporary file should be deleted. |
when autoUpdater download release file, and another event is emitted, I want programmatically abort (stop) download in progress and delete file in temp directory.
Thanks |
when autoUpdater download release file, and another event is emitted, I want programmatically abort (stop) download in progress and delete file in temp directory. thanks |
up |
UpdateCheckResult now has |
Docs will be updated later. |
hi developer, |
How is the implementation to abort the Download? I'm not clear in this aspect, checkForUpdates return a promise which I see on the JSON, but the implementations, to stop by user's demand, when autoDownload is false ? |
Set import { CancellationToken } from "electron-updater"
const cancellationToken = new CancellationToken()
autoUdater.downloadUpdate(cancellationToken)
// stop download
cancellationToken.cancel() |
@New-key I don't want expose |
Am I doing this right ?
when i trigger |
@genesy hi ,i face the same problem ,can you fixed it? |
@jason-zuo nope just left it as is. might be meant that way |
|
I called The log file is
How can I make it works again Thanks Update:
|
but i can‘not find some way to remuse download ... |
Try this
|
last tag
all
Make it possible abort download?
The text was updated successfully, but these errors were encountered: