473,408 Members | 1,876 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,408 software developers and data experts.

System.Diagnostics.Process ExitCodes -- What do they mean?

Hi,
I have a C# application that uses the System.Diagnostics.Process
functionality to execute other processes (to install a couple of .msi
files). Here's my code so far:

System.Diagnostics.Process proc = new System.Diagnostics.Process();
proc.StartInfo.Arguments = sArgs;
proc.StartInfo.FileName = "msiexec.exe";
proc.StartInfo.WorkingDirectory = sPath;
proc.Start();
proc.WaitForExit();

if (proc.HasExited)
{
exitCode = proc.ExitCode;
}
else
{
proc.Kill();
}

proc.Close();
This all seems to work ok. However, on one or two of the .msi files, I get
an ExitCode of 1603, 1605, or -1. I can't seem to find what these ExitCodes
are referring to. That is, when I get ExitCode 1603, 1605, or -1, what's
the error?

Anyone know what these ExitCodes mean or where to find out more info.?

TIA
Apr 10 '06 #1
1 5486
Here:
http://support.microsoft.com/?kbid=229683

"tenpsa" <no****@company.com> ¼¶¼g©ó¶l¥ó·s»D:e$**************@TK2MSFTNGP03.phx.g bl...
Hi,
I have a C# application that uses the System.Diagnostics.Process
functionality to execute other processes (to install a couple of .msi
files). Here's my code so far:

System.Diagnostics.Process proc = new System.Diagnostics.Process();
proc.StartInfo.Arguments = sArgs;
proc.StartInfo.FileName = "msiexec.exe";
proc.StartInfo.WorkingDirectory = sPath;
proc.Start();
proc.WaitForExit();

if (proc.HasExited)
{
exitCode = proc.ExitCode;
}
else
{
proc.Kill();
}

proc.Close();
This all seems to work ok. However, on one or two of the .msi files, I
get
an ExitCode of 1603, 1605, or -1. I can't seem to find what these
ExitCodes
are referring to. That is, when I get ExitCode 1603, 1605, or -1, what's
the error?

Anyone know what these ExitCodes mean or where to find out more info.?

TIA

Apr 11 '06 #2

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

Similar topics

3
by: dave | last post by:
Hi, Does anyone know how I could make an .exe launched server side from an aspx file run faster? When I use javascript client side it of couse is much faster. Here's my code This code does...
0
by: marccruz | last post by:
Given an instance of System.Diagnostics.Process, how can I get the parent process o Given an instance of System.Diagnostics.Process, how can I get the child processes For example, I start a...
1
by: Heiko Besemann | last post by:
Dear group, I created an aspx page using System.Diagnostics.Process() to launch "tracert" from shell and redirect output to Response.Output which prints it as text/plain into my browsers window....
10
by: Mark | last post by:
I am working on a monitor system - web page that will show what processes are running on different computers. How would I get such information? All I need is a name of a process (title on a taskbar...
1
by: solex | last post by:
Hello All, Hopefully someone has run into this error. I have written a class(source below) that launches a thread to monitor the StandardOutput of a System.Diagnostics.Process, in particular I...
11
by: Nurit N | last post by:
This is the third newsgroup that I'm posting my problem. I'm sorry for the multiple posts but the matter becoming urgent. I hope this is the right place for it... I have created a very...
0
by: Daniel | last post by:
System.Diagnostics.Process.Start fails on windows server 2003 the process returns process.ExitCode == 0 but executing any process with System.Diagnostics.Process.Start on windows xp works fine....
0
by: Colin Williams | last post by:
I am using the code below to map network drive and then fire up an app in a sub dir of that drive. However when using the file open dialog from that app, drive K: appears just as Network drive K:...
2
by: test3 | last post by:
Hello folks, I'm using System.Diagnostics.Process to start a thirdparty program (that works perfectly when started via command line). I'm using Process.StandardOutput to get the output of the...
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...
0
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
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
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,...
0
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
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.