How can I install an update and restart an application at any time? #2557
Unanswered
ivan-diachenko-td
asked this question in
Q&A
Replies: 1 comment 3 replies
-
I think you can just not release the update UI session (not call |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello team,
Disclaimer: I don't use Sparkle UI, I override
SPUUserDriver
,SPUUpdaterDelegate
and use my implementations when creatingSPUUpdater
.I am trying to implement an update installation and restart at any time. I want to be able to check for an update, download it if it exists but dismiss the installation (AFAIK it can be done in
![image](https://private-user-images.githubusercontent.com/59976871/329242386-0705adfa-1a43-4e1d-960e-e6855ef68eb5.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ3MzAxNzEsIm5iZiI6MTcyNDcyOTg3MSwicGF0aCI6Ii81OTk3Njg3MS8zMjkyNDIzODYtMDcwNWFkZmEtMWE0My00ZTFkLTk2MGUtZTY4NTVlZjY4ZWI1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODI3VDAzMzc1MVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWZhNWU1YTMxMGZiNjg4YzRhMmIwMWMxMTY4MDFmMzIyYzE2ZTNlYTk3YmMyY2Y3ZTAyMjE0YTc3YWRkNGQ4ZDgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.ory8ePiXqgJJ7Jnd-EZ144wSxcaU42m9ZOsoLoEdH6E)
showReadyToInstallAndRelaunch.reply(SPUUserUpdateChoiceDismiss)
) so as to release the session and be able to do checks for updates later. But now I stumbled with how to install an update and restart the applications. I want to be able to implement a similar to Chrome's behavior with its "Relaunch to update" button:If I just restart my app there are no guarantees that I will launch the same version and there would not be any issue since the restart process knows nothing about Sparkle updating the application.
Please, let me know if it is possible.
Beta Was this translation helpful? Give feedback.
All reactions