Delegate method for updater: willNotInstallUpdate: ?

Asked by Cranky

I have an app which is a client for a shared database application (small office management). Some updates may force schema updates (which are built into the app but require administrator permissions to run).

I want to do sparkle checks before connecting to the database because the db connection sequence is very expensive. So I've adopted the new version and moved the database connect code to delegate>>updaterDidNotFindUpdate:

If there is an update and the user installs it, I don't want to connect to the database because the app is going to just restart.

But there is another scenario - suppose it did find an update, but the user declines to install it? I want to connect to the database at this time and let the user proceed (and then make sure the schema version is correct....). There is apparently no way to detect this given the current set of delegate methods.

So I know there's an update, but I have no idea what the user decided to do about it.

Question information

Language:
English Edit question
Status:
Solved
For:
Sparkle Edit question
Assignee:
No assignee Edit question
Solved by:
Cranky
Solved:
Last query:
Last reply:
Revision history for this message
Andy Matuschak (andymatuschak) said :
#1

A delegate method would be nice for giving the user's response in that situation. File a bug and I'll look into it. Thanks!

Revision history for this message
Cranky (tblanchard) said :
#2

Bug filed.

I've also got a workaround in that I present my own update dialog after using checkForUpdateInformation and only present two buttons. Install Update, Don't Install Update. So that's what I'm doing now. If an update is found, I move on to call checkForUpdatesInBackground.