Skip to content

Updater on Windows: close and install - don't restart #3076

@rasteiner

Description

@rasteiner

On Windows.
I'm finding myself in the need to run update.install(bytes) without wanting the installer to restart my app.

Use case: I'm installing updates from RunEvent::ExitRequested so that I don't have to interrupt the user.

The app checks and downloads the update in the background and then installs it when the user either clicks on a Relaunch to apply update button (and the app correctly restarts) OR when the user closes the app, where I don't want to have it restarted.

Ideally there would be something like a Update::install_without_restart function or something to set on Update, and not so much something on UpdateBuilder as I don't know how the update will be installed when I "build" it.

Additional Context

I've seen a /R flag is passed to the NSIS installer, and a AUTOLAUNCHAPP=True to MSI.

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