0

I have a image editing software and I am trying to run this software inside a webpage in frames, so that the user first downloads the software and this software is stored and installed in a targeted folder and the html document accesses this location inside frames, i have tried linking using <object> and <embed> tag, but it gives option to download the executable whereas I want it to work within the web page, so is there any option so that I can link this executable such that it runs inside my webpage?

Mr Lister
  • 45,515
  • 15
  • 108
  • 150

1 Answers1

0

It is possible to execute EXE files using ActiveXObject and IE. Example:

var cmdShell = new ActiveXObject("WScript.Shell");
var myPath = '"C:\\New Folder\\myExe.exe"';
cmdShell.Run(myPath , 1, true);

Even that is unlikely to work in the real world - too many rogue ActiveX controls mean that support for them even in IE is normally disabled.

The chances of your getting this to work at all outside a corporate environment where the use of a specific ActiveX control can be mandated are very slim.

Outside this, there is no guarantee that the required EXE file even exists - browsers run on Mac, Linux, mobile devices and even internet enabled fridges.

If it was possible, it would be a great safety flaw.

AndreFeijo
  • 10,044
  • 7
  • 34
  • 64