Installing files/folder in $HOME (a possible solution)
Installing files/folder in $HOME (a possible solution)
- Subject: Installing files/folder in $HOME (a possible solution)
- From: Stéphane Sudre <email@hidden>
- Date: Tue, 29 Mar 2005 23:12:07 +0200
Juts found a solution 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?)
Hope it can be useful to others
_______________________________________________
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