Re: package javascript reference?
Re: package javascript reference?
- Subject: Re: package javascript reference?
- From: Bill Coderre <email@hidden>
- Date: Fri, 02 Dec 2011 21:57:17 -0800
I'm not understanding what it is that you want to test and report an error about, that you can't do it in the distribution, and must do it in the preflight.
If you give me more information about what specifically you want to test, I'll try to suggest an answer.
As for the missing JavaScript document, I'll look into why it went missing.
On Dec 2, 2011, at 7:11 AM, Andy O'Meara 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
_______________________________________________
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