Click here to Skip to main content
15,346,659 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
button in web application that looks for a particular exe on the system if the exe exists then it is run else it is first installed and then run!!(.exe is basically a window application)
Updated 3-Nov-10 1:26am

What you propose to do is precisely what ClickOnce is for :-)

It will install and run the app the first time, and on each further run it will run the app directly or update the app if there's a newer version available.

Google for ClickOnce deployment, and you'll get tons of info.
You can't do that from a web application. Browsers won't permit it because it's a security violation.
Yes you can't run desktop applications from browser.
Try Activex object for run client Machine Program .
U want something like this.
protected void Button1_Click(object sender, EventArgs e)
If the .exe is your program and it's a .net application you could look at deploying it with ClickOnce[^] which would do exactly what you are asking.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900