Change SendMessage of the function imitateLeftClick to PostMessage.
Almost complete the whole installation process,
except the sleep length between installation finish and login,
the click for hiding the floating window failed,
not albe to remove the virtual disk icon,
maybe need to remove the task bar icon
and may be still something else.