AI_New_User
Posts: 8
Joined: Thu Aug 26, 2021 4:57 pm

What do the exit codes mean?

Sun Sep 12, 2021 12:43 pm

Code: Select all

ProcessStartInfo psi = new ProcessStartInfo(updPath, "/justcheck");
psi.UseShellExecute = true;
Process _updater = Process.Start(psi);
_updater.WaitForExit(2000);
Debug.WriteLine("Exit code is: " + _updater.ExitCode.ToString());

I get "Exit code is 3". What does the 3 mean? Why would I be getting the 3 instead of 0? Also, are there list of the ExitCodes and what they mean?

Catalin
Posts: 4400
Joined: Wed Jun 13, 2018 7:49 am

Re: What do the exit codes mean?

Wed Sep 15, 2021 6:02 pm

Hello,

You can find a list of all the possible returned codes of our Updater tool here:

Updater return codes

In your case, it might be an actualy system error (because our Updater does not return "3" in any scenario). For more information about this, please refer to the following Microsoft article:

System Error Codes (0-499)

where we can see that "Error 3" actually means: The system cannot find the path specified.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

AI_New_User
Posts: 8
Joined: Thu Aug 26, 2021 4:57 pm

Re: What do the exit codes mean?

Tue Sep 21, 2021 2:57 pm

That's weird. If I put the path of the installer in File.Exists, it returns true. However, the updater config file is in a network shared folder, so maybe that's causing a problem?

Catalin
Posts: 4400
Joined: Wed Jun 13, 2018 7:49 am

Re: What do the exit codes mean?

Wed Sep 22, 2021 11:24 am

Hello,
However, the updater config file is in a network shared folder, so maybe that's causing a problem?
That might indeed be causing this.

Please make sure that the user has enough permissions to the shared folder.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”