How to automate installation