Change protocol handler to desktop app (like mapping URL:IRC to mIRC)

10,915

I'm trying to change the IRC protocol handler

Below is a solution for Windows 8. A similar/identical procedure should work for Windows 10.

Warning:

The instructions below contain steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly.

Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs.

For more information see How to back up and restore the registry in Windows.


Changing the IRC protocol association on Windows 8

I would like to remove Google Chrome's association with the IRC protocol. If I open an IRC link from Run, such as irc://irc.neowin.net/neowin, Google Chrome opens. I would like mIRC to be associated with this protocol.

I've tried removing the association using Set Default Programs, but have had no success. It will only allow me to change it to a Windows 8 (store) app.

Solution:

I was able to remove the IRC association from Google Chrome by making this simple registry change:

  1. Go to HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\Google Chrome\Capabilities\URLAssociations\

  2. Then delete the IRC line

That's it. I tested it on my Windows 8 machine and clicking on an IRC link in Chrome launches mIRC and prompts me to connect to the server.

This is assuming you have the IRC links assosicated with mIRC.

I made a simple registry file that will make the Chrome changes as well as associate IRC and XDCC links to mIRC:

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\irc]

@="URL: IRC Protocol"

"URL Protocol"=""

[HKEY_CLASSES_ROOT\irc\shell\open\command]

@="C:\\Program Files (x86)\\mIRC\\mirc.exe %1"

[HKEY_CLASSES_ROOT\xdcc]

@="URL: XDCC Protocol"

"URL Protocol"=""

[HKEY_CLASSES_ROOT\xdcc\shell\open\command]

@="C:\\Program Files (x86)\\mIRC\\mirc.exe %1"

[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\Google Chrome\Capabilities\URLAssociations]

"irc"=-

Source Changing the IRC protocol association on Windows 8

Share:
10,915

Related videos on Youtube

Louis Waweru
Author by

Louis Waweru

Updated on September 18, 2022

Comments

  • Louis Waweru
    Louis Waweru over 1 year

    I'm trying to change the IRC protocol handler. Must I use a Store app as the below illustration somewhat suggests?


    Set Associations in Windows 10.
    The image shows that Windows is expecting the default program to be an app from the Store. Interestingly, the current setting is Google Chrome, a desktop app.
  • Louis Waweru
    Louis Waweru over 8 years
    Thanks, this works. I'm going to leave it unaccepted for a bit. I have to think about a general solution and what my question was asking.
  • DavidPostill
    DavidPostill over 8 years
    What do you mean by a general solution?
  • Louis Waweru
    Louis Waweru over 8 years
    mIRC was just an example it happened with. But I'm assuming it happens with any protocol/program, not just IRC.
  • DavidPostill
    DavidPostill over 8 years
    The solution will be the same, just change the protocol name.
  • Louis Waweru
    Louis Waweru over 8 years
    Yep, I think that's right. I can't look at it now but I wanted to think about that and come back to make an edit for the accept
  • elig
    elig about 4 years
    This doesn't work for me on Windows 10. I had those registry entries already set to HexChat IRC client but the default protocol app setting in Windows 10 Settings is the one which seems to always take precedence.