Install SharePoint 2010 Using an XML File in SharePoint

When installing SharePoint 2010 on a server, it’s possible to automate each step of the installation. The first part is getting the binaries on the server. The example below shows how you can create a simple XML file and use it as input to setup.exe:

<Configuration> 
  <Package Id="sts"> 
    <Setting Id="LAUNCHEDFROMSETUPSTS" Value="Yes"/> 
  </Package>

  <Package Id="spswfe"> 
    <Setting Id="SETUPCALLED" Value="1"/> 
    <Setting Id="OFFICESERVERPREMIUM" Value="1" /> 
  </Package> 

  <DATADIR Value="%CommonProgramFiles%\Microsoft Shared\Web Server Extensions\14\Data"/> 
  <Logging Type="verbose" Path="%temp%" Template="SharePoint Server Setup(*).log"/> 
  <PIDKEY Value="XXXXX-XXXXX-XXXXX-XXXXX-XXXXX" /> 
  <Setting Id="SERVERROLE" Value="APPLICATION"/> 
  <Setting Id="USINGUIINSTALLMODE" Value="0"/> 
  <Setting Id="SETUP_REBOOT" Value="Never" /> 
  <Setting Id="SETUPTYPE" Value="CLEAN_INSTALL"/> 
  <Display Level="Basic" /> 
</Configuration>

Next you can use the XML file as input to setup.exe (located in the SharePoint 2010 media) and use the /config parameter and point out the path to your config.xml file:

cmd.exe /C D:\setup.exe /config C:\config.xml

Twitter This Tip! ReTweet this Tip!


Posted Apr 06 2012, 06:00 AM by sos

Comments

Install SharePoint 2010 Using an XML File in – SharePoint Tips … | Mastering Sharepoint wrote Install SharePoint 2010 Using an XML File in &#8211; SharePoint Tips &#8230; | Mastering Sharepoint
on 04-15-2012 4:39 AM

Pingback from  Install SharePoint 2010 Using an XML File in – SharePoint Tips … | Mastering Sharepoint

Idera SharePoint Reviews SMBology, Inc. Rackspace Hosting Sponsored by Idera and SharePoint Reviews and SMBology and EPCGroup.net
Copyright 2011 SecretsOfSharePoint.com. All rights reserved.