Click here to Skip to main content
14,484,790 members

SQL Server Silent unattended installation using configuration file

Rate this:
4.50 (4 votes)
Please Sign up or sign in to vote.
4.50 (4 votes)
19 Feb 2013CPOL
SQL Server Silent unattended installation using configuration file

1) Open Installation Wizard

Open Installation Wizard

Open Installation Wizard

2) Select Feature You want to install

Select Feature You want to install

Select Feature You want to install

3) Provide installation configuration

Provide installation configuration

Provide installation configuration

4) Now that you have the configuration file, copy it to your own folder or network share where you want to start the unattended installation.

Configuration file

Configuration file

5) Cancel setup as we are interested in the unattended silent mode of installation; not the UI one.

6) Edit the configuration file as follows:

  1. Set QUIET to “True”. This specifies that Setup will run in a quiet mode without any user interface

i. QUIET="True"

  1. Set SQLSYSADMINACCOUNTS to “BUILTINADMINISTRATORS”. This will ensure that administrators on the machine are added as members of the sysadmin role. You can set its value based on your needs (Ex: SQLSYSADMINACCOUNTS=”domainYourUser”), but this is the more generic approach. I have added My user instead of BUILTINADMINISTRATORS, to secure SQL server from unwanted logins.


  1. Add PID and set its value to your product license key. If your setup.exe already comes preloaded with the key, there is no need to add this option to the configuration file.
  1. Add IACCEPTSQLSERVERLICENSETERMS and set its value to “True”. This is to require to acknowledge acceptance of the license terms at time of unattended installations.


  1. Remove the ADDCURRENTUSERASSQLADMIN parameter. The reason is that this parameter can’t be used when SQLSYSADMINACCOUNTS is specified, and it only applies to Express installations.
  1. Remove the UIMODE parameter as it can’t be used with the QUITE parameter.
  1. Remove INSTALLSHAREDDIR, INSTALLSHAREDWOWDIR, INSTANCEDIR parameters if you want to install on the default installation directories or mention appropriate directories for installation.
  1. You can add or remove the feature you want to install, Select FEATURES=SQLENGINE,SSMS,ADV_SSMS in the configuration file. You can change that based on your needs.
  1. The full list of available feature parameters and their descriptions :
  1. Now, Your configuration file is ready, you need to create a batch file that will run the silent unattended setup. Create a new file ”SQLServer2012_SilentInstall” with extension = “.bat”.

We have added, Date time to get the time taken by complete installation. Edit below script with your setup & configuration file location.

@ECHO offecho Installing SQL Server 2008 R2date/ttime /t

“D:SQLFULL_x86_ENUsetup.exe” /ConfigurationFile=”D:ConfigurationFile.ini”


time /t

7) My SQL Server got installed

SQL Server got installed

SQL Server got installed

8) Let’s Verify

SQL Server Installed

SQL Server Installed

Reference : Rohit Garg (


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

No Biography provided

Comments and Discussions

QuestionSQL Silent Installaion Pin
Rahul Dev2-Apr-15 18:55
MemberRahul Dev2-Apr-15 18:55 
GeneralMy vote of 3 Pin
Mohit_Rudra19-Apr-13 19:18
MemberMohit_Rudra19-Apr-13 19:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Technical Blog
Posted 19 Feb 2013

Tagged as


4 bookmarked