Windows NativeMessagingHosts

118 views
Skip to first unread message

Myer Nore

unread,
Jun 6, 2017, 10:44:04 AM6/6/17
to nw.js
The chrome native messaging docs say that on Windows, to connect a native messaging host to chrome one must make a windows registry entry to either of the following key locations:
  1. HKEY_LOCAL_MACHINE\SOFTWARE\Google\Chrome\NativeMessagingHosts\com.my_company.my_application
  2. HKEY_CURRENT_USER\SOFTWARE\Google\Chrome\NativeMessagingHosts\com.my_company.my_application
I have a Native Messaging Host that I would like to connect to the Chromium instance associated with my nw.js app without connecting it to the global Chrome. What registry key I should I use to connect the native messaging host used by my nw.js app to nw.js's Chromium?  Better yet, if I manually specify the --user-data-dir directory, should that override the NativeMessagingHosts location interpreted by nw.js? 

Myer Nore

unread,
Jun 7, 2017, 3:04:49 PM6/7/17
to nw.js
Is there a chance that the registry key needs to be updated here:

HKEY_CURRENT_USER\SOFTWARE\nwjs\NativeMessagingHosts\com.my_company.my_application

rather than here?

HKEY_CURRENT_USER\SOFTWARE\Google\Chrome\NativeMessagingHosts\com.my_company.my_application

Myer
Reply all
Reply to author
Forward
0 new messages