Our organization uses SPO for internal communication. So, we have a number of Team sites built for different groups. On the appropriate Team sites, I'd like to add a shortcuts/links/buttons to open a few of our legacy desktop applications (e.g. an RMS program and a timecard program). Basically, I want to run an .exe from SPO, similar to this question, but opening a non-MS application.
Well, you can register your applications to a URI scheme according to https://docs.microsoft.com/en-us/previous-versions/windows/internet-explorer/ie-developer/platform-apis/aa767914(v=vs.85).
Example: You can have a URL thisapp:var1 which will run an app in the user's PC C:\Program Files\thisapp.exe by registering your application to a URI scheme in Windows.
HKEY_CLASSES_ROOT thisapp (Default) = "URL:thisapp link" URL Protocol = "" shell open command (Default) = "C:\Program Files\thisapp.exe" "%1"
Test it on your PC first to understand how it works.
- Deploy the registry entry using Group Policy to your organization so that all PC will have this URL protocol.
- Ensure that all PCs have installed the application you want to run with this protocol with the same path.
- Then you can set up a SharePoint page contains all apps' URL protocol to launch it and plug it into a tab in Teams or put it under your Team sites.
That would not be possible using JSON formatting if that’s what you plan.
See a few references here: How to run a exe file using a java script. / Run local exe file from href link and SharePoint Top Navigation.