Installing SharePoint 2013 with a configuration file

SharePoint 2013 supports the use of a configuration file to perform a scripted or silent installation.  There are some sample configuration files included in the setup:

  • Setup – setup a single server (files\setup\config.xml)
  • SetupFarmSilent – setup a farm in silent mode (files\setupfarmsilent\config.xml)
  • SetupSilent – setup a single server silently (files\setupsilent\config.xml)
  • SetupUpgradeSilent – upgrade a single server silently (files\setup\upgradesilent\config.xml)

Below is an example config.xml file for setting up a single server with the following customisations:

  • Specify the installation path
  • Specify the data path
  • Specify the PID key
  • Set the server role to Single Server

<Configuration>
<Package Id="sts">
<Setting Id="SETUPTYPE" Value="CLEAN_INSTALL"/>
</Package>
<PIDKey Value="XXXXX-XXXXX-XXXXX-XXXXX-XXXXX"/>
<Logging Type="verbose" Path="%temp%" Template="Microsoft SharePoint Foundation 2013  Setup *.log"/>
<Setting Id="UsingUIInstallMode" Value="1"/>
<Setting Id="SETUP_REBOOT" Value="Never"/>
<INSTALLLOCATION Value="E:\Program Files\Microsoft Office Servers"/>
<DATADIR Value="E:\Program Files\Microsoft Shared\Web Server Extensions\14\Data"/>
<ServerRole Value="SingleServer"/>
</Configuration>

To use the config.xml file run setup.exe with the /config parameter:

setup.exe /config “C:\files\setup\config.xml”

[BlogBookmark] [Blogsvine] [del.icio.us] [Digg] [Facebook] [Furl] [Google] [LinkedIn] [MySpace] [Reddit] [Slashdot] [StumbleUpon] [Twitter] [Windows Live] [Yahoo!] [Email]