Windows, Set custom protocol handler name

773 views Asked by At

I'm trying to set a name to my protcol handler without touching the executable, let me explain, when i register a protcol handler following this answer and I try to open it from the browser i get a popup like this:

Popup

Now chrome and the other browsers get the protocol name from the executable file properties:

Windows Properties

My question is: there is a windows registry key that let me specify the protcol name, without touching the executable?

2

There are 2 answers

0
Bohdan On BEST ANSWER

Better way is to include application name directly in your protocol definition:

[HKEY_CURRENT_USER\SOFTWARE\Classes\your-protocol-name\Application]
"ApplicationName"="Your Application Name"

Modifying MuiCache (as suggested in previous answer) is tricky - it doesn't always work, e.g. if your handler executable name is ProtocolHandler.exe and there is MS Office installed.

0
soloelroy On

You have to specify the Friendly App Name in the registry:

in HKEY_CLASSES_ROOT\Local Settings\Software\Microsoft\Windows\Shell\MuiCache add an entry with name "PATH\TO\EXE.FriendlyAppName" and the value will be the name you want to show in the browser pop-up.


Add to registry in bat:

REG ADD "HKEY_CLASSES_ROOT\Local Settings\Software\Microsoft\Windows\Shell\MuiCache" /f /t "REG_SZ" /v "C:\protocol_handler.exe.FriendlyAppName" /d "App Name"