By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,215 Members | 1,934 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,215 IT Pros & Developers. It's quick & easy.

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

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
Here:
http://support.microsoft.com/?kbid=229683

"tenpsa" <no****@company.com> glsD: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 discussion thread is closed

Replies have been disabled for this discussion.