Click here to Skip to main content
14,977,402 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)
Posted
Updated 3-Nov-10 1:26am
v2

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 .
:thumbsup:
   
U want something like this.
C#
protected void Button1_Click(object sender, EventArgs e)
    {
        System.Diagnostics.Process.Start("E:\\Folder1\\DSIL\\DSIL\\bin\\Debug\\DSIL.Exe");
    }
   
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