Click to See Complete Forum and Search --> : How to automate an exe installer--click 'next' and 'ok' button with code


wwoody
December 3rd, 2006, 01:38 AM
Basically I have an .exe installer that I want to automated through the use of win32 API calls by manipulating the GUI.

Perhaps some method of grabbing the appropriate process, bringing it to the foreground, then finding the "next" buttons and clicking them. In addition "agree" button for the EULA etc.

I'm writing some code in PERL, and using perl-libwin32 so that I can automate the installation of a few programs that are requirements for my script.

Any help is appreciated. I'm not a Windows programmer at all and can't really afford to learn win32 API from scratch.

anuvk
December 4th, 2006, 01:38 PM
if the installer is a .msi then there is a /quiet option in running it with default options, but i am not sure whether this works in case you have some EULA screens. Still I think it is worth having a look at command line options to msiexec if your installer is a msi.