Click here to Skip to main content
15,886,724 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Team,
We can check if we have Activex enabled for Internet explorer in javascript by creating object of Activex.
JavaScript
script type="text/javascript"

var activexObj = new ActiveXObject();

script

Throught that handler we can read the windows registry values
JavaScript
registryHandler.RegRead("HKEY_LOCAL_MACHINE\\Software\\Abc\\Version")


This is for Activex. But I want to read some more Keys from registry.

CSS
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..
Posted
Updated 6-Nov-14 23:05pm
v2

1 solution

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?
 
Share this answer
 
Comments
Lokesh Zende 7-Nov-14 5:19am    
I have a plugin that sets the value in the registry when installed. Using those values I can check few things.
And my application is not cross browser. It is for IE users only.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900