Re: Need to alert user from install script in metapackage
Re: Need to alert user from install script in metapackage
- Subject: Re: Need to alert user from install script in metapackage
- From: Stephane Sudre <email@hidden>
- Date: Tue, 2 Nov 2010 13:11:43 +0100
On Tue, Nov 2, 2010 at 12:51 AM, Monte Benaresh <email@hidden> wrote:
[...]
> What I would like to do is:
>
> 1. Communicate the result of each sub-component's InstallationCheck to the metapackage preflight script.
>
> 2. Show an alert message to the user from the metapackage preflight script.
>
> Is it possible to do either one of these?
[1] is possible if you use an external file to store the results. But
this would require checking that the scripts are run in the same order
on every major release of the OS you want to support. For instance,
you could 'touch' a file in /tmp when an InstallationCheck script
allows a package to be installed and not display the alert message
when the file exists. You would need to remove the file upon
installation just in case.
[2] is possible with a helper tool using for instance the
CFUserNotification APIs
(http://developer.apple.com/library/mac/#documentation/CoreFoundation/Reference/CFUserNotificationRef/Reference/reference.html).
_______________________________________________
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