@leonwun we have used the script below with real good results. It looks tot eh version on the device, compares itt ot he version on the Web. Updates it as needed. I did not build that script but whoever did, we thank you!
!/bin/sh
dmgfile="googlechrome.dmg"
volname="Google Chrome"
logfile="/Library/Logs/GoogleChromeInstallScript.log"
url='https://dl.google.com/chrome/mac/stable/GGRO/googlechrome.dmg'
/bin/echo "--" >> ${logfile}
/bin/echo "date
: Downloading latest version." >> ${logfile}
/usr/bin/curl -s -o /tmp/${dmgfile} ${url}
/bin/echo "date
: Mounting installer disk image." >> ${logfile}
/usr/bin/hdiutil attach /tmp/${dmgfile} -nobrowse -quiet
/bin/echo "date
: Installing..." >> ${logfile}
ditto -rsrc "/Volumes/${volname}/Google Chrome.app" "/Applications/Google Chrome.app"
/bin/sleep 10
/bin/echo "date
: Unmounting installer disk image." >> ${logfile}
/usr/bin/hdiutil detach $(/bin/df | /usr/bin/grep "${volname}" | awk '{print $1}') -quiet
/bin/sleep 10
/bin/echo "date
: Deleting disk image." >> ${logfile}
/bin/rm /tmp/"${dmgfile}"
exit 0
Right now we run that weekly, but when there is a critical update to be had, aka the last one, we run the policy at check in. When 75% of the devices have received the newest Chrome update, we back it off to Weekly.
Good luck to you.
I use Patch Management to force update Chrome to a specific version.
Hey @rhooper the script works well, thanks for sharing.
How do you go about ARM machines? I guess the link in the script only downloads the Intel-based version of Chrome. I can't find a similar link for ARM though.
I would use the link for the universal Chrome package, it works on both Intel and ARM.
https://dl.google.com/chrome/mac/universal/stable/gcem/GoogleChrome.pkg
I would agree with @jbisgett here Patch Management is the way to go.
Open Google Chrome. Click the three dots icon on the top right. Click Update Google Chrome. If this button is not visible, that means you are on the latest version of the browser.
@leonwun we have used the script below with real good results. It looks tot eh version on the device, compares itt ot he version on the Web. Updates it as needed. I did not build that script but whoever did, we thank you!
!/bin/sh
dmgfile="googlechrome.dmg"
volname="Google Chrome"
logfile="/Library/Logs/GoogleChromeInstallScript.log"
url='https://dl.google.com/chrome/mac/stable/GGRO/googlechrome.dmg'
/bin/echo "--" >> ${logfile}
/bin/echo "date: Downloading latest version." >> ${logfile}
/usr/bin/curl -s -o /tmp/${dmgfile} ${url}
/bin/echo "date: Mounting installer disk image." >> ${logfile}
/usr/bin/hdiutil attach /tmp/${dmgfile} -nobrowse -quiet
/bin/echo "date: Installing..." >> ${logfile}
ditto -rsrc "/Volumes/${volname}/Google Chrome.app" "/Applications/Google Chrome.app"
/bin/sleep 10
/bin/echo "date: Unmounting installer disk image." >> ${logfile}
/usr/bin/hdiutil detach $(/bin/df | /usr/bin/grep "${volname}" | awk '{print $1}') -quiet
/bin/sleep 10
/bin/echo "date: Deleting disk image." >> ${logfile}
/bin/rm /tmp/"${dmgfile}"
exit 0
Right now we run that weekly, but when there is a critical update to be had, aka the last one, we run the policy at check in. When 75% of the devices have received the newest Chrome update, we back it off to Weekly.
Good luck to you.
Thanks for the update and quick reply. I'll be sure to keep an eye on this thread. Looking for the same issue. Bumped into your thread. Thanks for creating it. Looking forward for solution.