简体   繁体   中英

How to run desktop app from browser?

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?

If the basic idea is to launch a desktop app from the web browser, the first 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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM