The Keystone install tool changed in version 39. I've updated the script in GitHub:--HannesOn 24.11.2014, at 13.37, Henning Kessler <he.ke...@googlemail.com> wrote:Hi,unfortunately this script stopped work for me with the new version (39.0.2171.65)Munki gives me this error:• Running postinstall_script for Chrome failed.• ------------------------------------------------------------------------------• Error: KeystoneRegistration.framework not found• Error: Keystone install failed• ------------------------------------------------------------------------------Any idea?RegardsHenningAm Mittwoch, 30. Mai 2012 08:40:39 UTC+2 schrieb Hannes Juutilainen:Yes, and there's two different approaches:
1. Remove Chrome registration from ticket store but leave Keystone installed. This might be desired if you have some other Google products installed.
2. Remove the whole Keystone and the ticket store (effectively removing Chrome registration too).
The Chrome ticket can be removed with the same ksadmin command that was used to register it. For example:
cd "/Library/Google/GoogleSoftwareUpdate/GoogleSoftwareUpdate.bundle/Contents/MacOS/"
sudo ./ksadmin --delete --productid com.google.Chrome
The Keystone itself can be removed with the Keystone install script. For example:
cd "/Applications/Google\ Chrome.app/Contents/Versions/19.0.1084.52/Google\ Chrome\ Framework.framework/Frameworks/KeystoneRegistration.framework/Resources/"
sudo ./install.py --nuke
The --nuke option removes Keystone files and the ticket store. Note that there's also the --uninstall option bat that leaves the ticket store on disk.
I created a script for this that can be used as a pre-uninstall script:
https://github.com/hjuutilainen/adminscripts/blob/master/chrome-disable-autoupdates.py
--
Hannes Juutilainen
On 30.5.2012, at 2.13, Greg Neagle wrote:
> Thanks for this, Hannes.
>
> As a companion and to aid in testing, have you documented the reverse procedure, that is, how to turn off/disable Keystone updates for Chrome?
>
> -Greg
>
> On May 25, 2012, at 2:33 AM, Hannes Juutilainen wrote:
>
>> First of all, thank you Nick McSpadden for the information on managing Google Chrome. I saw that it was posted to krypted.com too.
>>
>> The autoupdate issue still remains but I think I've found a solution to it. I read quite a lot of Chromium source code, looked through the logs and messed around within Google Chrome.app bundle trying to see what it does while registering for autoupdating. And fortunately I found some useful stuff...
>> The first thing that is needed is to install and register the Keystone itself. This is done with the KeystoneRegistration.framework/Resources/install.py script and works just like I thought when writing the initial message for this thread.
>>
>> cd "/Applications/Google Chrome.app/Contents/Versions/19.0.1084.46/Google Chrome Framework.framework/Frameworks/KeystoneRegistration.framework/Resources/"
>> sudo ./install.py --install=Keystone.tbz --root=/
>>
>> The second part (and the trickier one) is to register Chrome with Keystone. This is done with /Library/Google/GoogleSoftwareUpdate/GoogleSoftwareUpdate.bundle/Contents/MacOS/ksadmin command line application which comes from the initial Keystone install. You can view the currently registered tickets with -p option and looking at the output reveals the options what Chrome should look like once registered:
>>
>> sudo ./ksadmin -p
>> <KSTicket:0x611480
>> productID=com.google.Keystone
>> version=1.0.9.2865
>> xc=<KSPathExistenceChecker:0x611750 path=/Library/Google/GoogleSoftwareUpdate/GoogleSoftwareUpdate.bundle/Contents/MacOS/ksadmin>
>> url=https://tools.google.com/service/update2
>> creationDate=2012-05-24 05:50:19 +0000
>>>
>> <KSTicket:0x611b50
>> productID=com.google.Chrome
>> version=19.0.1084.52
>> xc=<KSPathExistenceChecker:0x611b10 path=/Applications/Google Chrome.app>
>> url=https://tools.google.com/service/update2
>> creationDate=2012-05-24 09:26:22 +0000
>> tagPath=/Applications/Google Chrome.app/Contents/Info.plist
>> tagKey=KSChannelID
>> brandPath=/Library/Google/Google Chrome Brand.plist
>> brandKey=KSBrandID
>> versionPath=/Applications/Google Chrome.app/Contents/Info.plist
>> versionKey=KSVersion
>>>
>>
>>
>>
>> ksadmin requires at least 4 arguments to register an application with Keystone but looking at the above it's clear that Chrome wants some more. This is also confirmed by looking at the Chromium source code at http://src.chromium.org/svn/trunk/src/chrome/browser/mac/keystone_glue.mm and its keystoneParameters method. So if you'd do this manually, you'd have this monster command:
>>
>> ./ksadmin --register --preserve-tttoken --productid com.google.Chrome --version 19.0.1084.52 --xcpath "/Applications/Google Chrome.app" --url https://tools.google.com/service/update2 --tag-path "/Applications/Google Chrome.app/Contents/Info.plist" --tag-key KSChannelID --brand-path "/Library/Google/Google Chrome Brand.plist" --brand-key KSBrandID --version-path "/Applications/Google Chrome.app/Contents/Info.plist" --version-key KSVersion
>>
>>
>> I've compiled all of this in to a python script that should work without customization on any recent version of Chrome. It checks what version is installed in "/Applications/Google Chrome.app" and then setups the autoupdates accordingly. I'm still testing this but it seems to do it's job: The "Setup automatic updates" button is gone from the About window and it successfully updates itself.
>>
>> You can get the script from:
>> https://github.com/hjuutilainen/adminscripts/blob/master/chrome-enable-autoupdates.py
>>
>> Just copy/paste as a postinstall_script in to your Chrome pkginfo.
>>
>>
>> --
>> Hannes Juutilainen
>>
>>
>>
>>
>>
>> On 18.5.2012, at 7.20, Mike Pullen wrote:
>>
>>> Sorry if I've missed an inferred answer to this question, but-- Is it possible to have Chrome autoupdate enabled for all users, even non-admin users?
>>>
>>> If so, is there anyone who does use autoupdate on the client end to keep Chrome updated? Then again if so, how do you set up the keystone autoupdater for all users? It isn't enabled as Chrome is installed-- and while there is documentation on how to disable the updater, I can find none detailing how to enable it as a post-flight script.
>>>
>>>
>>> Thanks!
>>> Mike
>>
>
--
You received this message because you are subscribed to the Google Groups "munki-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to munki-dev+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "munki-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to munki-dev+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Zach,
Awesome. Do you know, by chance, if that keeps Chrome from complaining to end-users that it can't keep itself updated?
Thanks,
Mike
I always find these discussions surprising: since (at least for me) Munki installs Google Chrome as root, by copying the application bundle from a mounted disk image to the /Applications folder, the GoogleSoftwareUpdate thing is never installed and so Chrome does not attempt to update itself (or more accurately, the GoogleSoftwareUpdate thing doesn't).Has Google Chrome itself become more aggressive about notifying users when it's out of date and the GoogleSoftwareUpdate thing isn't running/installed?-Greg
Zach,
Awesome. Do you know, by chance, if that keeps Chrome from complaining to end-users that it can't keep itself updated?
Thanks,
MikeIt does. It will ask once "Chrome is not setup for automatic updates" and clicking dismiss has so far dismissed it.
On Monday, November 24, 2014 8:32:45 AM UTC-7, gregn...@mac.com wrote:I always find these discussions surprising: since (at least for me) Munki installs Google Chrome as root, by copying the application bundle from a mounted disk image to the /Applications folder, the GoogleSoftwareUpdate thing is never installed and so Chrome does not attempt to update itself (or more accurately, the GoogleSoftwareUpdate thing doesn't).Has Google Chrome itself become more aggressive about notifying users when it's out of date and the GoogleSoftwareUpdate thing isn't running/installed?-GregChrome has indeed. I believe at first run it moves the GoogleUpdate app into place (or during first update after coping out of DMG).
I thought munki would never have installed it either (for your reasons as well) however when I was testing on one of our labs, the Update app was installed shortly after the first run.
Not sure as to what defines it to install it (might also have been Google Earth being installed at same time)
On Nov 24, 2014, at 7:46 AM, zack.m...@bsd7.org wrote:Zach,
Awesome. Do you know, by chance, if that keeps Chrome from complaining to end-users that it can't keep itself updated?
Thanks,
MikeIt does. It will ask once "Chrome is not setup for automatic updates" and clicking dismiss has so far dismissed it.
On Monday, November 24, 2014 8:32:45 AM UTC-7, gregn...@mac.com wrote:I always find these discussions surprising: since (at least for me) Munki installs Google Chrome as root, by copying the application bundle from a mounted disk image to the /Applications folder, the GoogleSoftwareUpdate thing is never installed and so Chrome does not attempt to update itself (or more accurately, the GoogleSoftwareUpdate thing doesn't).Has Google Chrome itself become more aggressive about notifying users when it's out of date and the GoogleSoftwareUpdate thing isn't running/installed?-GregChrome has indeed. I believe at first run it moves the GoogleUpdate app into place (or during first update after coping out of DMG).If the user is not an admin, any update process will not be able to update /Applications/Chrome.app.
I thought munki would never have installed it either (for your reasons as well) however when I was testing on one of our labs, the Update app was installed shortly after the first run.Where?
Not sure as to what defines it to install it (might also have been Google Earth being installed at same time)Yes, since Google Earth is distributed as a _package_, when it installs it can install other components like the updater. An updater running as root could then update Chrome as root.
Yes, huge...
Thank you!
Mike
On 24.11.2014, at 13.37, Henning Kessler <he.ke...@googlemail.com> wrote: