I’m installing a line of business application that requires the SQL Server Management Studio and Client Tools Connectivity be installed as a prerequisite. I want to script this instead of having to manually click through the GUI for the installation since this will be installed on several servers. I’ve mounted the SQL Server 2008 R2 ISO on “Z” drive. The following command will produce the desired results:
Setup.exe /qs /ACTION=Install /FEATURES=SSMS,CONN /IACCEPTSQLSERVERLICENSETERMS
Let’s say you’re not sure of the feature names of the options you want to install, you want more than these two options installed, or you want to simplify this process even more. Use the GUI on the first server to do the installation. This will create a configuration ini file:
Copy this configuration file and use it on the other servers to do an unattended installation. You’ll need to change the QUIETSIMPLE parameter to True and remark out the UIMODE property by placing a semicolon at the beginning of that line. Specifying the /QS parameter from the command line won’t work since those options are set in the ini file:
Setup.exe /CONFIGURATIONFILE="C:\tmp\ConfigurationFile.ini" /IACCEPTSQLSERVERLICENSETERMS
A list of the parameters to install SQL Server 2012 from the command line can be found on MSDN.