0% found this document useful (0 votes)
515 views5 pages

Configure Office Installation with XML

This document provides instructions for using the Office Deployment Tool to silently install a customized set of Office programs. It describes downloading the tool, extracting the configuration and setup files, editing the configuration file to specify the install location and programs to include/exclude, downloading the Office files using the setup file and configuration file, and then running setup to install the selected programs. Key steps include editing the configuration file to define install options like source path, edition, language, and excluded apps, and then using the setup file with download and configure switches along with the configuration file to manage the download and installation.

Uploaded by

sam2976
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
515 views5 pages

Configure Office Installation with XML

This document provides instructions for using the Office Deployment Tool to silently install a customized set of Office programs. It describes downloading the tool, extracting the configuration and setup files, editing the configuration file to specify the install location and programs to include/exclude, downloading the Office files using the setup file and configuration file, and then running setup to install the selected programs. Key steps include editing the configuration file to define install options like source path, edition, language, and excluded apps, and then using the setup file with download and configure switches along with the configuration file to manage the download and installation.

Uploaded by

sam2976
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Once you download Office Deployment Tool, run it and it'll ask you to select a folder to extract the

files. Select
any desired folder and it'll extract following 2 files in that folder:

[Link]
[Link]

STEP 3: Edit [Link] File

"[Link]" file is the main file which will be used to tell the Office installer details about all setup
options. We'll provide all required information in this XML file to force the installer to install only selected
Office programs with predefined things. You can consider this XML file as an automatic answer file which is
used in unattended software installations.

We'll use Notepad to edit this XML file. To edit the file, right-click on "[Link]" file and select Edit
option. It'll automatically open the file in Notepad.

By default, the file contains basic information to help you in easily modifying the file. Everything is marked as
comment and you'll need to remove the comment marks to make it a working configuration file.

Copy following code and replace the existing code in the file with it:

<Configuration>
<Add SourcePath="E:\Office\" OfficeClientEdition="64" >
<Product ID="O365ProPlusRetail">
<Language ID="en-us" />
<ExcludeApp ID="Access" />
<ExcludeApp ID="Groove" />
<ExcludeApp ID="InfoPath" />
<ExcludeApp ID="Lync" />
<ExcludeApp ID="OneNote" />
<ExcludeApp ID="PowerPoint" />
<ExcludeApp ID="Publisher" />
<ExcludeApp ID="SharePointDesigner" />
</Product>
</Add>
</Configuration>

Now some important things to know!

The information given in BOLD in the above code can be modified according to your requirements. For
example:

SourcePath:

Set the value of "SourcePath" to the desired folder which should store the Office setup files downloaded by
C2R installer.

OfficeClientEdition:

If you want to download and install 32-bit (x86) version of Office suite, set value of "OfficeClientEdition" to
32. If you want to download and install 64-bit (x64) version of Office suite, set its value to 64.

Product ID:

This variable contains the information about the main product which you want to install using C2R installer.
You can set any of following as its value according to your requirements:

ProPlusRetail
ProfessionalRetail
HomeStudentRetail
HomeBusinessRetail
O365ProPlusRetail
O365HomePremRetail
O365BusinessRetail
O365SmallBusPremRetail
VisioProRetail
ProjectProRetail
SPDRetail

Language ID:

You can set which language should be installed by the installer. You can set its value to your desired locale and
language information such as en-us, hi-in, ja-jp, etc.

ExcludeApp ID:

That's the most useful variable which we need to specify to force C2R installer to install only selected Office
programs.

This variable is optional. You can use this variable multiple times as we have used in the above code, to specify
which Office programs should NOT be installed by the installer. So set its value to the programs which you
don't want to install i.e. exclude from your computer.

You can set its value to any of following:

Access
Excel
Groove
InfoPath
Lync
OneNote
Outlook
PowerPoint
Project
Publisher
SharePointDesigner
Visio
Word

That's it. After providing required information save the XML file.

STEP 4: Download Office Setup Files

Now we need to download Office setup files using the [Link] file. But it'll not work if you try to direct run
the [Link] file.

1. Open the folder containing [Link] and [Link] files. Now press and hold SHIFT key on your
keyboard and then right-click on empty area in the folder. You'll see a new option "Open command window
here" or similar, click on it. It'll open Command Prompt window with the current directory active.

2. Now type following command in Command Prompt and press Enter:

[Link] /download [Link]


If you have set the "[Link]" file correctly, the [Link] file will immediately start downloading
Office files. You'll notice a new folder "Office" created by the installer in the same folder which you defined in
"SourcePath" variable in [Link] file. If you open this new folder, it'll contain Office setup files
which are being downloaded by the [Link] file.

Downloading all Office files may take some time depending upon your Internet connection speed.

Once the download process finishes, the Command Prompt window will return to current directory.

STEP 5: Run Office Installer to Install Selected Programs

Now the final step! We need to run the [Link] file with correct parameters in Command Prompt to install
selected Office programs with our predefined settings in [Link] files.

Run following command in Command Prompt:

[Link] /configure [Link]


That's it. It'll immediately start installing your desired Office programs in your computer.

It'll take some time in installing Office suite in your computer.

BONUS TIP:

You can also provide the product key to the installer using [Link] file so that you don't need to type
product key manually. Just add following line to the code:

<Product PIDKEY="11111-11111-11111-11111-11111">

Replace "11111-11111-11111-11111-11111" with the correct product key.

You might also like