/build/static/layout/Breadcrumb_cap_w.png

Stopping Autoopen when attaching an ISO (Office 2011) in OS X

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?


0 Comments   [ + ] Show comments

Answers (4)

Answer Summary:
hdiutil attach -nobrowse "path to .dmg" installer -pkg "path to MS 2011 .pkg" -target /
Posted by: john_graphia 12 years ago
White Belt
3

hdiutil attach -nobrowse "path to .dmg"

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

jG


Comments:
  • -nobrowse is the key then? - muebel 12 years ago
  • that looks to be the solution, thanks! - muebel 12 years ago
Posted by: togenshi 12 years ago
White Belt
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>


Comments:
  • I am attempting to do with this the K1000 and scripting. Does ARD have a command-line interface? - muebel 12 years ago
  • 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 - john_graphia 12 years ago
  • 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. - nseery 12 years ago
  • 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. - john_graphia 12 years ago
Posted by: john_graphia 12 years ago
White Belt
2

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

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

 

Posted by: ms01ak 12 years ago
10th Degree Black Belt
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

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