Help: How to skip installing previously downloaded update (version A) and directly update to latest version (version B) when checking for updates? #2835
Replies: 1 comment 3 replies
-
It’s not immediately or controlled by the developer in this case upon checking for updates (unless the user driver is being abused). Assuming the update has been automatically downloaded/started installing in the background, the user is provided the option to relaunch the app from an update that has already started installing in the background. Or if they quit the app the update can install automatically. The user is also provided another option to skip the update which will cancel it. Again not controlled by the developer.
This shouldn't be immediate btw unless you are force triggering a background update check. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Sparkle version:2.8.0
Suppose version A has already been downloaded locally but not installed, and version B has just been released on the server. When triggering checkForUpdate, the application immediately restarts and, after restarting, automatically downloads version B in the background. After checking the source code, I found that in the checkForUpdatesWithDriver method, if the installer process has already been started, the installation is triggered directly.
Is there a way to skip installing version A and fetch the update configuration for version B directly when checking for updates, without restarting the application in this situation? Alternatively, is it possible to provide a cancellation method to remove the previously downloaded installation package for version A and clear its update records (and perhaps exit the installer process too)?
Beta Was this translation helpful? Give feedback.
All reactions