通过javascript检查Windows注册表值 [英] Check windows registry values through javascript
本文介绍了通过javascript检查Windows注册表值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Hi Team,
我们可以通过创建Activex对象来检查我们是否在javascript中为Internet Explorer启用了Activex。
script type = text / javascript
var activexObj = new ActiveXObject();
脚本
通过该处理程序,我们可以读取Windows注册表值
registryHandler.RegRead( HKEY_LOCAL_MACHINE \\Software \\Abc \\ Version )
这是针对Activex的。但是我想从注册表中读取更多的密钥。
密钥 设置 信息 值
< span class =code-leadattribute> 1001 ActiveX controls 和 插件: 下载 已签名 ActiveX 控件 0
1004 ActiveX controls 和 插件: 下载 unsigned ActiveX 控件 0
1200 ActiveX controls 和 插件: 运行 ActiveX controls 和 plug- ins 0
1201 ActiveX controls 和 插件: 初始化 和 script ActiveX
控件 不 标记为 < span class =code-leadattribute> safe for scripting 0
2102 其他: 允许 脚本 已启动 windows 没有 size 或
position 约束 0
1804 其他: 启动 程序 >和 文件 a IFRAME 0
1607 其他: 导航 子框架 跨 不同 域 0
120B ActiveX 控件 和 插件: 覆盖 每站点(基于域)
ActiveX 限制 0
2200 下载: 自动 提示 for file downloads 0
1406 其他: 访问 数据 来源 跨 域 0
2702 ActiveX 控件 和 插件: 允许 ActiveX 过滤 3 跨度>
我们如何使用javascript读取这些注册表项?
任何帮助表示赞赏。
谢谢,
Lok ..
解决方案
请不要阅读注册表项从您的浏览器。
首先,您的ActiveX控件只能在Internet Explorer上运行。因此,该解决方案已经不支持跨浏览器。
接下来,您为什么要知道Web应用程序中特定软件的版本号是什么?
Hi Team,
We can check if we have Activex enabled for Internet explorer in javascript by creating object of Activex.
script type="text/javascript"
var activexObj = new ActiveXObject();
script
Throught that handler we can read the windows registry values
registryHandler.RegRead("HKEY_LOCAL_MACHINE\\Software\\Abc\\Version")
This is for Activex. But I want to read some more Keys from registry.
Key Setting info Value
1001 ActiveX controls and plug-ins: Download signed ActiveX controls 0
1004 ActiveX controls and plug-ins: Download unsigned ActiveX controls 0
1200 ActiveX controls and plug-ins: Run ActiveX controls and plug-ins 0
1201 ActiveX controls and plug-ins: Initialize and script ActiveX
controls not marked as safe for scripting 0
2102 Miscellaneous: Allow script initiated windows without size or
position constraints 0
1804 Miscellaneous: Launching programs and files in an IFRAME 0
1607 Miscellaneous: Navigate sub-frames across different domains 0
120B ActiveX controls and plug-ins: Override Per-Site (domain-based)
ActiveX restrictions 0
2200 Downloads: Automatic prompting for file downloads 0
1406 Miscellaneous: Access data sources across domains 0
2702 ActiveX controls and plug-ins: Allow ActiveX Filtering 3
How can we read these registry keys using javascript?
Any help appreciated.
Thanks,
Lok..
解决方案
Please don't read Registry Keys from your browser.
First, your ActiveX control can only run on Internet Explorer. Thus, the solution is already not Cross-Browser supported.
Next, why would you like to know if version number of a specific software in your web application?
这篇关于通过javascript检查Windows注册表值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文