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:
- HKEY_LOCAL_MACHINE\SOFTWARE\Google\Chrome\NativeMessagingHosts\com.my_company.my_application
- 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?