Windows Installer Hooks to Simulate User Interaction
Posted on 2011-03-17
I am investigating the possibility of developing an application which will hook into an installer and reproduce user actions , such as clicking the 'Ok' and 'Next' button etc
My company deliver laptops with custom builds (XP usually) with up to 30 installed applications and drivers.
We use Ghost to clone the final image and roll image the laptops via a network connection.
When we build the master image we often install the same software we have used on multiple different builds in the past.
I would like to try and automate this process and in the past we have used recorder software to record x and y coords etc but it has proved unreliable.
For example, we need to install MySQl. This includes pressing 'Ok' three times, selecting 'Custom' and then 'Next' 3 more times and finally pressing the 'Finish' button.
I would like to develop an app which records all user interaction with the MySQL installer window.
Once recorded will i we able to launch the MySQL Installer on another machine and use method calls to simulate the 'Ok' button being pressed?
If this is possible i will spend more time researching it. Another option is to record all the registry and file updates during an install process and have my app call the APIs directly pretending to be the MySQL installer?
Any info would be appreciated