Automating Installation
To achieve a fully automated deployment process, the packages you install must support unattended installation. Many setup programs support /s or /q command-line options for silent or quiet installations; others don't.
Often you can find out if the package supports unattended installation by typing setup /? at the command prompt, where setup is the file name of the setup program. If the setup program doesn't provide clues, you need to know which vendor's product was used to create the package. You can usually tell by running the setup program and looking for logos, for example, or checking the file properties. Armed with that information, read the following sections to learn how to install packages created by different packaging software automatically. Table below summarizes the necessary commands.
Unattended Package Installation
Package Type | Command for Unattended Installation |
Windows Installer | msiexec.exe /i package.msi /qn ALLUSERS=2 |
InstallShield Windows Installer | setup.exe /s /v"/qn" Optionally, you can extract the Windows Installer database from the compressed file and use the command msiexec.exe /i setup.msi ISSETUPDRIVEN=1 /qn to install it. |
Legacy InstallShield | setup.exe /s /sms To create the Setup.iss file necessary to run setup silently, type setup.exe /r to create a Setup.iss from your responses to the setup program's dialog boxes and then copy Setup.iss from %SystemRoot% to the folder containing the package. |
Legacy InstallShield PackageForTheWeb | setup.exe /a /s /sms To create the Setup.iss file necessary to run setup silently, type setup.exe /a /r to create the Setup.iss based on your responses and then copy Setup.iss from %SystemRoot% to the folder containing the package. |
Legacy Wise Installation System | setup.exe /s |
Useful Deployment Web Sites
The following Web sites are outstanding resources for automating the installation of applications, as well as other deployment topics:
- AppDeploy.com at http://www.appdeploy.com
This Web site provides comprehensive information about deploying applications that are packaged using a variety of technologies. - SourceForge at http://unattended.sourceforge.net
This visually nondescript Web site contains a wealth of information, including information about automating the installation of many legacy installers. - Real Men Don't Click at http://isg.ee.ethz.ch/tools/realmen
Don't let the name or odd URL detract from this Web site's usefulness. It describes how to automate a variety of processes, including software installation. - Acresso Software at http://www.acresso.com/services/education/publications_3812.htm
This Web page contains the e-book The Administrator Shortcut Guide to Software Packaging for Desktop Migrations. This guide is an excellent resource for learning about packaging applications for deployment.
In this tutorial:
- Deploying Applications
- Preparing the Lab
- Windows 7 Planning Deployment
- Priorities
- Categories
- Installation Methods
- Subject Matter Experts and Configurations
- Choosing a Deployment Strategy
- Thick Images
- Thin Images
- Hybrid Images
- Automating Installation
- Windows Installer
- InstallShield
- Legacy InstallShield PackageForTheWeb
- Repackaging Legacy Applications
- The Repackaging Process
- Injecting in a Disk Image