You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| `isUpdateSupported(): Boolean` | Check if the current executable type supports auto-update |
186
186
| `suspend checkForUpdates(): UpdateResult` | Check for a newer version |
187
187
| `downloadUpdate(info: UpdateInfo): Flow<DownloadProgress>` | Download the installer with progress |
188
-
| `installAndRestart(installerFile: File)` | Launch the installer and exit the current process |
188
+
| `installAndRestart(installerFile: File)` | Launch the installer, exit the current process, and relaunch after install |
189
+
| `installAndQuit(installerFile: File)` | Launch the installer and exit without relaunching — the update is applied on next manual start |
189
190
190
191
#### DownloadProgress
191
192
@@ -256,7 +257,7 @@ fun UpdateBanner() {
256
257
257
258
### Installer Behavior
258
259
259
-
The `installAndRestart()` method launches the platform-specific installer and exits the current process:
260
+
The `installAndRestart()` method launches the platform-specific installer, exits the current process, and relaunches the app after installation:
260
261
261
262
| Platform | Format | Command |
262
263
|----------|--------|---------|
@@ -266,6 +267,31 @@ The `installAndRestart()` method launches the platform-specific installer and ex
266
267
| Windows | EXE/NSIS | `<file> /S` (silent) |
267
268
| Windows | MSI | `msiexec /i <file> /passive` |
268
269
270
+
### Silent Update with `installAndQuit()`
271
+
272
+
The `installAndQuit()` method works like `installAndRestart()` but does **not** relaunch the application after installation. The update is applied silently in the background and takes effect the next time the user opens the app. This is useful for applying updates transparently (e.g. when the user closes the app).
0 commit comments