Re: PackageMaker question
Re: PackageMaker question
- Subject: Re: PackageMaker question
- From: Stéphane Sudre <email@hidden>
- Date: Mon, 25 Jul 2005 08:40:42 +0200
On lundi, juillet 25, 2005, at 04:28 AM, Glenn Zelniker wrote:
[listmods -- sorry if this is off topic; feel free to delete]
I'm using PackageMaker to build an installer for an application. I
don't want the installation to be relocatable, nor do I want the
install path to start at /. I want the installation to begin at the
user's home directory. PackageMaker's Configuration panel allows you
to specify the Default Location, but I can't figure out what to enter
in order to get the install to default to the user's home. I've tried
~, I've tried $HOME, but neither works. At this point I'm merely
guessing and the docs don't provide much help.
Any ideas?
From the installer-dist list archive:
[...]To install files/folders in $HOME with a .pkg if:
- you only install files/folder in $HOME
and you don't want:
- any user interaction (as in: the user has to select his/her home
folder)
I thought it might be interesting to share this solution.
--------8<-----------8<-----------
Launch PackageMaker or any other tool that can create .pkg:
1) Create a package with the following flags set:
o Root Volume Only
o Follow Flags
o Overwrite directory permissions (Off or On) (I tried it with On).
2) Create your file hierarchy on disk or in the other tool like this:
The folder /private/tmp/A_SUPER_UNIQUE_NAME_YOU_SELECTED/ will be the
default location for the installation
Then create the Library, Pictures, Movies, etc... folder as you wish.
I set the file owner and group to root:admin for the files/folder
within A_SUPER_UNIQUE_NAME_YOU_SELECTED. The final files are
current_user_id:20 after installation on my 10.2.8 machine.
3) Create the following pretty complex preflight script:
#!/bin/sh
ln -s $HOME /private/tmp/A_SUPER_UNIQUE_NAME_YOU_SELECTED
exit 0
4) Build your package with either Command + K or Command +B depending
on the tool.
5) Run (and test?)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden