torkell: (Default)
Thomas ([personal profile] torkell) wrote2006-10-17 11:10 pm

Autoupdate *that*, Google!

Google's autoupdater is a persistent little git, I'll give it that.

The old version of the toolbar is stored as C:\Program Files\Google\GoogleToolbar1.dll. What appears to happen is the updater creates GoogleToolbar2.dll, and registers that in COM. No idea if the old file is deregistered.

Plan A of reregister the old version and hope it didn't notice was doomed from the beginning. The updater saw through that attempt and behaved as normal

Plan B of the same, but then copy the old to where it expects the new and deny writes using NTFS permissions also failed. Instead of creating GoogleToolbar2.dll, GoogleToolbar3.dll was created.

Plan C, however, involves following Plan A and then using NTFS permissions to deny all modifications to the entirety of C:\Program Files\Google.
This appears to be quite successful. The updater can't really do anything if it can't create the new file, or modify or delete the old one. Worst it can do is clobber the registery settings for the toolbar. And that can probably be fixed by applying a similar ACL to HKEY_CURRENT_USER\Software\Google.

Autoupdate that, Google!

From Dom - your housemate

(Anonymous) 2006-10-17 10:28 pm (UTC)(link)
Why not rename the one you want as the one it is currently? I imagine the updater is not looking at the contents of the file - so much as the *name* of the file.

Re: From Dom - your housemate

[identity profile] ralesk.livejournal.com 2006-10-17 10:34 pm (UTC)(link)
Wasn’t that Plan B?

[identity profile] ralesk.livejournal.com 2006-10-17 10:33 pm (UTC)(link)

Yeah… my dad’s been really annoyed by this behaviour lately as well. Not to mention that the new toolbar doesn’t import his look-and-feel options and clutters everything :/

[identity profile] olego.livejournal.com 2006-10-18 03:57 pm (UTC)(link)
You guys use the Google Toolbar?

*is an Opera user*

By the way, how do you apply an ACL to a program? Or must you just say that `whoami` is unable to edit this key?

[identity profile] ralesk.livejournal.com 2006-10-18 05:24 pm (UTC)(link)

He thinks IE is the best browser ever…

I use Konqueror and Firefox and both have 1) search toolbars I never use 2) search keywords.

[identity profile] olego.livejournal.com 2006-10-18 08:26 pm (UTC)(link)
About search keywords: can I program Firefox to respond to "i query" as "imdb.com/search?n=query"? If so, please tell me how! :-)

[identity profile] ralesk.livejournal.com 2006-10-18 08:30 pm (UTC)(link)

Supposedly some new system in the works is going to allow that (maybe in 2.0 already? dunno).

[identity profile] ralesk.livejournal.com 2006-10-17 11:09 pm (UTC)(link)

Haha, that icon still strikes me with the “huh! did I post?” feeling XD

[identity profile] pleaseremove.livejournal.com 2006-10-18 06:38 pm (UTC)(link)
It so fits this post though. Read the last line of it and then look at that picture wile thinking *fanfair music* and you will understand why I chuckled when I saw it.

[identity profile] ralesk.livejournal.com 2006-10-18 06:40 pm (UTC)(link)

Oh, I know it does :) Thing is though, he nicked the icon from me (which is, actually, perfectly fine with me, but I still get surprised by it).