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=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=NOJtpj5k/5BG8nKW6vuYzC+9yVzWYwMMq+QT0QA0ces=; b=NFzDaWEMh754T4KzpuT43S4MSTvDa2HN8VWOf8ExijP2GkFOJupYsrDhsNv62pJE04 mJN/P6/cVoyFPillkhJN+MN63VYhntwVjwkUfYTznok9mpRMFJ9KIeDYHXo0fiO5dyrq 72A2M3TcH9CDUA2OSTY/biw+IOtBcSZr2zaN8= This is not supported as far as I know. I would guess you can deal with this limitation at different level: - in your script, making sure to clearly report the error to the installation log. This will help cover the case where there's no user session (ARD install for instance) - in your script, using an external too to display the error dialog. When there is a user session. On Fri, Dec 2, 2011 at 7:11 AM, Andy O'Meara <andrew.omeara@soundspectrum.com> wrote:
Hey Stephane, long time! :) As always, you're a kind and generous help here on installer-dev.
With some google sleuthing, I found a host copy of the now-removed javascript installer docs:
http://www.filibeto.org/unix/macos/lib/dev/documentation/DeveloperTools/Refe...
As you said, it lists to message method of any kind, which is really quite sad since a message/confirm dialog box isn't a security issue. Around once a year the OS X installer subsystem always seems to want to push me to an early, frustration-induced grave ugh. So basically the only way to display an installer message is to authenticate and then run a shell script -- sigh.
A workaround is to insert my checks in preflight, but I can't get the returned preflight error code to cause the appropriate string error message to appear (instead the generic default message always appears: "The installer encountered an error that caused the installation to fail…"). Anyone know if there's a way to get your own message in there?
Thanks, Andy
On Dec 2, 2011, at 3:44 AM, Stephane Sudre wrote:
The complete answer:
The Installer JavaScript Reference guide has been removed from the ADC web site many months ago. There's no reason why (maybe someone was absolutely hating it).
Anyway, it's possible to find it in previous old Xcode distributions and you can not display a message box with the APIs. You need to use an external tool to do this.
On Fri, Dec 2, 2011 at 6:10 AM, Andy O'Meara <andrew.omeara@soundspectrum.com> wrote:
Hey gents,
I've been trying to get docs on the full list of javascript commands available from inside a package .dist file despite my best googling efforts. I'm trying to display a message box with an ok and cancel button, so if anyone has any leads it would be very appreciated. Perhaps there's a good link that goes into an available command reference?
Thanks in advance, Andy _______________________________________________ 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/dev.iceberg%40gmail.com
This email sent to dev.iceberg@gmail.com
_______________________________________________ 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