Link to home
Start Free TrialLog in
Avatar of Brian_MB
Brian_MBFlag for United States of America

asked on

Chrome launch custom URI protocol handler

I have a URI protocol handler in the windows registry to launch an application.  How can I test/call that from the chrome address bar?   if I put in protocolname:parameters, chrome just performs an internet search.  I want to launch protocolname and the application specified in protocolname handler.

I have a 3rd party website that is able to launch the protocol.  They have a settings field to launch URL on a trigger.  I put in my protocolname:parameters in the URL field.  When triggered, this website opens a new tab and protocolname:parameters shows in the address bar and the protocol is launched.  Like I said, though, when I try to test by putting the same thing manually in an address bar, it triggers a search instead of launching the protocol handler.
Avatar of David S.
David S.
Flag of United States of America image

What I would try first is adding a custom default search engine to do that. That also involves having a web server configured on your home/office network that can run scripts from a server-side scripting language (I use PHP for this). The script modifies the URI and redirects to an address that Chrome can understand (or, if running on the same machine, might launch another app). IIS and Apache (perhaps via the WAMP or XAMPP packages) would both work for this.

https://www.ghacks.net/2018/03/30/custom-search-engines-in-google-chrome/
https://www.makeuseof.com/tag/create-custom-search-engines-google-chrome/
https://www.minterest.com/how-to-create-custom-search-engines-google-chrome/

Otherwise, you would need to add a custom protocol in the Windows Registry. However, there's a bug in Chrome related to that:
https://bugs.chromium.org/p/chromium/issues/detail?id=560809
https://msdn.microsoft.com/en-us/windows/desktop/aa767914?f=255
https://docs.microsoft.com/en-us/windows/desktop/search/-search-3x-wds-ph-install-registration
https://support.shotgunsoftware.com/hc/en-us/articles/219031308-Launching-applications-using-custom-browser-protocols
Avatar of Brian_MB

ASKER

Thanks David.  I guess I was looking for a simple answer for testing.

"Otherwise, you would need to add a custom protocol in the Windows Registry. However, there's a bug in Chrome related to that:
https://bugs.chromium.org/p/chromium/issues/detail?id=560809"

There's the problem.  I wonder why something as simple as being able to call the handler from the omnibar is still a bug.
ASKER CERTIFIED SOLUTION
Avatar of Brian_MB
Brian_MB
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial