Microsoft has announced the Edge browser, which does not support ActiveX.

I have an app that needs to get info from the Windows registry, so I have some questions about alternatives to ActiveX:

Is there a way to communicate with a native app (that can read from the Windows registry) from Edge or something similar (like native messaging in Chrome)?

Is there a way to directly access the Windows registry from Edge, Javascript, or the like?

解决方案

Currently I see no way for you to access the registry from a web application running in MS Edge. If you just need to save information there are different alternatives you can chose from to enable similar capabilities.

You could use storage options available with HTML/JS like webStorage or indexedDB. They are both available in all modern browsers and could be used to to save data on the client.

If the application supposed to be available just on Windows 10 you might think about builing a hosted web app (http://blogs.windows.com/buildingapps/2015/07/06/project-westminster-in-a-nutshell/) This technology eables you to access some features of the Windows operating system, but not the registry.

If your app is highly dependent on ActiveX and the Windows registry you can still use Internet Explorer 11 in Windows 10.


版权声明:本文为weixin_39830387原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
原文链接:https://blog.csdn.net/weixin_39830387/article/details/111758266