3

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?

Gregory Leleytner
  • 159
  • 1
  • 1
  • 7
  • 2
    possible duplicate of [Running .exe from Javascript](http://stackoverflow.com/questions/3152482/running-exe-from-javascript) – Patrick Moore Aug 28 '15 at 14:32
  • Possible duplicate of http://stackoverflow.com/questions/18980957/is-it-possible-to-run-an-exe-or-bat-file-on-onclick-in-html – Patrick Moore Aug 28 '15 at 14:32
  • possible duplicate of http://stackoverflow.com/questions/3057576/launch-application-from-a-browser – nihiser Aug 28 '15 at 14:33
  • 5
    If the external program is registered as a handler for a URI protocol, loading such a URI can cause the browser to invoke the external program after displaying a dialog. – Dan D. Aug 28 '15 at 14:33

2 Answers2

5

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 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

Anderson Green
  • 30,230
  • 67
  • 195
  • 328
Gus Zuniga
  • 71
  • 2
  • 5
-5

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.

Community
  • 1
  • 1
THE AMAZING
  • 1,496
  • 2
  • 16
  • 38