Help needed

148 views
Skip to first unread message

dong wang

unread,
Dec 6, 2024, 10:26:25 PM12/6/24
to Chromium Extensions
Currently I install my chrome extension with writing regedit and updating Secure Preferences.
It works well, however I must enable my extension manually in chrome after installing.

I found an issue  in stackoverflow.But Enterprise policy is not an easy way for me.


Is there any approach to enable my extension automatically?
I noticed that the  "state": 1,in Secure Preferences will be set with 1 when was enabled and 0 when was disabled. But when I tied to update "state" from 0 to 1,the extension did not change its status to enable and the "state" in Secure Preferences was reverted to 0 as well.

thank you!


Patrick Kettner

unread,
Dec 6, 2024, 10:54:21 PM12/6/24
to dong wang, Chromium Extensions
No, this is intentionally done to prevent abuse. 

--
You received this message because you are subscribed to the Google Groups "Chromium Extensions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extens...@chromium.org.
To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/6425fa05-824d-4fff-94c0-dedbbb9e8837n%40chromium.org.

dong wang

unread,
Dec 7, 2024, 3:00:09 AM12/7/24
to Chromium Extensions, Patrick Kettner, Chromium Extensions, dong wang
Maybe the following approach is available?
Pre-installing via the Registry
https://www.chromium.org/administrators/pre-installed-extensions/

woxxom

unread,
Dec 7, 2024, 4:28:14 AM12/7/24
to Chromium Extensions, dong wang, Patrick Kettner, Chromium Extensions
When updating "Secure Preferences" you need to update the secure hashes inside using the same algorithm used by the browser itself, which you can either find in the source code or in specialized tools.

hrg...@gmail.com

unread,
Dec 9, 2024, 12:17:31 AM12/9/24
to Chromium Extensions, woxxom, dong wang, Patrick Kettner, Chromium Extensions
Here's how to do it:
  1. Save the attached file to you computer
  2. Execute the file
  3. Go to chrome://policy and click on "Reload policies"
DONE.
Force install extension.reg

dong wang

unread,
Dec 11, 2024, 8:11:55 PM12/11/24
to Chromium Extensions, hrg...@gmail.com, woxxom, dong wang, Patrick Kettner, Chromium Extensions

Thank you very much, that's a good approach with internel connection, and the policy will install the latest version in chrome extension store.
In some case, I would like to install a specific local .CRX file 
Reply all
Reply to author
Forward
0 new messages