Mahesh KP
Mahesh KP

Reputation: 6446

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.

Upvotes: 2

Views: 2308

Answers (4)

Scott
Scott

Reputation: 999

Sounds like ClickOnce is what you're after?

Upvotes: 1

Reinaldo
Reinaldo

Reputation: 4666

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!

Upvotes: 2

SharePoint Newbie
SharePoint Newbie

Reputation: 6082

This is not possible to the best of my knowledge.

However, you can get close with a trusted Silverlight 5 app. If all your users are on the intranet and within a domain, you can push your certificate and register it through group policy.

Upvotes: 1

zam664
zam664

Reputation: 767

What you are describing is a function of your browser. The downloading and running of the exe is dependent upon the users browser. More importantly there is a major security problem where the OS may throw prompts about trusting and running an unknown executable.

Upvotes: 0

Related Questions