>As it seems the problem could not be solved, maybe you can try a brute-force approach, either by trapping the COM error and retrying, or testing after the build if the EXE has being generated, and if not, running the copilation again.
If the EXE can't be built, a messagebox will appear. I don't know how to workaround that.