Microsoft Knowledge Base Email Alertz

How to customize the installation location when you install SharePoint Server 2007 from the command line

Search KbAlertz

Advanced Search

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]











Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks

Article ID: 923590 - Last Review: May 14, 2007 - Revision: 1.4

How to customize the installation location when you install SharePoint Server 2007 from the command line

On This Page

INTRODUCTION

This article discusses how to customize the installation location when you run the Setup program to install Microsoft Office SharePoint Server 2007 from the command line.

MORE INFORMATION

To customize the installation location for SharePoint Server 2007, modify the Config.xml file to include the following INSTALLLOCATION parameter:
<INSTALLLOCATION Value="Path" />
Note Path is the path of the folder where you want to install SharePoint Server 2007. For example, if you want to install SharePoint Server 2007 to the C:\Test folder, Path is C:\Test.

SharePoint Server 2007 includes different Config.xml files for different types of configurations. Each Config.xml file is located in the following folder of the SharePoint Server 2007 installation source, depending on the edition of SharePoint Server 2007 that you have:
  • x86\Files\SetupFolderName
  • x64\Files\SetupFolderName
Note SetupFoldername is the name of the folder that represents the type of configuration. For example, the configuration may be represented by the SetupFarm folder or the SetupSilent folder.

The following is an example of a Config.xml file from the x86\Files\SetupSilent folder that has been modified to include the INSTALLLOCATION parameter. In this example, SharePoint Server 2007 is installed to the C:\Test folder.
<Configuration>
<Package Id="sts">
<Setting Id="LAUNCHEDFROMSETUPSTS" Value="Yes" /> 
<Setting Id="REBOOT" Value="ReallySuppress" /> 
<Setting Id="SETUPTYPE" Value="CLEAN_INSTALL" /> 
</Package>
<Package Id="spswfe">
<Setting Id="SETUPCALLED" Value="1" /> 
<Setting Id="REBOOT" Value="ReallySuppress" /> 
<Setting Id="OFFICESERVERPREMIUM" Value="1" /> 
</Package>
<INSTALLLOCATION Value="C:\Test" /> 
<Logging Type="verbose" Path="%temp%" Template="Office Server Setup(*).log" /> 
<Display Level="none" CompletionNotice="no" /> 
<PIDKEY Value="PID" /> 
<Setting Id="SERVERROLE" Value="SINGLESERVER" /> 
<Setting Id="USINGUIINSTALLMODE" Value="0" /> 
</Configuration>

Customize the installation location, and then install SharePoint Server 2007 from the command line

Modify the Config.xml file, and then run the Setup program to install SharePoint Server 2007 from the command line. To do this, follow these steps:
  1. Copy the folder that contains the SharePoint Server 2007 installation files to the root of the drive on the server.
  2. Modify the appropriate Config.xml file. To do this, follow these steps:
    1. Start Notepad, and then open the Config.xml file that you want to modify.
    2. Add the following line, where Path is the path of the folder where you want to install SharePoint Server 2007:
      <INSTALLLOCATION Value="Path" />
    3. Save and then close the Config.xml file.
  3. Start a command prompt, and then change to the folder that contains the SharePoint Server 2007 installation files.
  4. Type the following line at the command prompt, and then press ENTER:
    setup.exe /config PathOfConfigFile
    Note PathOfConfigFile is the path of the Config.xml file. For example, if you modified the Config.xml file in the C:\x86\Files\SetupSilent folder, type the following:
    setup.exe /config C:\x86\Files\SetupSilent\Config.xml

APPLIES TO
  • Microsoft Office SharePoint Server 2007
Keywords: 
kbhowto kbinfo kbexpertiseinter KB923590
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate