Re: Need to alert user from install script in metapackage
site_archiver@lists.apple.com Delivered-To: installer-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=saqQbJ9MraPH30kClVUj2NJgjzIq/bvPYs4rBYCtoio=; b=hiPoIK91wssCiywq6N4yflqrEZUfmxSWOHtxwRXCsCbdvvU63EZsQlXBErLsHvfLqc 2vSjMqIhLJk1lOLtNmACArw24NVAIeyY2Bde6RgoYbnrwuMd0bKFq6+8u9YWRFFAT67J 8sK9WZrEGV7Os7AeXxnj6pfhEQD49m/I0dvEA= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=AocJvM659ZKWRqs+i5HA1Cnhj5lfh8xWwFBfekRZsHAmJ7kNRhclZBTgS1xQWrfkWV SJEIsNaqI1rvnXSNTK+SPlmyvhJDWrhzj0uD3IVBF44Gr+b/84O31cpVomPAJMi1HJxY q/d2+eq3JoS2caKWjmOYYMTvrMn95ElH13q1Y= On Tue, Nov 2, 2010 at 12:51 AM, Monte Benaresh <monte@paceap.com> 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/Referen...). _______________________________________________ Do not post admin requests to the list. They will be ignored. Installer-dev mailing list (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/installer-dev/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com
participants (1)
-
Stephane Sudre