How to create a URI Scheme

2

How to create a URI Scheme to open a program. URI Scheme is what the Torrent , Skype , TeamSpeak , Discord among other programs use to open itself program by WEB .

Example: ts3server://servidor.com.br:4000

    
asked by anonymous 02.06.2016 / 00:56

1 answer

1

You need to register your URI Scheme in the windows registry follow the path of the registry:

HKEY_CLASSES_ROOT/
  your-protocol-name/
    (Default)    "URL:your-protocol-name Protocol"
    URL Protocol ""
    shell/
      open/
        command/
          (Default) PathToExecutable

Practical example:

HKEY_CLASSES_ROOT/
   alert/
      (Default) = "URL:Alert Protocol"
      URL Protocol = ""
      DefaultIcon
         (Default) = "alert.exe,1"
      shell/
         open/
            command/
               (Default) = "C:\Program Files\Alert\alert.exe" "%1"

More details: link

    
02.06.2016 / 01:50