Re: Installer Plugins - how to run as root?
Re: Installer Plugins - how to run as root?
- Subject: Re: Installer Plugins - how to run as root?
- From: Bill Coderre <email@hidden>
- Date: Fri, 11 May 2007 14:43:12 -0700
On May 11, 2007, at 12:14 PM, Andy Kim wrote:
At the end of the install, I have a panel to enter some user data,
and another panel to download a file into the application's
bundle. I have this implemented as two Installer Plugins
(EmailPlugin and DownloadPlugin). Using the excellent Iceberg
tool, I placed the EmailPlugin and DownloadPlugin right after the
Install panel (right before the Finish Up panel). I have "Root
Authorization" required for the package. EmailPlugin creates a
file in /Library/Application Data/<app>. DownloadPlugin creates a
file in /Application/<app>.app
There are many who believe that the installer should ask ALL of its
questions BEFORE the user hits install. (cf. "About Face" by Cooper
and Reimann. In the first edition, Cooper calls installers that ask
users questions during install, "Klingon interrogation mode" among
other choice epithets.)
Assuming that you can just as easily ask for all the information
before install as after, pose your plugins as part of the Welcome/
ReadMe/License sequence, write the info into Installer Temp, then
have your scripts copy the information to the appropriate places in
postflight scripts.
Then the user can deal with everything before install starts, and if
they find a question they don't understand, they can back out and
email someone, as opposed to leaving their machine stuck in the
installer while they frantically phone their sysadmin for help. (The
"Principle of Least Surprise," another rule of thumb, suggests you
don't let the user irrevocably commit to a task and then ask for
information they might not have.)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden