• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: packagemaker not working
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: packagemaker not working


  • Subject: Re: packagemaker not working
  • From: Bill Coderre <email@hidden>
  • Date: Wed, 30 Dec 2009 15:01:30 -0800

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.

They're "hacks" because they "know" the format of the bundle and flat packages. Package Formats are not officially documented. On the other hand, Installer.app in 10.5.5 still installs packages from 10.1 era (late 2001), so it'll probably be a while before the hacks stop working.

Anyway, this might be enough to get your problem solved sufficiently that you can get back to writing software.
 _______________________________________________
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

  • Follow-Ups:
    • Re: packagemaker not working
      • From: Stephane Sudre <email@hidden>
    • Re: packagemaker not working
      • From: Bill Appleton <email@hidden>
References: 
 >packagemaker not working (From: Bill Appleton <email@hidden>)
 >Re: packagemaker not working (From: Greg Neagle <email@hidden>)
 >Re: packagemaker not working (From: Bill Appleton <email@hidden>)

  • Prev by Date: Re: packagemaker not working
  • Next by Date: Re: packagemaker not working
  • Previous by thread: Re: packagemaker not working
  • Next by thread: Re: packagemaker not working
  • Index(es):
    • Date
    • Thread