Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I launch my windows app when a users opens a url?

Tags:

windows

I would like to be able to send my users a url such as http://myname.com/users/edit/5, and when they click the link (or open it in IE/Chrome/etc..) it should open up my application to the "Edit user 5" screen. The app would already be installed on the users pc (but not necessarily running). What is the best way to hook into this?

like image 260
NotDan Avatar asked Feb 25 '23 02:02

NotDan


1 Answers

You have to designate custom protocol name unused by any other app like for example "myapp".

Then bind your application to this protocol.

Then url like myapp://myname.com/users/edit/5 will open your application (and pass the URL to the application for further processing).

like image 54
Matěj Zábský Avatar answered Feb 27 '23 14:02

Matěj Zábský