473,804 Members | 2,117 Online
Bytes | Software Development & Data Engineering Community
+ 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.Diagnost ics.Process ieProcess = new System.Diagnost ics.Process();
ieProcess.Start Info.FileName = "iexplore.e xe";
ieProcess.Start Info.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 1723
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.mi crosoft.com> a écrit dans le
message de news:30******** *************** ***********@mic rosoft.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.Diagnost ics.Process ieProcess = new System.Diagnost ics.Process();
ieProcess.Start Info.FileName = "iexplore.e xe";
ieProcess.Start Info.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
4414
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 document to either a page or a nameddest in the doc. The syntax for that in the DOS command prompt world is: acroRd32.exe /A "nameddest=Before You Begin" "path.file.pdf" However the os.system call won't allow me to call reader using that syntax. ...
6
1557
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 launch the second application, this second application override the session variables values of the first application. I can run 2 instances of my asp.net application if I open two browsers and I enter the url of my web application in the address...
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 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...
1
2039
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 ProcessInfo classes, but these seem designed for launching non-CLR applications. Should I access the .exe as a reference?
0
1030
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 request. I have this code to launch my application. But it is giving "Class Not registered" error in InitializeComponent of form which has ActiveX control. My application is working perfectly when I am launching this without any
1
1740
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 seconds: Check to see if each of the other executables are running or not. If they are not running, it should load them. For this purpose, I am planning the following:
0
1785
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 same file? Here is my situation: I have an application that when launched does a check whether or not
2
7785
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 them in a nice grid. My boss wants the application to create a .txt file of this data when a button is clicked and then open Notepad with this new file so that it can be saved locally on a user's harddrive. I can create the file itself fine, but...
0
1508
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 a server itself, and I specify the port number when I launch it, so my theory is that I am reaching some limit on network connections. This is my basic launch sequence:
0
9595
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10354
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10359
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10101
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7643
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5536
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5675
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4314
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3005
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.