Skype autoinstall newest version for appinstall and patchmanagement.

hurup
New Contributor II

So the version we found on jamfnation (https://www.jamf.com/jamf-nation/third-party-products/files/1020/install-latest-skype-for-mac) did not work because it was detecting the OS through the url and curl does not supply any operatingsystem information prompting a windows installer to a mac client resulting in failure. It seems to work correctly.

#!/bin/bash

mkdir /tmp/downloads
cd /tmp/downloads

curl -L -o skype.dmg https://go.skype.com/getskype-skypeformac

hdiutil mount -nobrowse skype.dmg -mountpoint /Volumes/skype
rsync -vaz /Volumes/skype/Skype.app/ /Applications/Skype.app
hdiutil unmount "/Volumes/skype"
rm skype.dmg
rm -rf /tmp/downloads
0 REPLIES 0