• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: package javascript reference?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: package javascript reference?


  • Subject: Re: package javascript reference?
  • From: Stephane Sudre <email@hidden>
  • Date: Fri, 02 Dec 2011 16:47:51 -0800

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
<email@hidden> 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/Reference/InstallerJavaScriptRef/InstallerJavaScriptRef.pdf
>
> 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
>> <email@hidden> 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      (email@hidden)
>>> Help/Unsubscribe/Update your Subscription:
>>>
>>> This email sent to email@hidden
>
 _______________________________________________
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

References: 
 >package javascript reference? (From: Andy O'Meara <email@hidden>)
 >Re: package javascript reference? (From: Stephane Sudre <email@hidden>)
 >Re: package javascript reference? (From: Andy O'Meara <email@hidden>)

  • Prev by Date: Re: package javascript reference?
  • Next by Date: Re: package javascript reference?
  • Previous by thread: Re: package javascript reference?
  • Next by thread: Re: package javascript reference?
  • Index(es):
    • Date
    • Thread