-
I am having some trouble getting Sparkle to relaunch my application as a part of calling checkForUpdatesInBackground. It will check for updates, download them and install them properly on quit when I manually quit the application. But I can't get it to do the relaunch automatically. None of the below delegate methods seem to be getting called when using checkForUpdatesInBackground:
I do note, however, that updaterShouldRelaunchApplication DOES fire off when using checkForUpdates. Am I perhaps missing something? If I use SUUpdater, the delegate methods above DO fire off, but using this is deprecated so I am trying to move the new stuff. SUUpdater does appear to work when using checkForUpdatesInBackground, but when it tries to relaunch the application, an unhandled exception is thrown. I have been assuming that's because I need to move to the newer classes, but can't seem to get them to work for my particular scenario, so I seem to be stuck. Any help would be greatly appreciated! I have attempted to use all manner of combinations of the configuration settings that potentially relate to this, but no luck. Settings I have tried:
Note: I did do some searching through previous issues and discussions, but all the answers I found were for SUUpdater, from 2018 and before. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
As the API docs state, used for preventing the user from relaunching, so not applicable to you.
Deprecated/old API. Replaced by -updater:willInstallUpdateOnQuit:immediateInstallationBlock: which is what you want.
For postponing the user relaunching the app, not what you want.
Not familiar with the exception. Please paste it. Yes you want SUAutomaticallyUpdate and maybe SUEnableAutomaticChecks (if you want to bypass asking user permission for Sparkle checking for updates automatically) and SUAllowsAutomaticUpdates (depending what you set SUEnableAutomaticChecks to). Read the documentation on the keys. |
Beta Was this translation helpful? Give feedback.
As the API docs state, used for preventing the user from relaunching, so not applicable to you.
Deprecated/old API. Replaced by -updater:willInstallUpdateOnQuit:immediateInstallationBlock: which is what you want.
For postponing the user relaunching the app, not what you want.
Not familiar with the exception. Please paste it.
Yes you want SUAutomaticallyUpdate and maybe SUEnableA…