Skip to main content
Question

Dock Items

  • December 7, 2010
  • 2 replies
  • 9 views

golbiga
Forum|alt.badge.img+21

I'm putting together an Office 2011 installer that includes a postflight script that removes Office 2008 and installs Office 2011 silently. I'm trying to clean up the dock after install (Using Dock Items in JSS) - remove 2008 dock items and place the 2011 dock items in their place. What I'm seeing is that JSS does not put the removal/add in proper order so what I'm ending up with is an incomplete dock install. I just tested this with Remote and I'm getting the same outcome. Is there a better way of doing this?

Thanks
Allen

2 replies

  • December 7, 2010

For situations where I couldn't get the order I wanted, I've broken out into two policies chained together. Set the first policy to include the command "jamf policy –trigger <manual trigger>" (this will run at the end after the payload) which will then trigger the second policy off that manual trigger. They'll then run back-to-back. I imagine you'll want to remove the Office 2008 icons in the first policy and then add in the Office 2011 icons in the second.

HTH,
-Charlie

-------------------------------------
Charlie Smith
Desktop Engineer
Information Services Department (ISD)
MIT Lincoln Laboratory
244 Wood St. Lexington, MA 02420
Phone: 781.981.0854
E-mail: charlie.smith at ll.mit.edu
-------------------------------------


golbiga
Forum|alt.badge.img+21
  • Author
  • Employee
  • December 7, 2010

I ended up just putting /usr/sbin/jamf modifyDock –id <ID> -remove with the cleanup script beforehand. This way it removes those items before the JSS adds them as part of the Self Service/Remote Policy.

Thanks
Allen