Script the Installation of SharePoint Binaries

Dan Holme

by Dan Holme on 2/15/2014

Share this:

Article Details

Date Revised:

Sponsored by

You can script the installation of SharePoint binaries by specifying installation parameters in an Extensible Markup Language (XML) file named Config.xml by default.

Microsoft provides sample Config.xml files in the SharePoint distribution in the Files folder. You can simply modify these files to match your environment. The list below summarizes the sample Config.xml files that are available in the Files folder in the SharePoint distribution.

  • Setup\Config.xml: Stand-alone server installation using Microsoft SQL Server 2005 Express Edition
  • SetupFarm\Config.xml: Server farm installation
  • SetupFarmSilent\Config.xml: Server farm installation in silent mode
  • SetupFarmUpgrade\Config.xml: In-place upgrade of an existing farm
  • SetupSilent\Config.xml:Stand-alone server installation using SQL Server 2005 Express Edition in silent mode
  • SetupSingleUpgrade\Config.xml: In-place upgrade of an existing single-server installation

The following Config.xml file installs a SharePoint server using the Server Farm installation option and the Complete server type:



<Package Id="sts">

<Setting Id="LAUNCHEDFROMSETUPSTS" Value="Yes"/>


<Package Id="spswfe">

<Setting Id="SETUPCALLED" Value="1"/>


<Logging Type="verbose" Path="%temp%" Template="SharePoint Server Setup(*).log"/>

<PIDKEY Value="ABCDE-12345-FGHIJ-67890-KLMNO" />

<Display Level="none" CompletionNotice="no" />


<Setting Id="USINGUIINSTALLMODE" Value="0"/>

<Setting Id="SETUP_REBOOT" Value="Never" />



Compare the file to the Config.xml file in the SetupFarm folder. You will see that in most cases, you need only to modify the Config.xml file to remove the comment tags (<!-- and -->) and enter a valid product ID.

After you have modified the Config.xml file, run SharePoint setup with the /config parameter pointing to the appropriate configuration file. For example:

"C:\Software\SharePoint Server 2010\setup.exe" /config "C:\Software\SharePoint Server 2010\Files\SetupFarmSilent\config.xml"

The Display Level element of the configuration file controls the type of user interface that is presented during installation. If the Display Level value is none, no user interface is presented—installation is silent. You can monitor the progress of the SharePoint installation using any of these methods:

  • Click Start, type %temp% and then press Enter. Open the log named SharePoint Server Setup*.log.

  • Start Task Manager and then monitor processes including setup.exe, msiexec.exe, mscorsvw.exe, and psconfigui.exe.

The following article provides additional details regarding Config.xml: Config.xml reference (SharePoint Server 2010).

Topic: Deployment

Sign in with

Or register