Can clicking a custom schema/protocol launch my app?

Status
Not open for further replies.

david8

New member
Is it possible to launch or refocus my application when a custom schema/protocol is clicked in a browser? (e.g %url%)

Thanks
 
Last edited:
Could this registry key be created in the installation process or via a macro in call in a PHP script? Or would I need to create a custom installation program?

Thanks
 
Last edited:
I was able to create a .reg file with the protocol information. I think I’ll create a separate wrapper script to install the program along with the reg file. Here’s .reg source for anyone who’s interested:
Code:
REGEDIT4  

[HKEY_CLASSES_ROOT\myapp]
@="URL:myappProtocol"
"URL Protocol"=""  

[HKEY_CLASSES_ROOT\myapp\shell]  

[HKEY_CLASSES_ROOT\myapp\shell\open]  

[HKEY_CLASSES_ROOT\myapp\shell\open\command]
@="\"C:\\Path\\To\\My\\App\\myapp.exe\" \"%1\""
Just change “myapp” and the path and you’re good to go.
 
Last edited:
Status
Not open for further replies.
Back
Top