How to make my own url protocol?

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
User avatar
Sindarin
Forum Regular
Posts: 521
Joined: Tue Sep 25, 2007 8:36 am
Location: Greece

How to make my own url protocol?

Post 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.
User avatar
Maugrim_The_Reaper
DevNet Master
Posts: 2704
Joined: Tue Nov 02, 2004 5:43 am
Location: Ireland

Re: How to make my own url protocol?

Post 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.
User avatar
Sindarin
Forum Regular
Posts: 521
Joined: Tue Sep 25, 2007 8:36 am
Location: Greece

Re: How to make my own url protocol?

Post by Sindarin »

I am using nsis for the installer.
User avatar
Maugrim_The_Reaper
DevNet Master
Posts: 2704
Joined: Tue Nov 02, 2004 5:43 am
Location: Ireland

Re: How to make my own url protocol?

Post 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.
Post Reply