Re: preventing relocation
Re: preventing relocation
- Subject: Re: preventing relocation
- From: Nat Echols <email@hidden>
- Date: Thu, 07 Apr 2011 11:41:17 -0700
On Wed, Apr 6, 2011 at 6:40 AM, lbland
<email@hidden> wrote:
hi-
"automatic relocation" is very confusing ... I've been bitten by it many times while developing (and testing) installers ... like why isn't it working? ... then duh! the "automatic relocation" "system" (whatever it is...) took over.
... you can always add a pre or post install script to untar your software thus bypassing the installer but also making it look like the installer did something ...
Ironically, our primary method of distribution is still tar files and a shell script-based installer, and until I found out how to make a .pkg on the command line, I was considering writing a tiny graphical app to run the shell script installation. One of my coworkers convinced me this was a waste of time, but I think I've now wasted far more time battling packagemaker.
However, my original message turned out to be incorrect - there was a typo in the script that assembles the packages. Fixing this appears to have eliminated the arbitrary relocation. For future reference, the email I cited had the proper instructions, reprinted here (in Bash shell):
INFO_PATH="${PWD}/${PKGNAME}/Contents/Info"
/usr/bin/defaults delete $INFO_PATH IFPkgPathMappings
chmod a+r ${INFO_PATH}.plist
/bin/rm -f ${PKGNAME}/Contents/Resources/TokenDefinitions.plist
So, crisis averted, but wow, Apple really screwed this up.
-Nat
_______________________________________________
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