Installation Q & A
I want to install items in the current user's home directory (a.k.a. ˜/). How can I do that?
This is a supported feature of the distribution script format. It can be achieved pretty easily.

This article will describe how to do this with Packages.

There are two things you need to know before we look at the details:

  • You can not install items both in the current user's home directory and outside it. This is not supported by the distribution script format.
  • This requires Packages version 1.1 or later.


Let's say you want to install a file in ~/Library/Application Support. Here's how to do that:

  1. Open Packages
  2. Create a new Distribution project.
  3. Choose Packages > Preferences…
  4. Click Advanced.
  5. Check Show Advanced User Options and close the Preferences window.
  6. Select Project in the source list.
  7. Click the Settings tab.
  8. Scroll to the bottom of the Advanced Options list.
  9. Check current user's home.
  10. Click the Requirements & Resources tab.
  11. Check Install on startup disk only.
  12. Select the package in the source list.
  13. Click the Settings tab.
  14. Uncheck Require admin password for installation.
  15. Click the Payload tab.
  16. Select the /Library/Application Support row in the Contents list.
  17. Click +.
  18. Select the file you want to install and click Add…
  19. Select the Reference Style and click Add.

You can now build your package and test it.

You don't have to worry about the owner and group of the file, it will be set to the current user's id and group upon installation.

Sample Project

Site Map

Copyright 2012-2017 Stéphane Sudre. All rights reserved.