AI_New_User
Posts: 25
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: 6510
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: 25
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: 6510
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

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

Re: What do the exit codes mean?

Mon Nov 29, 2021 4:15 pm

I have it on a internal web server now. But I now get this error code = -536870892, in hex = -1FFFFFEC, in hex 2 signed complement = E0000014.

Anyone ever seen this error code?

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

Re: What do the exit codes mean?

Thu Dec 02, 2021 12:35 pm

Hello,

If you have a look over the article I linked above, you can find more details about the error.
ERROR_INVALID_UPDATE_ENTRY (hex: 0xE0000014 / decimal: -536870892) - The updates configuration file is invalid. It is required that certain entries must not be empty
Hope this helps!

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

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

Re: What do the exit codes mean?

Mon Dec 13, 2021 1:09 pm

Thank you.

And how do I know which entries are empty and need to fill?

Looking at this page - https://www.advancedinstaller.com/user- ... ation.html, I have Name, URL, Size, FilePath, and Version and they have the correct values (AFAIK).

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

Re: What do the exit codes mean?

Mon Dec 13, 2021 8:08 pm

I got it working. I had to delete the older updates and pare it down to 3. (For others having this problem, it's probably best to just create a whole new updater file.)
Also, the registry key was not set. I thought that was an automatic thing. I copied the generated registry keys to the HKCU section in the Installer. In the Updater, for now, I set it to the file version.

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

Re: What do the exit codes mean?

Tue Dec 14, 2021 11:51 am

Hello,

Thank you for your followup on this and for sharing the solution with us.

I am glad you got this working.

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

Return to “Common Problems”