Google Chrome self-hosted extension does not update - google-chrome-extension

I can not make my self-hosted extension to update itself, neither automatically nor with manual updates.
I tried:
Update button at chrome://extensions/ with Developer mode enabled
Update button at individual extension page under chrome://extensions with Developer mode enabled
Of course before doing that I:
updated version number in manifest.json and updates.xml
made sure that extension ID in app appid and URL in updatecheck codebase are correct
The only way that worked is manually drag a file with new version to a tab with chrome://extensions/, both with and without uninstalling the older version first.
As a sidenote, the extension is installed in two of my different user profiles under the same installation of Chrome (and under the same MacOS user), but I would be surprised if it's relevant.
How can I debug the problem? What else can I check?

Related

Disable notifications of a Chrome Extension that you don't control

I'm using a Chrome Extension, which I like a lot, but it shows notifications, which I find distracting. I want to disable those notifications. I'm using Linux Mint, and the notifications are shown in the panel (at the bottom of the screen).
I've checked chrome.management API, but haven't found anything related to disabling notifications. Also googling didn't provide any results.
The only way I can think of is installing the same
extension via Developer mode, creating a system script that would be watching the original Chrome Extension folder for changes, and on every change, copy the content to the Developer Mode folder (modified), modify it after each update to remove the notifications permission, and then reload the Developer Mode extension inside Chrome via a shortcut, for example.
I'm wondering if there is any simpler way to accomplish this.

ExtensionForceInstallList Chrome Browsers Not Auto-Updating

In our product we force install the Chrome extension we ship via Policy setting ExtensionForceInstallList. The setting is in the proper format and initially installs our Chrome extension from the Google web store just fine.
The problem is when I publish a newer version those same clients do not pull down the new version unless our tester goes to the Manage Extensions page and clicks Update.
These were on clients that brought up the Chrome browser today (a Tuesday) on a Chrome extension that was formally "published" on the previous Friday.

Chrome: Installing local extension (.CRX file)

We built a chrome extension recently and we want to use it internally without publishing it to chrome web store.
But in the latest chrome browser versions, this feature is disabled and one cannot use local extensions anymore. We can use it only if it's published to chrome web store.
So, instead of using the .crx file, I am using the unpacked extension. This works fine and doesn't disable the extension. But gives an alert everytime I open the browser, which I need to cancel.
Are there any settings that can be changed to avoid this alert. Thanks.

Install chrome extension using registry

I have an extension that is hosted in Chrome wwebstore, I want to make an installer that installs it automatically through registry, however, I seems that this method does not work anymore, and if it works it wont be activated. Is there any other possible solution after the last chrome updates.
No matter which method you use for an installer, the extension will be initially disabled and user will be presented with a question whether he wants to enable your extension.
That said, this is still the correct method. Add a key to the registry, on next launch Chrome will download the extension and present a dialog to the user.
The only way to install an extension "no questions asked" (on Windows) is through domain policies.

Is it possible to create a Chrome Extension for private distribution outside Chrome Web Store?

We have a Chrome Extension application that we have developed and would like to distribute it only a limited number of internal users.
This would be a private app, but to install it, users now have to follow the manual steps of going to Settings -> Extensions -> clicking on Developer mode -> drop the .crx in there.
I would like to know if there is a way to just have private App Store to privately distribute this app and not have it on Chrome Web Store for anyone to see/download/use.
Thanks for your help in advance ---
You use the Chrome Web Store. 2 options are available:
Share an unlisted Chrome extension from the Chrome Web Store (anyone with the link will be able to install it)
Chrome customers using G Suite or Education can use the Chrome Web Store to host private apps restricted only to their users on the same domain.
See https://support.google.com/chrome/a/answer/2663860
Update 2016-05-20: From https://support.google.com/chrome/a/answer/2663860?hl=en
Chrome customers using Google Apps for Work or Education can use the Chrome Web Store to host private apps restricted only to their users or people who you share a direct link to the app with. Users from the same Chrome domain will see their organization's private apps in a private collection in the Chrome Web Store.
Update 2015-10-27: Google has updated installation policies in attempt to curb malicious extension activity on Windows. On the chrome extension hosting page:
Warning: As of Chrome 33, Windows users can only download extensions
hosted in the Chrome Web store, except for installs via enterprise
policy or developer mode (see Protecting Windows users from malicious
extensions). As of Chrome 44, no external installs are allowed from a
path to a local .crx on Mac (see Continuing to protect Chrome users
from malicious extensions).
With the latest versions of Google Chrome, users are no longer going to be able to just click a download link and have it install with the correct HTTP headers. This leaves you with 4 possible options:
user downloads extension and then drags the file into the extension management page (This no longer works on Windows per update note)
change registry settings on users computers
user downloads extension source folder and loads extension from source in the extension management page
Re-enable extension installs with command-line flag as suggested by Rob W
I have created and distributed several different Google Chrome extensions privately within my company and went with the first option. It is an extra step for the users but it wasn't a big deal. The users did not have to have developer mode enabled in their Chrome browser for this to work.
Yes, you can. You need to create the crx file through the google chrome "Extensions" page (visit: chrome://extensions/ NOTE: You cannot click the link you have to manually copy and paste it, chrome does not allow you to visit the link from href)
On the Extensions page, check the box "developer mode", choose "pack extension".
Now you get the following popup. Click "browse" for the Extension root directory and navigate to the folder containing your extension (the folder containing manifest.json).
The first time you do this, ignore private key file. It will generate one for you automatically and save it to the same folder.
When you release a new version of the extension, use the generated private key file. This way for someone to update the extension, it won't ask for permissions again.
TO INSTALL
To install the extension, just get each user to manually drag the newly created extension crx into the Extensions page (chrome://extensions/).
The first time it will ask for permissions just like when installing from the Chrome Web Store.
For each new version, as long as you used the same private key file for each new version, users just drag the new version into the Extensions page the same way except they won't be asked for permissions again. It will just update the extension.
WARNINGS:
Beware the way you distribute the extension crx file. When user downloads the extension .crx file in Google Chrome, it will think you're trying to install the extension from that page, and come up a warning "couldn't be installed from this site". You need to make sure that users know to ignore the error, and check their downloads folder for the extension to manually install it.
Whenever you download the .crx file, Chrome will give the user a warning saying it might contain a virus. There is no way around this. Even if you zip up the file, Chrome will read the contents and give the same warning. Some users won't install because of this. A workaround is to rename the .crx to something else, like .RENAME_TO_CRX, but this is a hassle and a lot of users either won't want to or won't be able to figure it out.
You can't update the extension automatically. It's just not possible because Chrome manually blocked this capability.
NOTE: Another way would be to release it on the Chrome Store, but only for certain users (not public). Only people with the link could install, OR you could make it only certain people can install and even if you had the link but weren't part of the group, they couldn't view the extension. Only problem here is if you don't want Google to see the extension.
If you use Google Apps, it appears there's now a way to publish apps and extensions to the Chrome Web Store, but only make it visible to users of that domain.
https://support.google.com/chrome/a/answer/2663860?hl=en
Since its internal, could you change registry settings on their computers?
Because if so, you can use them to allow easy install of extensions from outside the web store or force install extensions on their machine.
Look here....
http://www.chromium.org/administrators/policy-templates
http://www.chromium.org/administrators/policy-list-3#ExtensionInstallSources
http://www.chromium.org/administrators/policy-list-3#ExtensionInstallForcelist

Resources