Share via


Config.xml reference (Windows SharePoint Services)

Applies To: Windows SharePoint Services 3.0

 

Topic Last Modified: 2008-09-03

When you want to control how Windows SharePoint Services 3.0 is installed, use the Config.xml file along with Setup.exe. For example, you can use the config.xml file to:

  • Perform a silent installation of Windows SharePoint Services 3.0.

  • Install Windows SharePoint Services 3.0 by using a common configuration across multiple servers.

  • Perform an automated or scripted install of Windows SharePoint Services 3.0.

In this article:

  • Customizing Config.xml

  • Config.xml Element Quick Reference

  • How It Works

  • Config.xml File Format

  • Config.xml Element Reference

Customizing Config.xml

To control the installation, first edit the Config.xml file in a text editor to include the elements you need with the appropriate settings for those elements. Then run setup.exe /config [path and file name] to specify that Setup.exe runs and uses the options you set in the Config.xml file.

Important

Use a text editor, such as Notepad, to edit Config.xml. Do not use a general-purpose XML editor such as Microsoft Office Word 2007.

The product DVD contains examples of Config.xml files. The example files are stored under the \Files folder at the root of the DVD, in folders that correspond to different scenarios. The folders are:

  • Setup   Contains a config.xml file for use in setting up a clean installation. You must run psconfig.exe after running Setup to finish configuring the server or server farm.

  • SetupFarmSilent   Contains a config.xml file for use in setting up a server farm in silent mode.

  • SetupGradualUpgradeSilent   Contains a config.xml file for use in upgrading an existing server farm gradually.

  • SetupSilent   Contains a config.xml file for use in setting up a clean installation for a single server (stand-alone, with Windows Internal Database) in silent mode.

  • SetupUpgradeSilent   Contains a config.xml file for use in upgrading an existing server farm gradually.

Important

The default configuration files included with Windows SharePoint Services 3.0 omit the SETUP_REBOOT setting. You must include this setting if you want to suppress reboots during a command-line installation.

For more information about the differences among the various upgrade scenarios, see Determine upgrade approach.

Config.xml Element Quick Reference

The following table contains a list of the elements in Config.xml. These elements can appear in any order, except for Configuration, which must be first, and elements such as Command, whose order in Config.xml affects how they are processed during installation.

Element

Description

Configuration

Top-level element.

ARP

Values that control the text and behavior of Add or Remove Programs in Control Panel for the product.

Command

Runs a command during installation.

Display

The level of UI that Setup displays to the user.

Logging

Options for the type of logging that Setup performs.

DATADIR

The location to use to store the data files.

Package

The package or product to install.

Setting

Values for Windows Installer properties.

How It Works

Setup looks for a copy of Config.xml in the same folder as Setup.exe. If a copy is not found there, Setup uses the Config.xml file that resides in the core \Files folder for the product that you are installing.

You can also use the /config Setup command-line option to specify the location of the Config.xml file. For example:

\\<server>\<share>\setup.exe /config \\<server>\<share>\<folder>\config.xml

Config.xml File Format

XML elements in Config.xml begin with < and end with />.

The basic element format is:

<element_name [attribute_name="value"] [attribute_name="value"] … />

For example:

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

