Windows users require a registry key to
be set to the location of the Manifest file.
The following are the relevant registry locations.
Level | |
---|---|
System | HKEY_LOCAL_MACHINE\SOFTWARE\Google\Chrome\NativeMessagingHosts\<appId> |
User | HKEY_CURRENT_USER\SOFTWARE\Google\Chrome\NativeMessagingHosts\<appId> |
The Reg Add command can be used to insert these registry keys.
REG ADD <key>
-
/t <type>
Specifies the datatype of the value.
-
/d <data>
Sets the value.
-
/ve
Sets a value without name.
-
/f
Forces any existing keys to be overwritten.
reg add
"HKLM\Software\Google\Chrome\NativeMessagingHosts\cakemakers.editor" \
/d "C:\cakeMaker\Manifest.json" \
/t REG_SZ \
/ve \
/f