RE: External shell script in flat packages
I am using PackageMaker 3.0.5 and I need to support 10.5.8 as well. Is there any alternative for PackageMaker to achieve this ? I am on Lion machine and my flat distribution has embedded script which resides in "Scripts" Folder not in "Resources" folder. The Installer app copying it well on temp folder and trying to run it. But got the error "Error while running task TEMP_FOLDER/script.sh launch path not accessible”. When I am running the same script resides in TEMP_FOLDER on terminal, it goes well. But don’t have any idea why installer throws error while running. Do anyone have any idea why I am getting the error. ~Khushneet -----Original Message----- From: installer-dev-bounces+ksingh=quark.com@lists.apple.com [mailto:installer-dev-bounces+ksingh=quark.com@lists.apple.com] On Behalf Of Stephane Sudre Sent: Thursday, September 06, 2012 5:24 PM To: Installer-Dev mailing-list Subject: Re: External shell script in flat packages On Thu, Sep 6, 2012 at 1:36 PM, Khushneet Inder Singh <ksingh@quark.com> wrote:
Hi all,
I want to run the external shell script on the some choice. And want to use the result of script to select/unselect the choice. So far what I did is I added “Result of script” and choose that script file. And call that script with system.run(SCRIPT_NAME). Then I build the flat package. Once the package is created , I expanded it and create the “Scripts” folder and pasted the same script file, then flattened the expanded package. On running the package I am getting the error “Error while running task TEMP_FOLDER/script.sh launch path not accessible”. Are external scripts are supported in flat package?
Yes, they are supported by the flat distribution format. You can either use a script that is assumed to already be installed on the Mac or a script that is embedded in the flat distribution. Embedded scripts require Mac OS X v10.6 or later (and are not supported by PackageMaker the last time I checked). _______________________________________________ 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: https://lists.apple.com/mailman/options/installer-dev/ksingh%40quark.com This email sent to ksingh@quark.com _______________________________________________ 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: https://lists.apple.com/mailman/options/installer-dev/site_archiver%40lists.... This email sent to site_archiver@lists.apple.com
participants (1)
-
Khushneet Inder Singh