View Full Version : Running a .exe from web page??
04-15-2004, 04:57 PM
Does anyone know if it is possible to open up an .exe from a web page or flash file?
What I am trying to do is: create a flash movie that will run an .exe if the user clicks a button. There will be three different buttons each with a specific .exe to load.
I'm currently using 'href' to load the .exe without any parameters...but I do not want it to prompt the user as a file download whether to "open, save, cancel, more info". I simply want the program to start when the user clicks the button. Any tips, suggestions?
04-15-2004, 06:27 PM
I'm pretty sure you cannot, as doing so would be a security flaw. However, who knows, if the users are using IE...probably..:) You will also have to realize, that you're limiting visitors to using windows if you make it load exe's.
04-15-2004, 06:29 PM
Think about it for a second. Suppose your "program" is a virus? Do you want viruses to download and execute without the least prompt to the user?
For security reasons you can see that what you're thinking about doing with a browser isn't a feature that's suppoted.
04-15-2004, 07:58 PM
I see both of your points ....however, its not going to be used on the web. Its going to be used internally in a office of maybe 7 ppl. His parameters was to simply create an icon for the desktop, when clicked he wanted it to pop up a small window (4x2) that displays two companies up top. And three buttons along the bottom. They wanted to know if it could be done in flash. And since I didn't know for a fact that it cannot be done..I decided to post a thread to find out either way if it could or could not....I was really hoping that it could seeing that the only "real" programming language I dabbled in is VB6.
I was hoping it would work similar to the way when you click an AIM users icon and it pops up the Instant Messager....
04-15-2004, 08:56 PM
As long as you're just targeting Windows then the answer is Yes, it can be done using the HTML Application extensions MS put into IE (which are also the basis for some of the security problems IE has had since they did that).
Go to the MS Web site and search for "HTML Applications HTA" as your keywords for information. You can also search this board for more, especially the part about executing a program :D .
04-16-2004, 02:23 AM
I finally gave in and programmed it in VB. Its just a program acting as a dashboard to 3 other programs that are already installed. So the .exe's file size is minimal, I just really didn't want to weigh it down the the VB runtimes.
Although, the HTML applications (.hta) ( http://msdn.microsoft.com/library/default.asp?url=/workshop/author/hta/overview/htaoverview.asp ) article was an interesting read. I've seen the extension, but never knew what it was for.
In conclusion, my problem has been resolved. But I will continue to research this issue and post any of my findings for the rest of you.
And yes Roy, I'll only write "programs" for windows. lol
04-16-2004, 04:37 AM
+ google for LaunchinIE , a dll that allows running of executables in IE onclick , there are obvious security issues but it does allow you to configure trusted directories (via the registry)
04-16-2004, 06:36 AM
there is a security flaw in IE5 or below i believe, unless youve patched it, that you can bind an exe into a .eml document without the user knowing, and i believe you can embed a .eml document into an html without the user knowing. i've never tried but back when i used to fiddle around with sub7 (didnt we all) i read that somewhere
04-16-2004, 06:45 AM
I have to say that the LaunchinIE Active X control would do the job nicely if ever this scenario comes up again. see (http://www.whirlywiryweb.com/q%2Flaunchinie.asp )
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.