RE: Installer JavaScript development question.
RE: Installer JavaScript development question.
- Subject: RE: Installer JavaScript development question.
- From: "Alexander Klyuev" <email@hidden>
- Date: Thu, 30 Sep 2010 16:04:56 -0400
> That being said, I don't see how only a JavaScript script would be able to
fix the permissions :
> - there is no API for that.
Here it is:
system.run('/bin/chmod', 'a+x',
<path_to_main_package_resources_folder_script>);
This works great; the only problem here I need to know
".../<MyPackage.pkg>/Contents/Resources" current path that is known by
system.run() internally but cannot be retrieved.
> - would you be using an external script you provide to do that, this
external script may be suffering from the same issue.
Exactly right!
> Provide the script as a zip archive. Unzip it from the JavaScript script
by calling a system tool. This should preserve the permissions.
Great idea (would be), however (!!!) how to get path to a zip? Same primary
problem...
Regards,
- Alexander
-----Original Message-----
From: Stephane Sudre [mailto:email@hidden]
Sent: September 30, 2010 8:03 AM
To: Alexander Klyuev
Cc: email@hidden
Subject: Re: Installer JavaScript development question.
On Wed, Sep 29, 2010 at 8:55 PM, Alexander Klyuev <email@hidden> wrote:
> Hi Bill,
>
> I need to fix "execute" permission for my requirement scripts before
> Installer runs them.
> For some specific reason I cannot use flat package type or .dmg shield
> for my installation package and scripts may lose "execute" permission
> during deployment steps.
> This makes inst package broken and I've not found any documented ways
> to check/repair permissions.
I would tent to believe there's none because when a package is broken, it's
broken.
That being said, I don't see how only a JavaScript script would be able to
fix the permissions :
- there is no API for that.
- would you be using an external script you provide to do that, this
external script may be suffering from the same issue.
In the history of stupid ideas, I have one that is claiming for the top
spot:
Provide the script as a zip archive. Unzip it from the JavaScript script by
calling a system tool. This should preserve the permissions.
_______________________________________________
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