I've got a custom action running an 'attached file' which is an EXE file. That file returns 0 for ok, or some non-zero value for an error. This is picked up fine by the installer (it fails on non-zero return), but I want to be able to set a property to that return value so I don't have to abort the install, rather tell the user they've entered some invalid information and leave them on the current install dialog to amend their settings.
How can I get that return value into an installer property?
(The reason for running this EXE is to test the SQL configuration settings a user has put in. I can't use the built-in ODBC test as (a) it returns ODBC errors which will be meaningless to our users, and (b) I would have to write my own DLL to parse the MySQL registry keys to find which MySQL ODBC driver is installed so the built-in ODBC test can be called with the appropriate driver name. Neither of these are viable for our solution).
Thanks.