installer: check error status when redirect output