MAKEMSI quickly and reliably creates MSI files in a non-programmatic way
Have your say! Join the MAKEMSI discussion list or view archive! Suggest improvements. No question too simple or too complex.
[Bottom][Contents][Prev]: Setup Capture[Next]: Validations
Have your say! Join the MAKEMSI discussion list or view archive! Suggest improvements. No question too simple or too complex.
\->Building or Updating MSIs->Repackaging - Converting an EXE to MSI->Setup Automation

Setup Automation

In this approach you would run the existing installer (which doesn't have a silent mode - otherwise why are you doing this?) possibly using a tool like "AutoIT.EXE" to cause appropriate mouse and keyboard events to occur as if a user was actually operating the installation.

This approach needs to be very well tested and almost positively will fail if your MSI needs to be deployed silently (in which case you might want to use the "AbortIf" command to abort if someone tries to silently install it (or otherwise deploy it in a manner which prevents the keyboard and mouse automation).

The user can also try to use the keyboard and mouse while the automation is taking place so your script should be written as defensively as possible, for example by putting windows in focus and moving mouse immediately after without delays in between.

I would recommend a follow up custom action to validate the installation worked, and perhaps the error message could explain reasons why it could fail.


Microsoft awarded me an MVP (Most Valuable Professional award) in 2004, 2005, 2006, 2007, 2008 & 2009 for the Windows SDK (Windows Installer) area.Please email me any feedback, additional information or corrections.
See this page online (look for updates)

[Top][Contents][Prev]: Setup Capture[Next]: Validations


MAKEMSI© is (C)opyright Dennis Bareis 2003-2008 (All rights reserved).
Friday October 13 2017 at 2:08pm
Visit MAKEMSI's Home Page
Microsoft awarded me an MVP (Most Valuable Professional award) in 2004, 2005, 2006, 2007, 2008 & 2009 for the Windows SDK (Windows Installer) area.