How to make my own url protocol?
Moderator: General Moderators
How to make my own url protocol?
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.
- 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?
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.
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?
I am using nsis for the installer.
- 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?
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.
I'd search the NSIS documentation for scripting Registry entries.