Kace 2000 - Installing software packages (.pkg) as a postinstallation task in OSX
Can someone send me the how they would issue the command line to install one of our software packages under the Kace 2000 for an example of: Google Earth 2013.pkg
I am use to using deploy studio to send out my packages after a image has been applied, but am unsure of the process in Kace. I have made it as far as Deployments>Postinstallation Tasks and Named the Application, Chose Mac OS X for runtime environment, uploaded the .pkg file, but the scripts I have used do not seem to work.
Community Chosen Answer
The installer most likely needs to run as root in order to successfully install the package. Haven't done any Mac deployments from the K2000, so I am not sure how it handles the post installation actions. Using "sudo" to run the command will force it to run as root, but it may prompt the first user that logs in for their password (assuming they have admin access).
sudo /usr/sbin/installer -pkg ./Google\ Earth\ 2013.pkg -target /
If the package allows for installation to a volume other than the boot volume (offline installation), it may be better to set it as a "K2000 Boot Environment (Mac OS X)" type task. I believe the boot environment is already running as root, so you wouldn't need sudo, but the target would change to the path to the volume you just installed the OS to. Assuming that the volume is named "Macintosh HD" this becomes:
/usr/sbin/installer -pkg ./Google\ Earth\ 2013.pkg -target /Volumes/Macintosh\ HD
Note, in both commands I used a backslash (\) to escape the spaces in the name of the file and target volume.