How to run desktop app from browser?

爱⌒轻易说出口 提交于 2020-06-23 04:55:58

问题


I need to launch program from browser(like battlefield when you see dialog with confirmation of starting app). Should I make an extension or there is native way to do it with javascript?


回答1:


If the basic idea is to launch a desktop app from the web browser, the firt step is to create a new Registry in Windows and path a URL Custom protocol. And if is you need it you can also send parameters by changing console arguments in your app and append the parameters in your html file.

You can check here:

https://weblogs.asp.net/morteza/How-to-run-a-desktop-application-from-a-web-page




回答2:


check out: Running .exe from Javascript

There are cross-browser compatibility issues with executing a .EXE on a clients machine. i would suggest you look into alternative languages such as Java or even Flash. But it can be done in Javascript.

-normally i wouldn't answer a question like this, but i saw someone say it's not possible. ANYTHING is possible.



来源:https://stackoverflow.com/questions/32273424/how-to-run-desktop-app-from-browser

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!