I have a Chrome extension used in corporate environment. It is installed automatically by our installer from Chrome extensions store. However the user have to enable it manually after installation, which is very annoying.
We have all extension sources, so we can modify it as required, sign, publish, etc.
Are there any way to enable Chrome extension automatically?
In a corporate environment, you can force any extension to be installed using ExtensionInstallForcelist policy setting.
Not only it will be automatically installed, it will also be impossible for the user to disable it.
Related
I'm developing a chrome extension. I'm also a user of my chrome extension. As a user, I have the prod version of my extension installed in chrome from the chrome webstore.
As a developer, I have the development version of the chrome extension installed locally via Load unpacked on my dev machine.
That machine lists my extension twice, once for the unpacked dev version and once for the prod version. How can I be sure that I'm testing with the dev version on my dev machine?
Do I need to disable the prod version on that machine? I don't want to disable it if it can be avoided because I have sync extensions enabled (which I don't want to change) and disabling it on one machine will disable it across all my other machines.
I have msi which installs extension using windows registry as described here https://developer.chrome.com/apps/external_extensions#registry. It works fine as extension is hosted on CWS. After extension is installed, notification popup is shown to enable/remove extension.
I have created upgraded msi which contains updated nativeapp as well as new extension. When I run new msi old extension entry is removed from registry and new extension entry is added into the registry ( both extension have different ids ). At that time some times, Notification popup is not shown for newly added extension. New Extension is installed however, it is disabled and old extension is removed.
I event tried to restart chrome but extension notification popup is not displyed as it looks like newly added extension is blacklisted.
Is there any way so that user can be prompted with popup to enable/remove extension in this case?
I have an extension which talks to a native application. This application only works on macOS or Windows. But when I add the extension to my browser, it is also synchronized automatically to platforms where it does not make sense such as Linux or Chrome OS.
I'd figured there would be an option in the manifest.json to limit the app to specific platforms but I can't find anything like that. Am I correct? Or is there a solution?
Extensions will be installed based on chrome login. So it will be installed on all devices with chrome login.
You can programmatically enable/disable your scripts after checking for supported platform OS.
Use this API in background script to collect platform details - API Link.
Related question: Detect operating system from Google Chrome Extension
In the back good old days, we can install chrome extension offline by drag and drop the crx file into chrome://extensions panel, but that will fail with the latest chrome now, saying "this can only be added from the chrome web store", I'm running 30.0.1599.101, Windows-7 64-bit
Is there any alternative way to offline install chrome extension ?
Update: this is not duplicate question of Re-enabling extension installs
please notice the difference of address bar in below snaps
DnD is not working anyway. We can DnD the crx file into Chrome, and Chrome knows it is one extension.
--enable-easy-off-store-extension-install is not working either. I was asked to confirm install the extension, and I said Yes, please do it, but failed with the indicator progress bar disappears
If crx file install is not working, the alternate way is to unzip the crx file using an archive manager like 7-zip.
Then to install the extension :
Go to the Extensions page, chrome://settings/extension
Activate Developer mode
Select Load unpacked extension...
Select your unpacked extension folder.
I am testing a chrome extension in dev mode. Once I finish it, I packaged it and installed on my machine! It is working. But I am not sure whether the old localStorage was removed when I uninstalled the extension from browser(Dev mode).
Will the associated localStorage be removed when uninstalling an extension from dev mode and installing the same thing as a packaged extension?
All associated data with an extension is removed when the extension is uninstalled. You can verify this by visiting your Chrome profile directory, and descend in Local Storage. You'll see a SQLLite database (eg. chrome-extension_lndfmdleiloedhcbmjofibnflfbjhpha_0.localstorage).
After removing the extension, this database disappears.