Dim exitCode As Integer = ExecuteCommand(cmd1, cmd2, 10000)
I realize this is an old thread, but I ran into the same problem (and couldn't find a solution) and think I found a fix. So (hopefully) for future reference...
In the installer class utilized by the msi (as depicted in this How to), ESRIRegAsm is called through the below command:Dim exitCode As Integer = ExecuteCommand(cmd1, cmd2, 10000)
The third argument is the timeout for executing the command. I bumped my timeout length to 20 seconds (20000) and I haven't seen the install error since.