A return value of 6 means:
"A handle is in an invalid state." or ERROR_INVALID_HANDLE_STATE
Are there any scripts running in the install phase? If there are, check their processing options (on the scripts properties tab), if it is only set to synchonous then you may get this error, try setting it to snych, ignore exit codes.