We're trying to work out how to create a system to deep-link to our software from a web page. We've got most of the way there, the links themselves are working, but we're stuck on whether there's any way for the browser to know in advance whether the software is installed. I know there are solutions to this on Android and iOS, but I'd like to find a method that works for Windows and MacOS as well.
I've seen a few other people try to solve this (eg How to check whether specific software is installed or not using javascript in client system?) and the consensus seems to be that it's impossible, but I've seen at least one example of a website that makes it work (https://screencast-o-matic.com/screen-recorder).
Screencast-o-matic's solution seems (as far as I can tell) to rely on their software running a service in the background, so that the browser can make a call to it via 127.0.0.1. If it gets a response, it runs the software, otherwise it links to the downloader.
This solution seems very promising, but we'd like to avoid having a service run on the users' computers (this is educational software, so we have to keep the users' machines as clean as possible). But I wondered if there was a similar option which simply involves writing a file somewhere on the machine that the browser has access to.
I realise this is perhaps a little vague, but I'd appreciate any thoughts on it, or pushes in useful directions.