I found the solution. In Packages, you can add resources in two different levels. I don't understand how I could have miss it. Thanks all for your help Kevin On 6/21/12 4:52 PM, Vikram Singh wrote: Hi Kevin, CUR_PATH=`dirname "$0"` Now, you can access your resource by "$CUR_PATH/your_resource" Hope this will solve your problem :) Note: This temporary location gets deleted at the end of installation. Thanks, Vikram Hi Kushneet, thanks for the tip. Actually, I found this trick after posting to the list. I am still wondering if there is another solution because it could take some time on big packages. Kevin On 6/21/12 4:03 PM, Khushneet Inder Singh wrote: Hi Kevin, What you can do is first expand the FLAT package using pkgutil --expand FlatPackage ExpandedPackage. After expanding the package you can manipulate /access package contents. Once done with manipulations and changes you can flatten back the expanded package by using pkgutil --flatten ExpandedPackage ChangedFlatPackage. Regards, Khushneet -----Original Message----- From: installer-dev-bounces+ksingh=quark.com@lists.apple.com <mailto:quark.com@lists.apple.com> [mailto:installer-dev-bounces+ksingh <mailto:installer-dev-bounces%2Bksingh>=quark.com@lists.apple.com <mailto:quark.com@lists.apple.com>] On Behalf Of Kevin Molcard Sent: Thursday, June 21, 2012 3:20 PM To: Installer-Dev mailing-list Subject: How to access resources in flat distribution package Hi all, I am trying to convert my package to flat distribution to be able to sign it using productsign. I am using Packages to build my package. I have some resources that I have to access in my postflight script. In bundle format I used this: ROOT_PATH=`sudo dirname "$1"` RESOURCES_PATH="$ROOT_PATH/../Resources/" This seems to not work with flat packages. Does anyone know how to access these resources? Thanks in advance. Kevin -- Kevin Molcard Sofware Engineer ARTURIA 4 chemin de Malacher 38240 Meylan - France Tel: +33 438 020 555 Fax: +33 438 020 525 http://www.arturia.com _______________________________________________ Do not post admin requests to the list. They will be ignored. Installer-dev mailing list (Installer-dev@lists.apple.com <mailto: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 <mailto:ksingh@quark.com> Sofware Engineer ARTURIA 4 chemin de Malacher 38240 Meylan - France Tel: +33 438 020 555 Fax: +33 438 020 525 http://www.arturia.com _______________________________________________ Do not post admin requests to the list. They will be ignored. Installer-dev mailing list (Installer-dev@lists.apple.com <mailto:Installer-dev@lists.apple.com>) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/installer-dev/vikram731%40gmail.com This email sent to vikram731@gmail.com <mailto:vikram731@gmail.com> -- Kevin Molcard Sofware Engineer ARTURIA 4 chemin de Malacher 38240 Meylan - France Tel: +33 438 020 555 Fax: +33 438 020 525 http://www.arturia.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 You can either place them at the Project level (the place where I was putting them) or at the Package script level (the place where I should put them). Another solution is to keep your resource files with your scripts while building the package. When you run the installer, all these files are copied to temporary location and then the preinstall/postinstall script is run. Then, whatever resources you are accessing from your script are now in the same directory as your scripts. So you can access them by getting the path of the current script as follows- On Thu, Jun 21, 2012 at 8:10 PM, Kevin Molcard <kevin.molcard@arturia.com <mailto:kevin.molcard@arturia.com>> wrote: -- Kevin Molcard