You need to register your application to a URL scheme, like what skype:
, msteams:
, mailto:
and other url schemes do to open a client application using a link, then assuming you have registered a myapp:
url scheme for your application, then a link like <a href="myapp:?param1=something¶m2=somethingelse">Open my app!</a>
will open your application and even pass some parameters to the app.
I've already posted a detailed answer in this SO post:
You can download the sample code of the answer, or clone the repository. The project even contains an installer, which install the application and registers the URL scheme.
Also make sure you install the You can download the code from the repository, but before that make sure you install the Microsoft Visual Studio Installer Projects 2022 extension or Microsoft Visual Studio Installer Projects 2019 - 2017 depending to your visual studio version.
If you want to see how to parse query string, take a look at the follow up question here: How to parse query string parameters when I open my app using a custom URL scheme?
Also to learn more, you can take a look at: