Meant to be run after installing Chrome for the first time on a machine to enable auto updates for all users. Creates the /Library/Google/GoogleSoftwareUpdate folder, including “TicketStore“. Then registers the system for autoupdates.

Before running, /Library/Google/GoogleSoftwareUpdate doesn’t exist

Run the script with Sudo to install to the system wide location at /Library/Google instead of the user location at ~/Library/Google.
sudo chrome_enable_autoupdates.rb
After running, the folder and ticket store are created

. To check settings after running:
- Open Chrome
- Click on
Chromein upper left menu bar - Click on “
About Google Chrome“ - Check update settings
The bulk of the work is done by the KSADMIN command to register a keystone ticket and check for updates. Full script can be found here.
def self.keystone_register
command = [
"'#{KSADMIN}'",
"--register",
"--productid", "'#{product_id}'",
"--version", "'#{chrome_version}'",
"--xcpath", "'#{CHROMEPATH}'",
"--url", "'#{update_url}'",
"--tag-path", "'#{TAGPATH}'",
"--tag-key", "'#{TAGKEY}'",
"--brand-path", "'#{BRANDPATH}'",
"--brand-key", "'#{BRANDKEY}'",
"--version-path", "'#{VERSIONPATH}'",
"--version-key", "'#{VERSIONKEY}'",
"--system-store",
"2>/dev/null"]
system("#{command.join(" ")}")
end