Accessing Registry Keys

1,074 views
Skip to first unread message

Mostafa Elsaie

unread,
Mar 31, 2014, 8:52:23 AM3/31/14
to chromium-...@chromium.org
I have built a Chrome extension and been looking online for some time now to find a solution to reading local windows registry keys from the extension. As i have understood so far, Chrome prevents the extensions from accessing user settings/Registry keys and the only way to gain access to the windows registry is via the help of NPAPI. However, NPAPI is currently discouraged as Chrome is planning to completely drop support for NPAPI. Any ideas on that? Can anyone guide me through this topic? Is there another way to accessing the registry from within the extension? And is NPAPI truly discouraged for new extensions/Projects?

Thanks a lot for your help in advance.

Alexandre Barreira

unread,
Mar 31, 2014, 9:52:02 AM3/31/14
to chromium-...@chromium.org
Hi Mostafa,

You must use the new native messaging interface instead of NPAPI: http://developer.chrome.com/extensions/messaging#native-messaging

One major difference being that you need to have a standalone installer for you native messaging host, whereas NPAPI allowed you to ship both the extension and the native component in one package.

Hope that helps.
Alexandre

Mostafa Elsaie

unread,
Mar 31, 2014, 11:35:42 AM3/31/14
to chromium-...@chromium.org
Thanks a lot Alexandre, that helps a lot!
Reply all
Reply to author
Forward
Message has been deleted
0 new messages