Office365 selective installation

When installing office 365, a serious problem was found.

It installed all software in 365 by default. For my computer with little memory, it really added a pressure to the poor disk, so I Baidu a method, which is explained as follows

Firstly, you need to use a tool named opt

It’s a tool used to configure the office installer. Please move to official address.

Double click it and find a place for it to unzip the tool there.

select the location to decompress

4 files extracted

Next, create a new file named config.xml in the path

The configuration content is as follows:

  1. Add sourcepath means the location where you download the office installation package. My path is “D:\software\office365”

  2. OfficeClientEdition is the version of office you are going to download. It can be 32 or 64.

  3. Product ID is the ID for downloading the office version. It is recommended to useO365ProPlusRetail directly. Other version can be found on the official website

  4. ExcludeApp is the software you don’t want to install. I’m just listing it here, leaving only excel, word and power point. It seems that there is no problem.

  5. Others are all displayed on the official website, Click to see details

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<Configuration> 
<Add SourcePath="D:\software\office365" OfficeClientEdition="64">
<Product ID="O365ProPlusRetail" >
<Language ID="zh-cn" />
<ExcludeApp ID="Acess" />
<ExcludeApp ID="Groove" />
<ExcludeApp ID="Lync" />
<ExcludeApp ID="OneNote" />
<ExcludeApp ID="Outlook" />
<ExcludeApp ID="Publisher" />
<ExcludeApp ID="Teams" />
<ExcludeApp ID="Access" />
<ExcludeApp ID="Groove" />
<ExcludeApp ID="InfoPath" />
<ExcludeApp ID="Project" />
<ExcludeApp ID="SharePointDesigner" />
<ExcludeApp ID="Visio" />
</Product>
</Add>
</Configuration>

Next, open CMD with administrator privileges and enter the folder you just unzipped

Execute these two commands in CMD

1
2
setup.exe  /download  config.xml
setup.exe /configure config.xml

The first command is to download first, and the second command is to execute the installation. The effect diagram is as follows:

It’s done here!

In fact, the official documents are well written, but my requirements are not so complicated.

Have a good time!