You might try having the autoit script start the install, that way the script does everything and then exits -- freeing up runonce to go on. Alternately, you could start the install from your batch file without a "wait", and then the script. In the second case, you might want to start /wait the script so that runonce knows to pause.