Exit code for file in binary table

A custom action that calls an installation file (inside binary table), set at Synchronous and NOT ignoring exit code. Can I set anything that let me decide myself if I want the MSI to exit with an error or not? Like managing the return code and tell MSI to exit on that code and not to exit if another code?

Answers

Irrespective of which file type you're running, the simplest route is to set a property and test that property's content as a condition for an 'Abort Installation' CA immediately following the CA's execution.

I suppose what you could try is to write your own (vbs) function that starts the installer and catches the return code. Have this function return the desired exit code.
If you then make a CA that runs your vbs you can control the exit codes completely. If I remember correctly they're as follows:

Hi and thanks. I guess I would also need something to extract the file from the binary if I use a VBScript. Using the execute program from installation is doing it by itslef. Anybody has a working code for this? I am bad at VBS.

...and most people here are pretty bad at working for free. Eons ago, I downloaded (and edited for my own purposes) a script that extracted a file from the Binary table. A little Googling would probably turn up the exact same code.

What I usually do when I need something from the binary table of an MSI is to open it in Orca (which i don't care what you usually use, EVERY packager should have installed for the quick jobs), go to the binary table, click where it says [binary data] and choose "write binary to filename"