简体   繁体   中英

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.

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!

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.

听起来像ClickOnce是您的追随目标?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM