Pre-installed Extensions not working anymore

1,011 views
Skip to first unread message

Andy

unread,
Jul 6, 2016, 12:48:09 AM7/6/16
to Chromium-dev
According to the article below, Chromium supports pre-bundled extensions.

I've tried all the methods introduced but none of them worked. Was this feature blocked by purpose or by some bugs? I'm using the latest Chromium.

Antony Sargent

unread,
Jul 6, 2016, 5:18:17 PM7/6/16
to andy...@googlemail.com, Chromium-dev
Were you using an official Google Chrome branded build that you downloaded from https://www.google.com/chrome/ ? Or a version of chromium build from source by yourself or from the chromium continuous build archive? If it's chromium and not Google Chrome, it's possible you need to substitute "Chromium" in the places where those instructions say "Google/Chrome"


--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev

Andy

unread,
Jul 7, 2016, 10:06:47 AM7/7/16
to Chromium-dev, andy...@googlemail.com
I'm using Chromium built from the source code. I've tried to replace Google/Chrome with Chromium or Google/Chromium. Neither them worked. Any idea?

Antony Sargent

unread,
Jul 7, 2016, 12:13:20 PM7/7/16
to Lovense Support, Chromium-dev
What OS (win/mac/linux) were you using, and what revision did you build from? 

Andy

unread,
Jul 7, 2016, 9:10:47 PM7/7/16
to Chromium-dev, andy...@googlemail.com
I've tried on both Windows 7 (Registry) and Macbook Air (preferences) and none of them worked. The Chromium version is Chromium  53.0.2768.0 dev version 64 bit.

daniel Amsalem

unread,
Jul 8, 2016, 3:47:40 AM7/8/16
to andy...@googlemail.com, Chromium-dev
Hi,
Please do not send me e-mails, it's a mistake I do not know you, thank you,
Daniel

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.

Antony Sargent

unread,
Jul 8, 2016, 3:34:36 PM7/8/16
to Lovense Support, Chromium-dev
I was able to get it to work using this version of chrome from the continuous built archive that was build around the time that the DEPS file for 53.0.2768.0 was branched. 


But, I had to amend the registry path slightly:

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Google\Chrome\Extensions\[id of your extension crx]

as recommended here. Note that using Google\Chrome still works for Chromium builds - sorry I didn't remember this when I saw your initial email; it took me playing around with it myself to jog my memory. 

This is a little confusing - lazyboy@ and scottmg@ and I had some discussion about this on a recent code review here:


I think there has been some confusion in the past about whether it's the 32/64-bitness of the installer program writing the entries or that of chrome that should count, or perhaps this is just a legacy of when chrome was only 32-bit even on 64-bit windows, and we've ended up in the situation where we might break existing consumers if we change it. 

Antony Sargent

unread,
Jul 8, 2016, 3:47:59 PM7/8/16
to Lovense Support, Chromium-dev
BTW, I've just updated the instructions at https://www.chromium.org/administrators/pre-installed-extensions to mention the need for using Wow6432Node in the registry path on 64-bit windows. 

Andy

unread,
Jul 8, 2016, 9:30:43 PM7/8/16
to Chromium-dev, andy...@googlemail.com
Thanks a lot Antony.  You are amazing!  Can you also look into "master_preferences" for Mac ? We need both Windows and Mac versions. Since Mac doesn't have the registry, we have to use "master_preferences". It is not working at moment.

Lovense Support

unread,
Jul 9, 2016, 3:16:22 AM7/9/16
to Chromium-dev
Yes I did try and actually tried again for Mac. Still no luck :(

Andy

unread,
Jul 10, 2016, 10:29:05 PM7/10/16
to Chromium-dev
1.”Both ways support installing an extension hosted at an update_URL. On Windows and Mac, the update_URLmust point to the Chrome Web Store where the extension must be hosted.”
Question:If update_URL is not a Chrome Web Store URL but our own server, would it work?

2.”For all users: /Library/Application Support/Google/Chrome/External Extensions/“
Question:We've tried putting into the three locations as below:
~/Library/Application Support/Google/Chrome/ 
~/Library/Application Support/Chromium 
~/Library/Application Support/Chromium/Default
none of them had the External Extensions folder. I then created the External Extensions folder and added preferences file. It doesn't work

Andy

unread,
Jul 11, 2016, 8:51:59 AM7/11/16
to Chromium-dev, andy...@googlemail.com
Managed to get it working on Mac just now. The reason it didn't work was because it took a while to download the file from the external_update_url. There seem to be no way to pre-bundle it on Mac computers. Instead of downloading from our server, is there anyway to bundle it into the package?

Andy

unread,
Jul 12, 2016, 8:46:30 AM7/12/16
to Chromium-dev, andy...@googlemail.com
There is another thing I've noticed. When I properly configured the registry, Chromium will pick up it at startup. However, the Chromium doesn't really install the extension but instead putting a warning icon. The users would have to click on the warning icon to activate the extension. Is there anyway to have the extension installed automatically without getting the user to click?

Antony Sargent

unread,
Jul 12, 2016, 2:22:56 PM7/12/16
to Lovense Support, Chromium-dev
If the computers where you want to do the install are owned by you or under your administrative control (eg an internal LAN, a corporate or academic institution, etc.) there is enterprise policy available which can be used to force-install extensions with no activation confirmation and no option to uninstall:


However, just as a warning, enterprise policy is not to be used for force-installing extensions on individual consumer's computers that aren't owned/managed by you, and any use of enterprise policy in such cases may be a violation of our unwanted software policy and could result in your extension being removed from the chrome web store and/or your binaries/websites being flagged by safe browsing



Andy

unread,
Jul 13, 2016, 3:43:40 AM7/13/16
to Chromium-dev, andy...@googlemail.com
We need to customized lots of things on Chromium. We plan to write a few Chrome extensions and distribute together with Chromium to our customers. That why we need to pre-install those extensions during the installation process. The end users are individual consumers but not enterprise customers. Are there any solution for us with Chromium ?

Antony Sargent

unread,
Jul 19, 2016, 6:39:59 PM7/19/16
to Lovense Support, Chromium-dev
If you're distributing your own browser binaries based on the chromium source, you can generally customize things however you want, including changing the code to directly install extensions instead of doing the warning first. You'll probably want to figure out the right way to customize the build process so that it uses your product's name instead of Chromium, and I think that will likely take care of customizing the path to the user preferences directories where you'd want to drop the preference based config files for extension install, so as not to conflict with the official "Google Chrome" or open source "Chromium". 


Reply all
Reply to author
Forward
0 new messages