plugins-workspace icon indicating copy to clipboard operation
plugins-workspace copied to clipboard

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

Open rasteiner opened this issue 1 month ago • 2 comments

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.

rasteiner avatar Oct 29 '25 16:10 rasteiner

/upstream tauri-apps/tauri

FabianLars avatar Oct 29 '25 16:10 FabianLars

looks like the bot isn't listening here 😂

FabianLars avatar Oct 29 '25 16:10 FabianLars