Skip to content

Request for NSIS Updater API to Start Downloading #972

@evshiron

Description

@evshiron
  • Version: 10.5.0
  • Target: win32 ia32

Greetings,

I really appreciate it if there is an API to start downloading updates rather than the current all-in-one check-and-download autoUpdater.checkForUpdates function.

What I want is something like this:

autoUpdater.autoDownload = false;
autoUpdater.on('update-available', () => {
    if(confirm('New version is available, download now?')) {
        autoUpdater.on('update-downloaded', () => {
            if(confirm('New version is downloaded, quit and install now?')) {
                autoUpdater.quitAndInstall();
            }
        });
        autoUpdater.download();
    }
});
autoUpdater.checkForUpdates();

I can do and PR it but I want to know if it comforts you so feel free to discuss. Thanks.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions