Hello,
You can't access the exit value of the custom action because Windows Installer doesn't save it, it just interprets it. If the value returned is different from '0' the installation will fail. A list of exit codes can be found in
"Logging of Action Return Values" article.
As a workaround you can use an
installer property in which you can store the exit code. You can check the
"Set an installer property using custom actions" and
"Integrate and debug custom actions" which show you how to set an installer property.
Please note that properties can be accessed and set only by the
immediate custom action. So, it's necessarily that you set "Execution Time" of your custom action as "Immediately" .
All the best,
Daniel
FOLLOW US
Get the latest news in Application Packaging