Q:

Run an exe in client machine from a website

We have developed an exe and we have created a website to download that exe. 
Now is there any possibility to run that exe on a single button click in the client machine.  ie if user clicks on a button in the website it has to download and run that exe. 
So while clicking the link button, it have to show a "Run" dialogue box instead of the "save" dialogue box. 
And upon clicking the "Run" it have to save and run the exe in the client machine. 
Can anyone give suggestions for this.       

A:

It is not possible to automate that process due to security concerns.  The only thing that comes to mind is to write something like:
    <a href="myfile.exe" type="application/octet-stream">Download</a>

But that will only prompt the user to either run it or save it.  To be honest, you are better off just documenting the procedure for your users/visitors to follow. 
Hope it helps!