I am working on a silent installation shell script through K1000 for Mac OS X Lion. I use hdiutil attach to gain access to the Office 2011 ISO. When I do this, it automatically opens the ISO. Is there any way to prevent this from happening?

Answer Summary:
hdiutil attach -nobrowse "path to .dmg" installer -pkg "path to MS 2011 .pkg" -target /
Cancel
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Community Chosen Answer

3

hdiutil attach -nobrowse "path to .dmg"

installer -pkg "path to MS 2011 .pkg" -target /

jG

Answered 05/09/2012 by: john_graphia
White Belt

  • -nobrowse is the key then?
  • that looks to be the solution, thanks!
Please log in to comment

Answers

2

You can silently install MS Office for Mac 2011 using Apple Remote Desktop or extract the package off iso and go installer -pkg <package name>

Answered 05/09/2012 by: togenshi
White Belt

  • I am attempting to do with this the K1000 and scripting. Does ARD have a command-line interface?
  • Not for this kind of action which is why deploying it using the KBOX makes sense. ARD's command line interface relates to turning it on/off setting users and privs that sort of thing
  • ARD has a full option for sending any CLI command to my knowledge. I've used it multiple times to install software as well as various troubleshooting tasks.
  • Not exactly. ARD the GUI application can send any script command but the command line interface to the ARD daemon is pretty much only for controlling it. The actual binary that handles the daemon is called "kickstart" Please see: http://docs.info.apple.com/article.html?path=RemoteDesktop/3.0/en/ARDC882.html

    I believe there is some confusion between "can I send shell commands using ARD", resounding Yes, and "can I send commands to the ARD daemon to execute standard bash or other shell commands?"

    If you have parameters/flags for kickstart that will do the latter please post them.
Please log in to comment
2

Don't forget to unmount the disk image once the install completes

hdiutil detach /Volumes/"name of mounted .dmg"

 

Answered 05/09/2012 by: john_graphia
White Belt

Please log in to comment
2

We used Composer a repackaging program for Mac OSX to do this much simplier then a script. We simply captured the install and made it a pkg and then wrapped it up in a dmg. It's worth having a packager for Mac OSX it makes life easier. http://www.macupdate.com/app/mac/30500/composer

Answered 05/09/2012 by: ms01ak
Tenth Degree Black Belt

Please log in to comment
Answer this question or Comment on this question for clarity