Implement a programmatic cancel of an updpate #2502
Replies: 1 comment 2 replies
-
If the user checks for updates they have the option to skip and cancel the update that is staged to be installed (from the user driver). If you don't check for updates, you won't know if there's an update staged to be installed. The app itself could download and stage the update to be installed automatically, and your updater may be able to pick that up and resume installing it. That also means there are cases where you do not want to programmatically/automatically cancel an update because the update could have been started by another updater. So the design leans towards that users should cancel updates.. It may be helpful to elaborate more on your use case / scenario and why you want to cancel an update that has already been downloaded. |
Beta Was this translation helpful? Give feedback.
-
Hello! I am using Sparkle, more specific the SPUUpdater, to update another application. I would like to have an option to cancel an update programmatically when automaticallyDownloadsUpdates is set to true, and SPUAutomaticUpdateDriver is performing the update.
Possible Fix
The SPUAutomaticUpdateDriver as other SPUUpdateDrivers has abortUpdateWithError method which does exactly what I need, but this method is not reachable from the SPUUpdater interface, or from UserDriver, or the UpdaterDelegate that are passed to the SPUUpdater.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions