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
ReTweet this Tip!
Posted
Apr 06 2012, 06:00 AM
by
sos