简体   繁体   English

找到安装的插件?

[英]find a plugin installed?

From web, I want to detect if our application has been installed or not. 从Web,我想检测是否已安装我们的应用程序。 With number of research, we have found this site: 通过大量研究,我们找到了以下站点:

Detect from browser if specific application is installed 从浏览器检测是否安装了特定的应用程序

There is a light for us to write something to detect: 我们可以轻描淡写地写一些东西来检测:

if (navigator.plugins["Adobe Acrobat"]) {
// do some stuff if it is installed
} else {
// do some other stuff if its not installed
}

The questions are: 问题是:

  • how the browsers find "adobe acrobat" on the local machine? 浏览器如何在本地计算机上找到“ adobe acrobat”?
  • is "adobe acrobat" a plugin installed? 安装了“ adobe acrobat”插件吗? how can I check it manually on my machine? 如何在机器上手动检查?
  • how to write a program or a plugin like "adobe acrobat" so that I can use: navigtor.plugins? 如何编写程序或类似“ adobe acrobat”的插件,以便我可以使用:navigtor.plugins?

Thanks in advance. 提前致谢。

1 You will have to check each browser vendor for their plugin api. 1您将必须检查每个浏览器供应商的插件API。

2a For security, the only way javascript is allowed to check for installed programs is if it is a plugin for that particular browser 2a为了安全起见,允许javascript检查安装程序的唯一方法是它是否是该特定浏览器的插件

2b Each browser is different. 2b每个浏览器都不同。

3 Each browser is different. 3每个浏览器都不同。 Check the plugin api's (most browsers use a similar api called npapi) 检查插件的api(大多数浏览器使用名为npapi的类似api)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM