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.:
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