Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 9 of 9
  1. #1
    Senior Coder
    Join Date
    Mar 2003
    Location
    Atlanta
    Posts
    1,037
    Thanks
    14
    Thanked 30 Times in 28 Posts

    Running a .exe from web page??

    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?
    Most of my questions/posts are fairly straightforward and simple. I post long verbose messages in an attempt to be thorough.

  • #2
    New Coder
    Join Date
    Apr 2003
    Posts
    27
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

  • #3
    Senior Coder
    Join Date
    Jun 2002
    Location
    Wichita
    Posts
    3,880
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.
    Check out the Forum Search. It's the short path to getting great results from this forum.

  • #4
    Senior Coder
    Join Date
    Mar 2003
    Location
    Atlanta
    Posts
    1,037
    Thanks
    14
    Thanked 30 Times in 28 Posts
    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....
    Last edited by StupidRalph; 04-18-2004 at 01:00 AM.
    Most of my questions/posts are fairly straightforward and simple. I post long verbose messages in an attempt to be thorough.

  • #5
    Senior Coder
    Join Date
    Jun 2002
    Location
    Wichita
    Posts
    3,880
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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 .
    Check out the Forum Search. It's the short path to getting great results from this forum.

  • #6
    Senior Coder
    Join Date
    Mar 2003
    Location
    Atlanta
    Posts
    1,037
    Thanks
    14
    Thanked 30 Times in 28 Posts

    So I sidestepped a bit ;P

    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/de...taoverview.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
    Most of my questions/posts are fairly straightforward and simple. I post long verbose messages in an attempt to be thorough.

  • #7
    Super Moderator
    Join Date
    May 2002
    Location
    Perth Australia
    Posts
    4,047
    Thanks
    10
    Thanked 93 Times in 91 Posts
    + 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)
    resistance is...

    MVC is the current buzz in web application architectures. It comes from event-driven desktop application design and doesn't fit into web application design very well. But luckily nobody really knows what MVC means, so we can call our presentation layer separation mechanism MVC and move on. (Rasmus Lerdorf)

  • #8
    Regular Coder
    Join Date
    Jul 2003
    Location
    New Zealand
    Posts
    435
    Thanks
    1
    Thanked 0 Times in 0 Posts
    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

  • #9
    Senior Coder
    Join Date
    Mar 2003
    Location
    Atlanta
    Posts
    1,037
    Thanks
    14
    Thanked 30 Times in 28 Posts
    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 )
    Most of my questions/posts are fairly straightforward and simple. I post long verbose messages in an attempt to be thorough.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •