/build/static/layout/Breadcrumb_cap_w.png

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.


Thank you..


0 Comments   [ + ] Show comments

Answers (2)

Answer Summary:
Posted by: ncsutmf 10 years ago
Green Belt
2

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.  


Comments:
  • Thanks much, the command sent by ncsutmf worked. I tested and was able to run with or without "/usr/sbin/". Much appreciated! - lkalis 10 years ago
Posted by: k4rl@TES 10 years ago
Senior Purple Belt
-2

These links might be of use to you - It sounds like you were after the same info as me when I first started using the K2000. You will need to use the Post Install Task Converter found here: http://www.kace.com/support/resources/kb/article/k2000-postinstall-task-converter

Also, you may want to check some of the best practices found here: http://blog.kace.com/2013/03/08/k2000-kloser-look-best-practices/


Comments:
  • Those windows commands won't work very well in OSX - ncsutmf 10 years ago
  • Thanks much, the command sent by ncsutmf worked. I tested and was able to run with or without "/usr/sbin/". Much appreciated! - lkalis 10 years ago

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