Skip to main content
Jamf Nation, hosted by Jamf, is a knowledgeable community of Apple-focused admins and Jamf users. Join us in person at the ninth annual Jamf Nation User Conference (JNUC) this November for three days of learning, laughter and IT love.

Force Enable Google Chrome Automatic Updates

Hey All,

Trying to build 3 policies for our JSS regarding the google chrome browser but I'm having 0 luck!

1: I need to force chrome installs with the automatic updater installed to run

2: I need to be able to install the automatic updater on machines that do not have it installed or configured but DO have chrome

3: I need to install chrome and have its automatic updater configured on for new enrollments.

I've got the policies figured out and the extension attributes in place to identify the presence of the automatic updater, I just can't get the programs to install correctly! I've tried composer and while I can get chrome to install, its automatic updater breaks and fails everytime it tries to go download a new version. I'm pretty new to Jamf and for that matter, the mac platform as a whole and we're just feeling a little stuck. Any help would be appreciated,

Thanks!

Like Comment
Order by:
SOLVED Posted: by marklamont

article on google here explains it. not tried it yet but I am going to now I found it.

Like
SOLVED Posted: by monaronyc

We can't get it to work either. Either the documentation is outdated, or something with the latest version(s) of Google Chrome changed.

Like
SOLVED Posted: by ryan.ball

Download the following script:
https://github.com/hjuutilainen/adminscripts/blob/master/chrome-enable-autoupdates.py

After a Chrome.app installation in a policy run the above script.

Done.

Like
SOLVED Posted: by pblake

@marklamont has the right link. The tricky part is some of the files and the permissions on them.

Like
SOLVED Posted: by jaz

Would it be as simple as this?

chown -R $currentUser "/Applications/Google Chrome.app"
Like
SOLVED Posted: by andymcp

I use a combination of the chrome-enable-autoupdates.py script above to first make sure the Chrome updater is working, then I force the Chrome updater to run using this script:

#!/bin/sh
## Script name:     run_chrome_updater.sh
## Author:          Andy McPherson
## Last modified:   1/31/18

## Logged in user
loggedInUser=$( ls -l /dev/console | awk '{print $3}' )

echo "$loggedInUser"

sudo -u "$loggedInUser" /Library/Google/GoogleSoftwareUpdate/GoogleSoftwareUpdate.bundle/Contents/Resources/GoogleSoftwareUpdateAgent.app/Contents/MacOS/GoogleSoftwareUpdateAgent -runMode oneshot -userInitiated YES 2> /dev/null

exit 0

I then added a "sleep 30" before running a recon which seems to give it enough time to actually run the updater and install the new version.

The best part is, this runs silently in the background! Technically the user probably needs to quit and relaunch Chrome to begin using the new version, but until then, it will show up as the latest version in Patch Reporting.

Like