I made a chrome extension and want its installation to be done as a part of software installation setup using windows registry. It installs the extension for chrome, but in disabled state. Extension is listed in the list of installed extension in chrome://extensions. How can I enable the extension using code(without end-user intervention). I don't want my user to enable it manually.
问题:
回答1:
You can't directly enable chrome extension because of chrome security police(After Chrome 25).
Extensions installed by third party programs using external extension deployment options will be disabled by default. When a third party program installs an extension, the Chrome menu will be badged, and users can click through the Chrome menu to see a dialog containing an option to enable the extension or to remove it from their computer.
In addition, all extensions previously installed using external deployment options will be automatically disabled. Chrome will show a one-time prompt to allow the re-enabling of any of the extensions.
But you can use inline installation but you need to upload your extension in Chrome Web Store and ask to user directly like this.
For More information check below links :
- No more silent extension installs
- Protecting Windows users from malicious extensions