Re: RECEIPT_PATH in postflight giving incorrect path in 10.6
Re: RECEIPT_PATH in postflight giving incorrect path in 10.6
- Subject: Re: RECEIPT_PATH in postflight giving incorrect path in 10.6
- From: Greg Neagle <email@hidden>
- Date: Mon, 10 May 2010 08:15:17 -0700
Since the resource are not copied on 10.6, just detect that you are running under 10.6 and do nothing in that case.
-Greg
On May 10, 2010, at 8:01 AM, Sachin Porwal wrote:
> Hi,
>
> I am using an unflat 10.4 package for creating an deployment pkg. I need to place some custom resource and binary file in the Resources folder of that pkg. The binary & custom resources are supposed to be used in preinstall/preupgrade scripts. I found that in Mac OS 10.5, the resources are copied to RECEIPT_PATH (environment variable available to postflight script) but in 10.6, only .bom & info.plist are retained.
>
> The custom binary & resources are a bit heavy on space required. I would like to remove these custom components from '/Library/Receipts/' so that they do not consume unnecessary space on client system. I tried using RECEIPT_PATH in postflight and removing the custom components. I found that on 10.6 RECEIPT_PATH contains the path of the actual pkg location, so if i try to remove the custom components, it will corrupt the original installer pkg.
>
> Could somebody please help me identify the correct solution for this?
>
> Thanks,
> Sachin
>
>
> _______________________________________________
> 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