RE: Installer JavaScript development question.
site_archiver@lists.apple.com Delivered-To: installer-dev@lists.apple.com Thread-index: ActgmJyrFQ2eK3N7RDCiGJgZMgdW0QAQIXNw
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:dev.iceberg@gmail.com] Sent: September 30, 2010 8:03 AM To: Alexander Klyuev Cc: installer-dev@lists.apple.com Subject: Re: Installer JavaScript development question. On Wed, Sep 29, 2010 at 8:55 PM, Alexander Klyuev <klax@musiclab.com> 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 (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
participants (1)
-
Alexander Klyuev