Re: How can I get path to install package from distribution script?
Re: How can I get path to install package from distribution script?
- Subject: Re: How can I get path to install package from distribution script?
- From: Yun Zhi Lin <email@hidden>
- Date: Wed, 19 Sep 2007 18:02:32 +0800
hi Stephane
Thanks.
I solve this problem by Jack's solution.
Stéphane Sudre ---2007-09-19 03:50:57---On mardi, septembre 18, 2007, at 12:01 PM, Yun Zhi Lin wrote: > Hi all
From: |
Stéphane Sudre <email@hidden> |
To: |
Yun Zhi Lin/China/IBM@IBMCN |
Cc: |
email@hidden |
Date: |
2007-09-19 03:50 |
Subject: |
Re: How can I get path to install package from distribution script? |
On mardi, septembre 18, 2007, at 12:01 PM, Yun Zhi Lin wrote:
> Hi all
>
> Currently I have one distribution package and I do installation check
> in distribution script.
>
> The structure of my install disk image is like:
>
> <root of disk>
> dist.mpkg
> install.configuration
>
> During installation, I need to read the install.configuration file and
> do some configuration jobs based on the content of this file. If the
> file is missing, I would like to stop the installation and give users
> some information about the error.
>
> I try to check the existence of install.configuration in installation
> check. But unfortunately,I could not get the path to install package
> from distribution script.I search developer.apple.com but could not
> find answer. Does anyone know how to do this? Is there any other
> possible ways to solve my problem?
If I am to believe the list of objects available through _javascript_ as
described in the up-to-date docum... ahem in the 2005 release notes,
the answer seems to be that you can not get a file reference to your
distribution script. But I may be wrong.
You could use an InstallationCheck shell script with a custom error id
(and appropriate message error strings) to work around this.
_______________________________________________
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