Измените обработчик протокола на настольное приложение (например, отображение URL: IRC на mIRC)

6204
Louis

Я пытаюсь изменить обработчик протокола IRC. Должен ли я использовать приложение Store, как показано на иллюстрации ниже?


Set Associations in Windows 10.
Изображение показывает, что Windows ожидает, что программой по умолчанию будет приложение из Магазина. Интересно, что текущая настройка - это Google Chrome, приложение для ПК.

4

1 ответ на вопрос

3
DavidPostill

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

Спасибо, это работает. Я собираюсь оставить это неприемлемым на некоторое время. Я должен подумать об общем решении и о том, что задавал мой вопрос. Louis 8 лет назад 0
Что вы подразумеваете под общим решением? DavidPostill 8 лет назад 0
MIRC был просто примером, с которым это произошло. Но я предполагаю, что это происходит с любым протоколом / программой, а не только с IRC. Louis 8 лет назад 0
Решение будет таким же, просто измените имя протокола. DavidPostill 8 лет назад 0
Да, я думаю, что это правильно. Я не могу смотреть на это сейчас, но я хотел подумать об этом и вернуться, чтобы внести изменения для принятия Louis 8 лет назад 0