473,385 Members | 1,620 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Launching An Application from C# Using a URL

I want to launch an installation (setup.exe) from a Web Server using via a
URL. I currently accomplish this by passing the URL to IE:

System.Diagnostics.Process ieProcess = new System.Diagnostics.Process();
ieProcess.StartInfo.FileName = "iexplore.exe";
ieProcess.StartInfo.Arguments = "http://server/path/setup.exe";
ieProcess.Start();

This works okay but users see an IE window flash on the screen before it
launches the installation program. It also doesn't seem like the most
efficient way to accomplish this task.

Is there a better way to launch an application from a web server via a URL
from C#?

- Drew
Jul 21 '05 #1
1 1699
You could likely use WebClient to download the file before launching it
locally... Or just have a link and ask users to run the file.

The whole story may help (for now I don't see the goal of the program that
launches the setup ; shouldn't the user just launch the setup program ? ; if
this is for an auto updating application you may want to check the building
blocks and auto-updating samples available at msdn).

Patrice

--

"Drew Lettington" <Dr************@discussions.microsoft.com> a écrit dans le
message de news:30**********************************@microsof t.com...
I want to launch an installation (setup.exe) from a Web Server using via a
URL. I currently accomplish this by passing the URL to IE:

System.Diagnostics.Process ieProcess = new System.Diagnostics.Process();
ieProcess.StartInfo.FileName = "iexplore.exe";
ieProcess.StartInfo.Arguments = "http://server/path/setup.exe";
ieProcess.Start();

This works okay but users see an IE window flash on the screen before it
launches the installation program. It also doesn't seem like the most
efficient way to accomplish this task.

Is there a better way to launch an application from a web server via a URL
from C#?

- Drew

Jul 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Greg Miller | last post by:
Currently I am launching adobe reader using the following call: os.system("path.file.pdf") this works fine for opening the pdf doc at the beginning. We would like to enhance this and open the...
6
by: sebastien | last post by:
Hi I have an asp.net application that use Session variables. What I want to do is to launch an second instance of this application by a link inside the first application. The problem is: when I...
1
by: Drew Lettington | last post by:
I want to launch an installation (setup.exe) from a Web Server using via a URL. I currently accomplish this by passing the URL to IE: System.Diagnostics.Process ieProcess = new...
1
by: John A. Bailo | last post by:
Excuse the novice aspects of this question, but: What techniques are available to me for launching one c# application ( console .exe) from another? For example, I know there is the Process and...
0
by: Shahzad Godil | last post by:
VB.net solution with this issue http://dotsystem.biz/Files/Shahzad/ThreadCheck.zip Required Visio 2003. I have one remoting server which is launch Visio activex based application on remote...
1
by: Water Cooler v2 | last post by:
I have a Windows Service I am writing in C# and a set of, let us say three, other executables written in C# (mostly console applications). I want that the Windows Service must do so every few...
0
by: microb0x | last post by:
Is there any difference in the way an Access .mdb file is launched from directly double-clicking the file through windows explorer versus using code within another Access file to launch the...
2
by: SpamUsHereInstead | last post by:
Hi, I have Googled the internet beyond belief for a solution to this and keep running into obstacles: I have written an ASP application using our IIS server which retrieves data and displays...
0
by: vol30w60 | last post by:
Hi folks, I am having a problem using PHP to launch an application on the server. All the basics work, but I cannot launch more than 4 instances of the application. This application functions as...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.