Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Installing .dmg files




On Sep 29, 2005, at 3:39 PM, Nader Nafissi wrote:

You can do this with by running two Apple Remote Desktop 2 tasks:

1. Use Copy Items to copy the .dmg file out to your client computers
2. Use a Send UNIX command that will mount the .dmg, install it, unmount it and then remove it:


    hdiutil mount <Path to where you copied .dmg>/Your.dmg
    installer /Volumes/Your Disk Image/Application.pkg
    hdiutil unmount /Volumes/Your Disk Image
    rm -rf <Path to where you copied .dmg>/Your.dmg

The assumption here is that Your.dmg mounts as /Volumes/Your Disk Image


Well, if you're going to do this, you could also add the "- mountpoint" flag to force the mount location. e.g.:


    hdiutil attach iTunesX.dmg -mountpoint /Volumes/foobar

Would always mount the image as /Volumes/foobar (not /Volumes/ iTunesX). Note: the Finder still shows the disk as iTunesX (not foobar)

I can guess one advantage to Nader's approach -- the copy operation might proceed faster than copying a package with hundreds or thousands of files in it.

Any other advantages? The obvious disadvantage (already mentioned) is that it adds complexity to what is usually a simple process.


-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Robert Jacobson email@hidden BS, Aeronautical Engineering Univ. of Md., College Park Flight Ops. Team - SOlar Heliospheric Observatory (SOHO) (301) 286-1591


_______________________________________________ Do not post admin requests to the list. They will be ignored. Remote-desktop mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/remote-desktop/email@hidden

This email sent to email@hidden
References: 
 >Installing .dmg files (From: brett polakowski <email@hidden>)
 >Re: Installing .dmg files (From: Josh Wisenbaker <email@hidden>)
 >Re: Installing .dmg files (From: Joshua See <email@hidden>)
 >Re: Installing .dmg files (From: Josh Wisenbaker <email@hidden>)
 >Re: Installing .dmg files (From: Chris <email@hidden>)
 >Re: Installing .dmg files (From: Nader Nafissi <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.