There is a feature that we can use to make links on browser that can open specific applications registered to that kind of uri. For example, if you want to open itunes from the safari browser on a Mac, just type itmss:// on the address and hit enter.
If you want to do this on Windows, you need to register an application URI on the register. Programatically, you can do this using the following snippet in C#:
RegistryKey key = Registry.ClassesRoot.OpenSubKey("appurltest"); //open appurltest subkey
if (key == null) // checks if the protocol is already registered
{
key = Registry.ClassesRoot.CreateSubKey("appurltest");
key.SetValue(string.Empty, "URL: appurltest Protocol");
key.SetValue("URL Protocol", string.Empty);
key = key.CreateSubKey(@"shell\open\command");
key.SetValue(string.Empty, myAppPath + " " + "%1");
//%1 is the argument that will be passed to the application
}
key.Close();
After registered, you can open the app with a link like this one.
Simple example code on Github.
##Resources:
