Skip to content

Latest commit

 

History

History
72 lines (42 loc) · 1.3 KB

Registry.md

File metadata and controls

72 lines (42 loc) · 1.3 KB

Windows Registry

Windows users require a registry key to
be set to the location of the Manifest file.


Locations

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>


Command

The Reg Add command can be used to insert these registry keys.


REG ADD <key>

Parameters

  • /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.


Example

reg add 
    "HKLM\Software\Google\Chrome\NativeMessagingHosts\cakemakers.editor"    \
    /d "C:\cakeMaker\Manifest.json"                                         \
    /t REG_SZ                                                               \
    /ve                                                                     \
    /f