Page 1 of 1
How to make my own url protocol?
Posted: Thu Sep 18, 2008 4:37 am
by Sindarin
How can I make a link that calls a particular application to take over? Like ymsgr:// calls Yahoo messenger or ed2k:// add links for eMule to download? What I need to write to the Windows registry? I need this function for a service Flash Player-like application which auto downloads and launches desktop games quickly through those links.
Re: How to make my own url protocol?
Posted: Thu Sep 18, 2008 6:23 am
by Maugrim_The_Reaper
http://kb.mozillazine.org/Register_protocol
This seems to be the standard method used - might differ depending on how your application is installed and such, but if all else fails a reg file will do the trick as described.
Re: How to make my own url protocol?
Posted: Thu Sep 18, 2008 7:27 am
by Sindarin
I am using nsis for the installer.
Re: How to make my own url protocol?
Posted: Thu Sep 18, 2008 11:31 am
by Maugrim_The_Reaper
I don't use NSIS, but one of it's standard functions should be to collect registry entries to add once installation of the app is almost finished. If you take the REG content from the Mozilla article and slot into the right NSIS script it should be simple.
I'd search the NSIS documentation for scripting Registry entries.