I am moving our installer from PackageMaker to pkgbuild and am trying to set the default installation location to the user's current home directory and still allow the user to install the system as a whole.
In my distribution file, I have enable_currentUserHome = "true" and enable_localSystem = "true", which correctly allows the user to "Install for all users of this computer" or "Install only for me." However, I would like the โInstall for meโ option to be selected by default.
pkgbuild has a command line parameter for "--install-location", which indicates the default help page, but does not mention how to specify the home directory. I tried "~" and "$ HOME" with no luck. Is there some kind of macro that I don't know about?
Does anyone know how to install pkgbuild for installation in the user's current home directory by default?
Thanks in advance!
-Owen
source share