Re: packagemaker not working
Re: packagemaker not working
- Subject: Re: packagemaker not working
- From: Stephane Sudre <email@hidden>
- Date: Thu, 31 Dec 2009 21:36:32 +0100
On Thu, Dec 31, 2009 at 12:01 AM, Bill Coderre <email@hidden> wrote:
> On Dec 30, 2009, at 11:04 AM, Bill Appleton wrote:
>
> is there a definitive way to stop the relocation in the latest version
> of packagemaker used from the command line?
>
> I wrote an email a while ago explaining how to remove the relocation info
> from a package after it's built:
>
> Here is a shell script for "bundle" format installer packages which might
> help:
>
> defaults write FOO.pkg/Contents/Info IFPkgFlagRelocatable -bool NO
>
> As for "flat" packages, you could do this:
>
> pkgutil --expand FOO.pkg FOO.pkgsrc
>
> perl -i -pe 's/relocatable\s*=\s*"true"/relocatable="false"/'
> FOO.pkgsrc/PackageInfo
>
> pkgutil --force --flatten FOO.pkgsrc FOO.pkg
>
> These hacks "slam" the relocatable flag to false.
Isn't the relocatable flag related to the "Allow custom location"
feature (a.k.a. manual relocation of the installation path for the
package) of PackageMaker?
>From what I'm observing with PackageMaker on Leopard:
Allow Custom Location (ON) + Components Allow Relocation (ON) =>
relocatable = true + <relocate>
Allow Custom Location (OFF) + Components Allow Relocation (ON) =>
relocatable not set + <relocate>
Allow Custom Location (ON) + Components Allow Relocation (OFF) =>
relocatable =true
Allow Custom Location (OFF) + Components Allow Relocation (OFF) =>
relocatable not set
I would tend to believe turning off automatic relocation would require
to remove <locator></locator> and <relocate></relocate> sections (or
use the -w/--no-relocate option of the CLI).
My $0.02.
_______________________________________________
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