0

Is there a solution to detect if the Lync-Addon is installed and active in my Internet Explorer using Javascript?

I know how to detect an Addon like Adobe Reader:

try {
    new ActiveXObject("AcroPDF.PDF");
    alert("Adobe Reader is installed");
} catch (err) {
    alert("Adobe Reader is not installed - " + err);
}

But i dont know how i can detect the Lync-Addon. Is there an ActiveX-Object like the Adobe Reader one?

Thanks in advance and sorry for my bad english im not a native speaker.

4

2 回答 2

1

Lync 插件 (Lync 2013) 在 Internet Explorer 中注册如下:

Name:                   Lync Browser Helper
Publisher:              Microsoft Corporation
Type:                   Browser Helper Object
Architecture:           32-bit and 64-bit
Version:                15.0.4420.0
File date:              ‎01 ‎October ‎2012, ‏‎21:47
Date last accessed:     ‎12 ‎February ‎2013, ‏‎08:11
Class ID:               {31D09BA0-12F5-4CCE-BE8A-2923E76605DA}
Use count:              47
Block count:            0
File:                   OCHelper.dll
Folder:                 C:\Program Files\Microsoft Office\Office15

暴露的对象之一是NameCtrl

new ActiveXObject('Name.NameCtrl');

如果安装了 Lync 客户端,这应该不会出错。

正如@Webritos 所提到的,真正的 ActiveX 对象似乎是 new "OCHelper.BrowserHelper.1"。但是,当您尝试实例化它时,您会收到以下错误(至少在带有 Lync2013 的 IE11 中):

new ActiveXObject("OCHelper.BrowserHelper.1");
"Automation server can't create object"
于 2013-02-12T07:16:12.987 回答
0
new ActiveXObject("OCHelper.BrowserHelper.1"); 

其中“OCHelper.BrowserHelper.1”是 Lync 浏览器帮助程序的 ProgID。

您可以使用此程序获取有关安装在您计算机上的 ActiveX 组件的信息http://www.nirsoft.net/utils/axhelper.html

关于'Name.NameCtrl',我相信与 Lync 无关(但它可用于在网站中显示在线用户等)https://msdn.microsoft.com/en-us/library/office/ms455335% 28v=office.14%29.aspx

于 2015-03-09T14:10:18.793 回答