Hi all,
I am creating a 10.6.1 Image on a 10.6.1 host. Now I have a bunch of pkgs that target the home of the current User.
I already have a user and its home created in my build train before I try to install those pks. I tried to just install and found all the files that are supposed to go inside that users home in /.
I was not surprised of this as the installer has no way of knowing which user to target or other put, there is no real current user there during install time.
Is there a way to have InstaDMG target a certain users home folder instead of / ? Or do I have to modify my pkgs so that they target /Users/myuser/ instead of current users home?
I would prefer a way to just tell it the installer, as otherwise the name of the user has to be hard coded into the new pkgs, which makes it all less flexible.
So, anyone knows?
I’ve been doing all user specific installs after the user creates their home folder. If it’s a generic install for all users, you could install it to the User Template folder, but not recommended. Also, a script that runs at first boot could copy (or move) the files to the correct user account.
How many different users are there? Do you use any other software that could deploy the package after it’s imaged, like DeployStudio?
How is the installer set up to target the current user? Can it target all users or does it have to be specific to users?
Rusty
It is a totally static setup. Always the same user name, same user ID, same files.It is only one user that gets set up. So I perfectly can change the root of the pkgs that I have to /Users/myuser, my only objection to this is that then the username “myuser” is hard coded into the installer pkg. But I guess that’s the way to go.
I think your package could use a script to move the files to the username folder postflight. You could then just change the hard coded username in the postflight, instead of rebuilding the package. Just make sure to use the correct paths when moving the files ($3, i think?).
Spider,
“you could install it to the User Template folder, but not recommended”
This may need to be a new topic, but what is the recommend alternative to modifying the User Template folder?
benfeea1:
New topic:
https://www.afp548.com/forum/viewtopic.php?showtopic=25626