Install package silently?

Asked by Aaron Harpole

I have Sparkle implemented for a plugin which needs to be installed with a package. It works pretty well, but when you actually click "Install and Relaunch," the Installer app pops up (not to the front; it's behind the Sparkle window) and the user has to walk through the process. I'd like the update process to be as friction free as possible, and this isn't 100% intuitive.

Is there something I can do to my package that lets Sparkle install it without opening the Installer app? I'm perfectly okay with the password dialog popping up; I just don't want my users to have to walk through the install process to update.

Question information

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

If you need to use a package to provide some kind of additional logic or commands to be performed with the installation, you can always just make a custom build of Sparkle which performs those actions. But Sparkle doesn't support UI-less .pkg installations.

Revision history for this message
Aaron Harpole (nerd05) said :
#2

I was afraid of this. The reason I'm using an installer package is because this is a non-app bundle for the Mail app. Perhaps if I get ambitious one of these days I'll dig into Sparkle code and see if there's a way I can make it install silently.

Revision history for this message
Aaron Harpole (nerd05) said :
#3

Thanks Andy Matuschak, that solved my question.

Revision history for this message
Andy Matuschak (andymatuschak) said :
#4

Oh, if you're just trying to in-place update the bundle for which the SUUpdater is initialized, that should just work if you put the bundle in a .zip. See here for more: https://github.com/andymatuschak/Sparkle/wiki/Bundles.