How to create a URI Scheme

Asked

Viewed 250 times

2

How to create a URI Scheme to open a program. URI Scheme is what the Torrent, Skype, Teamspeak, Discord among other programs they use to open their own program by WEB.

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

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: https://msdn.microsoft.com/en-us/library/aa767914(v=vs.85). aspx

Browser other questions tagged

You are not signed in. Login or sign up in order to post.