GoToMeeting如何验证为安装会话而安装的桌面软件

Sac*_*sad 6 javascript windows

寻找一种技术,我可以在Windows PC上安装我的软件,并使用javascript检查是否安装了该软件.

如果安装启动它.如果没有安装下载它.

我得到的提示是添加自定义字体或mime类型,然后检查它是这样的 - https://www.samclarke.com/javascript-is-font-available/

Sag*_*r V 1

那是一个协议处理程序。

支票如何运作,

它执行自定义架构 url。例如。

执行magnet://会将您重定向到torrent application if installed. Else, redirect you to google. Here, in the place of google, you can use the protocol handler to redirect to the setup file.

从移动设备执行whatsapp:// will Open whatsapp if installed.

检查下面的代码片段。

运行它会提示打开torrent应用程序。

function utorrent_test(){
  return window.location.href="magnet://";
}
var result=utorrent_test();
console.log(result);
Run Code Online (Sandbox Code Playgroud)

阅读有关协议处理程序的更多信息MDN

另请详细阅读此处https://html.spec.whatwg.org/multipage/webappapis.html#custom-handlers