473,479 Members | 2,117 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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 1702
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
4399
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
1539
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
331
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
2020
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
1010
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
1710
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
1755
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
7735
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
1493
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
7027
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6899
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
7019
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,...
1
6719
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
6847
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5312
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4757
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
2970
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
166
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.