Installing files/folder in $HOME (a possible solution)
site_archiver@lists.apple.com Delivered-To: installer-dev@lists.apple.com 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: 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: Then create the Library, Pictures, Movies, etc... folder as you wish. 3) Create the following pretty complex preflight script: #!/bin/sh ln -s $HOME /private/tmp/A_SUPER_UNIQUE_NAME_YOU_SELECTED exit 0 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 (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/installer-dev/site_archiver%40lists.a... - any user interaction (as in: the user has to select his/her home folder) The folder /private/tmp/A_SUPER_UNIQUE_NAME_YOU_SELECTED/ will be the default location for the installation 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. 4) Build your package with either Command + K or Command +B depending on the tool. This email sent to site_archiver@lists.apple.com
participants (1)
-
Stéphane Sudre