Re: packagemaker not working
site_archiver@lists.apple.com Delivered-To: installer-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=HzRcI6UbRdlCUC+bGjVYUXhJrz9z3raeju2MsORGDRg=; b=sgrAV+d+bmP5xshgJv2jwzgjKd1Jxlyrung69Cy+i/Mz4H0fydWhtm4nz5IpCKI84j T9H+MbJfiSb5cpQ47IFm9xx8aWy1IWGyvXi7LuNikeg8ljhl3OSBGOyvY816HbguSv/f axHnSYGJ2ZMtF5mkpyJ7nIlNmGnxGi8Yiydp8= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=Epat1XUfG0zRPpMrAtGc633wl8Ns/q5qu5QXFNhgWVNFwDIzILK18XyHXQpkvEBGt1 c3wEju+W1PIoB3fCKGSoqd3Z4PL9k0Z8yWxVAFIC8RQ4EYB2wTrouTIFBI7BSUjH6pmA rgrZXPU/Xy6oGZedESeODr7E04jOXH8MfqDmM= On Thu, Dec 31, 2009 at 12:01 AM, Bill Coderre <bc@apple.com> 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 (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/installer-dev/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com
participants (1)
-
Stephane Sudre