Posted on 06-13-2018 11:17 AM
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!
Posted on 06-13-2018 01:51 PM
article on google here explains it. not tried it yet but I am going to now I found it.
Posted on 10-09-2018 11:02 AM
We can't get it to work either. Either the documentation is outdated, or something with the latest version(s) of Google Chrome changed.
Posted on 10-09-2018 11:10 AM
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.
Posted on 10-09-2018 11:16 AM
@marklamont has the right link. The tricky part is some of the files and the permissions on them.
Posted on 05-10-2019 05:26 AM
Would it be as simple as this?
chown -R $currentUser "/Applications/Google Chrome.app"
Posted on 05-10-2019 05:48 AM
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.
Posted on 07-19-2019 06:29 AM
My Jamf on-board person was awesome and I got him to send me an updated build that will turn auto update on for all users automatically. Just install or make sure Chrome is updated and auto-updates are turned on for your Mac and then this:
Using Composer, package;
/Applications/Google Chrome.app
/Library/Google
/Library/LaunchDaemons/com.google.keystone.daemon.plist
/Library/LaunchAgents/com.google.keystone.agent.plist
/Library/LaunchAgents/com.google.keystone.xpcservice.plist
That should do it.
I had no issues using this method last year, I'm just re-issuing the new version of Chrome for this school year.
Posted on 07-19-2019 07:40 AM
Is there an EA to detect if chrome auto update is enabled or not?
Posted on 07-19-2019 07:42 AM
You try Chrome browser cloud management
https://cloud.google.com/files/chrome-enterprise/Chrome_Enterprise_Browser_CBCM_Mktg_WP_3.22_final.pdf
https://support.google.com/chrome/a/answer/9116814
Posted on 07-19-2019 12:31 PM
There is another similar thread on this here: How to update Chrome automatically
Uses the same script that @ryan.ball created located here: chrome-enable-autoupdates
Posted on 07-22-2019 07:07 AM
Thank you @andymcp! That looks like a simple elegant solution.
If I were to run just that one line, how might I verify that it has actually run? I checked ~/Library/Logs/GoogleSoftwareUpdateAgent.log thinking there might be something there, however nothing gets logged there apparently. Should I see a GoogleSoftwareUpdate process show up in Activity Monitor? Is a log kept somewhere else that I'm not thinking of?
Posted on 09-22-2019 10:01 AM
@andymcp Does your method still work? I ran into some issues with @ryan.ball method, something about a keystone error. I am considering just re-packaging Chrome and running at login to get us to the latest version.
Thanks for the help,
Jared
Posted on 09-23-2019 09:53 AM
@jared_f The script that @andymcp links to does work, but you need to make sure you have downloaded the latest version of the script at https://github.com/hjuutilainen/adminscripts/blob/master/chrome-enable-autoupdates.py as that was updated on 8/5/19 for changes to the keystone registration framework path introduced in newer versions of Chrome.
Posted on 10-25-2019 02:34 PM
I've found that this script: https://github.com/ryangball/chrome-enable-autoupdates/blob/master/chrome-enable-autoupdates.sh
is working for me with fresh install of Mojave 10.14.6.
Chrome is currently at version 78
When I select About Chrome, I see Google Chrome is up to date Automatic updates are turned on
along with this scritp to download Chrome:
**#####################################################################################################
dmgfile="googlechrome.dmg"
volname="Google Chrome"
logfile="/Library/Logs/GoogleChromeInstallScript.log"
url='https://dl.google.com/chrome/mac/stable/GGRO/googlechrome.dmg'
if [ '/usr/bin/uname -p
'="i386" -o '/usr/bin/uname -p
'="x86_64" ]; then
/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}"
else
/bin/echo "date
: ERROR: This script is for Intel Macs only." >> ${logfile}
fi
exit 0**
Posted on 12-12-2019 11:03 AM
@atomczynski I've been using that same script for quite awhile now, works great. I wish it had a check for the current version installed vs the current version available - and if the versions match then skip the installation.
Iv'e been looking at the script to try to insert this version check, but kinda don't want to bother with it.
Posted on 02-13-2020 12:36 PM
This script works well, but how do you whitelist allowing the "GoogleSoftwareUpdate.bundle" app to open without user interaction?:
GoogleSoftwareUpdate.bundle Prompt Screenshot
Would that be a PPPC profile?
Posted on 04-01-2020 01:38 PM
I'me having trouble getting this to work. I pushed the script and a configuration profile that allows the Chrome updater in Accessibility but Chrome still would not auto update. On some computers, I get Update Failed (error: 12) KSInstallAction install script failure. Exit Code: 12.
Edit: Nevermind. I got it working. It just took longer for the policies to take than I thought.
Posted on 04-08-2020 06:02 PM
I've allowed the team ID for GoogleSoftwareUpdate.bundle but it still prompts me to setup automatic updates and asks for admin credentials. Am I missing something? How can I automatically enable this?
Posted on 06-11-2020 02:43 PM
The Chrome for Enterprise Team has published a new kBase on Managing Chrome Browser Updates with Jamf Pro (macOS). This takes advantage of Jamf's Application and Custom Settings Payload and does not rely on a script.
Posted on 07-14-2020 05:01 PM
I've moved to using the Chrome policy schema. It works well with Chrome Enterprise. My only issue now is switching everyone over to Chrome Enterprise because it doesn't show autoupdate being enabled on the standard version.
Posted on 08-21-2020 02:24 PM
I got so excited about this and then realised it's only for chrome enterprise.....Does Chrome Enterprise have costs associated with it and do I really have to enroll the machines into chrome enterpise to enable auto updates?
Posted on 08-21-2020 03:17 PM
I didn't see any cost and I set up a test account and configured it and got the management part working...However auto updated still required the user to sign in the 1st time. I figured it didn't really address the auto update issue.
That said I only tied once and moved on!
C
Posted on 08-21-2020 04:47 PM
we use the Chrome Enteprise pkg and config profile and that seems to keep chrome up to date without any other configuration on our end.
Posted on 03-04-2021 01:41 PM
@walt Can you explain in detail that Configuration Profile you have for Google Chrome?
What it looks like and whats the difference between Regular Chrome and Enterprise Chrome?
Posted on 03-08-2021 10:56 AM
@JarvisUno , I think this is the explanation you are looking for.
https://support.google.com/chrome/a/answer/9923111?hl=en
Posted on 03-11-2021 09:50 AM
@jefff Has anyone actually set that up those instructions are great right up until you need to add:
Not really sure what to add there would be interested in seeing how others here have this setup.
Posted on 03-11-2021 10:12 AM
@JarvisUno Other examples of plists(Google themselves, not a 3rd party) seem to be consistent with 1.0 being the version. The other two are filled in automagically once the version is selected.
Posted on 08-31-2022 10:40 AM
Hi all,
Please be aware of this: Today have found that 68 machines in my company got downgraded to version 98.0.4758.102
Downloaded file manually from here 'https://dl.google.com/chrome/mac/stable/GGRO/googlechrome.dmg' and it is 98.0.4758.102, looks like Google staff uploaded wrong version, this is the first time I see it in last three years, since I started using this policy.
Link 'https://dl.google.com/chrome/mac/universal/stable/CHFA/googlechrome.dmg' I use to update M1/M2 devices contains the latest 105.0.5195.52. Testing if the same installer works on Intel, since I see "universal" word.
Posted on 01-14-2024 05:30 PM
While an old thread, I thought I would provide some rather undocumented things I've found....
The Chrome for enterprise download doesn't always install the googlesoftwareupdate component...
https://support.google.com/chrome/answer/111996?hl=en#zippy=%2Cmac
Note: Download Chrome Again, Step 3, on Mac... Download and install Google Software Update again.
URL: https://dl.google.com/mac/install/googlesoftwareupdate.dmg
This kinda works like Microsoft MAU .app in which its an app that runs on schedule from a launchdaemon... It reads and applies settings from com.google.keystone...
It installs mainly in /Library/Application Support/Google/GoogleUpdater/*