My client has an Angular intranet portal for their main c# WinForm application. They have a requirement to launch the main application from the portal website.
There is a fairly easy way to go about this in Windows although it does require adding an entry to the registry, to set up a URI Scheme. Here is an example to load notepad.exe
HKEY_CLASSES_ROOT jmNotepad (Default) = "URL:jmNotepad Protocol" URL Protocol = "" DefaultIcon (Default) = "notepad.exe,1" shell open command (Default) = "C:\windows\notepad.exe"
In the web page, add a simple link:
<a href="jmNotepad:">Launch Notepad</a>
The first time it’s launched you get a warning, which you can click to ignore subsequently.