Elements and attributes are case-sensitive. Attribute values must be enclosed in quotes (") and are not case-sensitive.

An element definition can span multiple lines. Spaces, carriage returns, line feeds, and tab characters are ignored within an element definition.

For example:

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

Tip

For long element definitions, place attributes on separate lines and use indentation to make the file easier to read.

The Configuration element is a special case and is required. All other elements are contained within the Configuration element, and the element is closed with </Configuration>.

The following example shows an example configuration file for a clean installation of the Windows SharePoint Services 3.0 package:

<Configuration>

   <Package Id="sts">

      <Setting Id="REBOOT" Value="ReallySuppress"/>

      <Setting Id="SETUPTYPE" Value="CLEAN_INSTALL"/>

   </Package>

   <DATADIR Value="%CommonProgramFiles%\Microsoft Shared\Web Server Extensions\12\Data"/>

   <Logging Type="verbose" Path="%temp%" Template="Microsoft Windows SharePoint Services 3.0 Setup(*).log"/>

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

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

</Configuration>

Important   The default configuration files included with Windows SharePoint Services 3.0 omit the SETUP_REBOOT setting. You must include this setting if you want to suppress reboots during a command-line installation.

Comments can be added anywhere and are delimited by "<!--" and "-->".

For example:

<!-- Install Windows SharePoint Services for clean install, using UI-->

<Configuration>

   <Package Id="sts">

      <Setting Id="REBOOT" Value="ReallySuppress"/>

      <!-- Tells Windows Installer not to reboot -->

      <Setting Id="SETUPTYPE" Value="CLEAN_INSTALL"/>

   </Package>

   <DATADIR Value="%CommonProgramFiles%\Microsoft Shared\Web Server Extensions\12\Data"/>

   <Logging Type="verbose" Path="%temp%" Template="Microsoft Windows SharePoint Services 3.0 Setup(*).log"/>

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

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

   <!-- Tells Setup.exe not to reboot -->

</Configuration>

Config.xml Element Reference

The following conventions are used in the descriptions in this reference:

bold

Element or attribute name

normal

Text to be entered exactly as shown

italic

Placeholder for a value to be added

x|y

Choose between multiple values

[x]

Optional value

Configuration Element

Top-level element. This element is required, and all other elements must appear within this element.

Syntax

<Configuration>

<Package Id="ID">

...

</Package>

...

</Configuration>

Attributes

Attribute

Value

Description

Package ID

Package ID

The package that is being installed.

Remarks

The Package Id attribute identifies the product and technologies affected by this Config.xml file.

Example

The Package ID for Windows SharePoint Services 3.0 is sts. Use the sts Package ID in Config.xml to specify Windows SharePoint Services 3.0 by entering the following:

<Configuration>
   <Package Id="sts">
   ...
   </Package>
   ...
</Configuration>

ARP Element

Specifies values that control the text and behavior of Add or Remove Programs in Control Panel for the product.

Syntax

<ARP attribute**="value"** [attribute**="value"**] ... />

Attributes

Attribute

Value

Description

ARPCOMMENTS

text

Additional text; can be up to 255 characters, though all characters might not display.

ARPCONTACT

text

List of technical support contacts.

ARPNOMODIFY

Yes

Prevents users from modifying the product installation by making the Change button unavailable.

No (default)

Allows user to modify the product installation.

ARPNOREMOVE

Yes

Prevents users from removing the product by making the Remove button unavailable.

No (default)

Allows users to remove the product.

ARPURLINFOABOUT

URL

URL for the product's home page.

ARPURLUPDATEINFO

URL

URL for information about product updates.

ARPHELPLINK

URL

URL of a Web site from which users can receive technical support.

ARPHELPTELEPHONE

text

Phone numbers for technical support.

Command Element

Specifies a command line to run. The Command element commands are processed only during initial installations and uninstallations. If Command element commands are used for customizations after the initial installation, they are ignored.

Syntax

<Command

Path="path"

[QuietArg="arguments"]

[Args="args"]

[ChainPosition="Before" | "After"(default)]

[Wait="mseconds"]

[QuietWait="mseconds"]

[Execute="Install"(default) | "Uninstall"]

[Platform="x86"(default) | "x64"]

/>

Attributes

You can specify double-quotation marks (") in the Path and Args attributes by specifying two double-quotation marks together ("").

Attribute

Value

Description

Path

path

Fully qualified path to the executable Microsoft® Windows Installer (MSI) package file.

QuietArg

string

String of arguments to be appended to the command line when Display Level=None.

Args

string

String of arguments to be passed to the executable.

ChainPosition

Before

This command is executed before the primary product installation.

After (default)

This command is executed after the primary product installation.

Wait

mseconds

When you install with the Display Level attribute set to "Full" or "Basic", this is the number of milliseconds to wait after you run the program before you continue the installation. The default is 0 (zero), which indicates no waiting.

QuietWait

mseconds

When you install with the Display Level attribute set to "None", this is the number of milliseconds to wait after you run the program before you continue the installation. The default is 0 (zero), which indicates no waiting.

Execute

Install (default)

Setup executes this command when the primary product is installed.

Uninstall

Setup executes this command when the primary product is uninstalled.

Platform

x86 (default)

Specifies that this program requires the Intel x86 platform. This command runs only if the computer on which the installation is run matches this platform requirement.

x64

Specifies that this program requires a 64-bit processor that supports the x64 extensions to the x86 architecture. This command runs only if the computer on which the installation is run matches this platform requirement.

Remarks

The command line can be specified for a chained installation or an executable that runs when this product is installed. If this is specified, you must specify a command line for Setup.exe rather than a single MSI file.

If there are two or more Command elements in the Config.xml file, they will run in the order in which they are specified in Config.xml.

Example

<Command Path="myscript.exe" Args="/id ""123 abc"" /q"/>

<Command Path="\\<server>\<share>\setup.exe /config \\<server>\<share>\<folder>\config.xml"

DATADIR Element

The location to use to store the data files, including the search index files.

Syntax

<DATADIR Value="path"/>

Attributes

Attribute

Value

Description

Value

path

Setup stores the data files in the location specified.

Remarks

You can use system environment variables in the path. If this element is not specified, the data is stored in the following path:

%ProgramFiles%\Microsoft SQL Server\MSSQL$SHAREPOINT\Data

Example

<DATADIR Value="d:\data"/>

Display Element

The level of UI that Setup displays to the user.

Syntax

<Display

Level="None" | "Basic" | "Full"(default)

CompletionNotice="Yes"(default) | "No"

SuppressModal="Yes" | "No"(default)

NoCancel="Yes" | "No"(default)

AcceptEula="Yes" | "No"(default)

/>

Attributes

Attribute

Value

Description

Level

None

No Setup UI is displayed.

Basic

Setup displays the Welcome screen, the Microsoft Software License Terms page (if needed), a progress bar, and the completion notice (if allowed).

Full (default)

Setup displays all UI to the user.

CompletionNotice

Yes

Only applies if Level is set to "Basic" or "None": Setup displays the completion notice.

No (default)

Only applies if Level is set to "Basic": Setup does not display the completion notice.

SuppressModal

Yes

Only applies if Level is set to "Basic": Setup does not display error messages and other dialog boxes that might interrupt the installation.

No (default)

Only applies if Level is set to "Basic": Setup displays errors and other dialog boxes as needed.

NoCancel

Yes

If Level is set to "Full" or "Basic", disables the cancel button (X in upper-right corner of the progress dialog).

No (default)

If Level is set to "Full" or "Basic", allows the user to cancel the installation from the progress bar.

AcceptEULA

Yes

The Microsoft Software License Terms are accepted on behalf of the user; Setup does not display the Microsoft Software License Terms page.

No (default)

If Level is not set to "None", Setup displays the Microsoft Software License Terms page.

Remarks

If this element is not defined, the default settings are used. If an invalid value is specified, Setup ends the installation.

Note

The Display element is used by Setup only if Setup finds the Config.xml file in the same folder as setup.exe, or if you specify the Config.xml file by using the Setup /config command-line option.

Example

<Display Level="basic"
   CompletionNotice="yes"
   SupressModal="no"
   AcceptEula="yes"
/>

Logging Element

Specifies the type of logging that Setup performs.

Syntax

<Logging

Type="Off" | "Standard"(default) | "Verbose"

Path="path"

Template="filename.txt"

/>

Attributes

Attribute

Value

Description

Type

Off

Setup does no logging.

Standard (default)

Setup writes installation information to the log file.

Verbose

Setup writes all installation information to the log file.

Path

Path

The fully qualified path to the folder used for the log file. You can use environment variables. The default is %temp%.

Template

filename.txt

The name of the log file. If you insert the string * anywhere in the file name, a unique log file is created for each installation performed by Setup.exe (see the explanation below). If * is not included and the file name specified already exists, log information is appended to the existing file. The .txt file extension must be included. The default template is SetupExe(*).log.

Remarks

You can specify a * anywhere in the Template value. Setup inserts a string in that location with the following format:

YYYYMMDDHHMMSSxxx

where:

  1. YYYY = Year

  2. MM = Month

  3. DD = Day

  4. HH = Hour

  5. MM = Minutes

  6. SS = Seconds

  7. xxx = a unique string generated by Setup

Note

The Logging element is used by Setup only if you specify the Config.xml file by using the Setup /config command-line option. If you do not specify a Config.xml file to use, then Setup uses the default logging options.

Example

<Logging Type="standard" Path="%temp%"
   Template="MyLog(*).txt"
/>

With this example, Setup creates a log file each time it installs the product. Setup uses unique file names such as the following:

%temp%\MyLog(20060428110717CFC).txt
%temp%\MyLog(20060429113143C70).txt

Package Element

The package or product to install.

The Package ID for Windows SharePoint Services 3.0 is sts.

Setting Element

Allows you to specify values for Windows Installer properties.

Syntax

<Setting Id="name" Value="value" />

Attributes

Attribute

Value

Description

Id

name

The name of the Windows Installer property.

Value

value

The value to assign to the property.

Values

The following Setting IDs are used for server installations:

ID

Accepted values

Description

REBOOT

ReallySuppress

Specifies (for Windows Installer) whether or not to allow a reboot after Setup is complete. Use ReallySuppress to specify no reboot. Must be specified at the global level, not per package.

SETUP_REBOOT

Never, AutoAlways, Always, AutoIfNeeded, IfNeeded

Specifies (for Setup.exe) whether or not to allow a reboot after Setup is complete. Use Never to specify no reboot. Must be specified at the global level, not per package.

SETUPTYPE

CLEAN_INSTALL, V2V_GRADUAL_UPGRADE, V2V_INPLACE_UPGRADE

Specifies whether to install a new copy of the product or technology (CLEAN_INSTALL), install the new version side by side with the previous version for a gradual upgrade (V2V_GRADUAL_UPGRADE), install the new version and upgrade the previous version in place (V2V_INPLACE_UPGRADE). Must be specified at the global level, not per package.

SETUPCALLED

0 | 1

Use as part of the Package Id attribute.

SERVERROLE

SINGLESERVER, WFE

Specifies the type of server you are installing to: stand-alone (SINGLESERVER) or front-end Web server (WFE).

USINGUIINSTALLMODE

0 | 1

Specifies whether you are performing a silent install (0) or using the user interface for Setup (1).

Remarks

Not all Windows Installer properties can be specified in the Setting element. If a blocked property is specified, Setup ends the installation process. If a supported property is specified, Setup passes the property directly to Windows Installer.

Example

<Setting Id="REBOOT" Value="ReallySuppress" />

Download this book

This topic is included in the following downloadable book for easier reading and printing:

See the full list of available books at Downloadable books for Windows SharePoint Services.