Could you give the staff read-only access to the CasperShare?
If you're trying to install things manually (i.e. not by policy), why not use Casper Remote, if you can?
Thanks Robert.
We could but we want to avoid that they need to mount the server, browse the packages and mount what they need/want.
We try to achieve that via Self Service.
Thanks
You can mount a DMG file from a share or from your local system in a script with hdiutil. Take a look at the man page for more on that.
You could make the mount visible or invisible using the -nobrowse flag when mounting it. Something like this will work. The below assumes the sharepoint is already mounted, but you could include that in the script as a first step as well.
hdiutil attach /Volumes/path/to/Packages/DiskImage.dmg
In short, I think what you're looking to do is possible, but will take a little bit of scripting. If you have a bunch of different DMGs or shares that need to be mounted, I would suggest replacing any hardcoded stuff with parameters you can pass to the script to make it re-usable.
Thanks Mike.
At the moment the script that we use to do it is looking like this:
#!/bin/sh
hdiutil attach /Volumes/Casper_Share/Packages/APP.dmg
sleep 3600
If there would be no sleep command the DMG will be directly unmounted once the script finished (as the connection to the Casper Share get terminated).
We finally found a solution for us to support the internal IT support to use applications from a mounted DMG
We use the following to check if the disk is still mounted
Volume="/Volumes/Your_Volume"
mount | grep "on ${Volume}" > /dev/null
Mounted=$?
while [ ${Mounted} -ne 1 ]
do
mount | grep "on ${Volume}" > /dev/null
Mounted=$?
sleep 1m
done