Sgbmad
Posts: 4
Joined: Thu Mar 21, 2019 11:39 am

Failed with return code:-532462766

Hi!

I'm using a Post-Building event to run a custom EXE and I get this error:

Running ******.exe
Application "*******.exe" failed with return code:-532462766.

I can check the EXE was executed without problems but I always get that error.

How can I avoid it?

Cheers.
Daniel
Posts: 8238
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Failed with return code:-532462766

Hello and welcome to our forums,

This could happen if your EXE app does return the related exit code (different that 0) on a successful exit. When we get an exit code different than 0 we interpret this as a failure. If this is the case, then to avoid the build operation failure you should make sure you uncheck the "Cancel build in case of a launch failure" option for your build event.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Sgbmad
Posts: 4
Joined: Thu Mar 21, 2019 11:39 am

Re: Failed with return code:-532462766

Hi and thank you ;)

I don't think so....

The exe is a .net app returning the exit code.
Attachments
2019-03-21_14-48-00.jpg
2019-03-21_14-48-00.jpg (12.77 KiB) Viewed 14730 times
2019-03-21_14-48-34.jpg
2019-03-21_14-48-34.jpg (40.81 KiB) Viewed 14730 times
2019-03-21_14-48-54.jpg
2019-03-21_14-48-54.jpg (72.87 KiB) Viewed 14730 times
Daniel
Posts: 8238
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Failed with return code:-532462766

Hello,

I have tested the scenario using a sample .Net app and everything went fine in my tests. Accordingly with the exit code caught by our build process (-532462766 which in hexa is E0434352‬) this seems to be a .Net exception exit code.

Could you try to replicate the same issue using a small sample app? Or could you forward us by email to support at advancedinstaller dot com a download link for your custom EXE and a test case we can follow to replicate the behavior?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Sgbmad
Posts: 4
Joined: Thu Mar 21, 2019 11:39 am

Re: Failed with return code:-532462766

Hi!

Well, I have found the reason finally. It was very very simple. If I remove the last "End" instruction, then the error dissapear! :)

Thank you anyway!

Cheers.
Catalin
Posts: 6582
Joined: Wed Jun 13, 2018 7:49 am

Re: Failed with return code:-532462766

Hello,

Thank you for your followup on this.

We're glad you sorted things out.
:)

All the best,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Sgbmad
Posts: 4
Joined: Thu Mar 21, 2019 11:39 am

Re: Failed with return code:-532462766

Catalin wrote: Fri Mar 22, 2019 1:45 pm Hello,

Thank you for your followup on this.

We're glad you sorted things out.
:)

All the best,
Catalin
Thank you! ;)
Catalin
Posts: 6582
Joined: Wed Jun 13, 2018 7:49 am

Re: Failed with return code:-532462766

You're always welcome!
:)

All the best,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”