Re: Manually specifying the destination directory
Re: Manually specifying the destination directory
- Subject: Re: Manually specifying the destination directory
- From: Stéphane Sudre <email@hidden>
- Date: Wed, 10 Aug 2005 22:57:58 +0200
On mercredi, août 10, 2005, at 03:27 PM, Alexey Proskuryakov wrote:
I'm trying to make a .pkg installer that can be installed to a
user-specified location using a command-line installer.
The first thing I tried was setting the -target option to installer:
$ installer -pkg myinst.pkg -target /some/path
This doesn't work, because -target only accepts a mount point, not a
full
path. Another option would be to set some environment variable before
running installer, but I couldn't find any way to make the installer
use
one.
Is what I'm trying to achieve possible at all?
Some ideas for a workaround:
Let the pkg installs things at a fixed location which does not exist.
Something like /private/tmp/HongKongFuFu.
Create a wrapper scripter which does this:
#!/bin/sh
ln -s /private/tmp/HongKongFuFu $2
installer -pkg $1
exit 0
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