部署 Office LTSC 2021

To configure and perform deployments of Office LTSC 2021, including Project and Visio, for users in your organization, you use the Office Deployment Tool (ODT). The Office Customization Tool (OCT) that you previously used for Windows Installer (MSI) is no longer used.

The installation files for Office LTSC 2021 are available on the Office Content Delivery Network (CDN) on the internet instead of on the Volume Licensing Service Center (VLSC). You can install Office LTSC 2021 directly from the Office CDN. Or, you can download the installation files from the Office CDN to a location on your local network, such as a shared folder, and install Office LTSC 2021 from that location. You can use different methods for different sets of devices in your organization. Whichever method you choose, you use the ODT.

Installing directly from the Office CDN requires the least amount of administrative effort and is recommended. But you might have constraints that prevent you from installing directly from the internet. For example, some devices might not have connectivity to the internet or you may have limited bandwidth to the internet.

以下步骤是部署 Office LTSC 2021 的基本步骤:

  1. 从 Microsoft 下载中心下载 Office 部署工具
  2. 创建 configuration.xml 文件
  3. 下载 Office LTSC 2021 安装文件 (如果未直接从 Office CDN 安装,则为可选)
  4. 使用 Office 部署工具安装 Office LTSC 2021

或者,可以 使用配置服务器部署 Office LTSC 2021,如果组织中可用。

无论选择哪种方式部署 Office LTSC 2021,我们都建议在 安装 Office LTSC 2021 之前删除现有 Office 版本

从 Microsoft 下载中心下载 Office 部署工具

The Office Deployment Tool is a free download from the Microsoft Download Center. We recommend that you always download and use the most current version of the ODT.

下载 Office 部署工具后,双击 officedeploymenttool 可执行文件 (.exe) 以提取 ODT 文件。 完成后,应该拥有的几个文件: setup.exe 和一些示例 configuration.xml 文件。 有关特定于 Office LTSC 2021 的示例,请参阅 与 Office 部署工具一起使用的示例 configuration.xml 文件

The setup.exe file is the ODT and is a command-line tool that supports downloading and installing Office LTSC 2021. The configuration.xml files are sample files to get you started. You use the configuration.xml file to provide settings for the ODT to use when downloading or installing Office LTSC 2021. The configuration.xml is a simple xml file that can be created and edited in any text editor, such as Notepad. You can name the file anything that you want, as long as it retains the xml file extension.

创建 configuration.xml 文件

Once you have a copy of the ODT, you need to create a configuration.xml file. You can create multiple configuration.xml files to be used with the ODT. For example, you would create a configuration.xml file to download and install the 64-bit version of Office LTSC Professional Plus 2021 in English and a different configuration.xml file to install the 32-bit version of Visio LTSC Professional 2021 in French. When you run the ODT from an elevated command prompt, you specify which configuration.xml file to use.

提示

Instead of using a text editor to create your configuration.xml file, we recommend that you use the Office Customization Tool (OCT). The OCT provides a web-based interface for making your selections and creating your configuration.xml file to be used with the Office Deployment Tool. For more information, see Overview of the Office Customization Tool. Please note that this is different than the Office Customization Tool that you might have used in the past to install volume licensed versions of Office that used Windows Installer (MSI) as the installation technology.

There are a series of settings in the configuration.xml file that you configure to customize the Office LTSC 2021 download or installation. The following table lists the most common settings to configure in the configuration.xml file.

配置 configuration.xml 设置 其他信息
从何处下载 Office 安装文件以及从何处安装 Office

例如,\\server\share (本地网络上的共享文件夹)。
SourcePath If you don’t specify a SourcePath when using the ODT to install Office, the ODT looks for the installation files in the folder it’s located in. If it doesn’t find the Office installation files there, it goes to the Office CDN to get the installation files.

如果 Internet 连接和网络带宽可用,我们建议你直接从 Office CDN 安装 Office。
需要下载或安装的产品

例如,Office LTSC 专业增强版 2021。
产品 ID 有效值包括:
- ProPlus2021Volume
- Standard2021Volume
- ProjectPro2021Volume
- ProjectStd2021Volume
- VisioPro2021Volume
- VisioStd2021Volume

有关其他批量许可 Office 产品(如 Access LTSC 2021)的产品 ID 列表,请参阅 Office 即点即用部署工具支持的产品 ID

如果你有 Microsoft 服务提供商许可协议 (SPLA),请查看此信息
使用密钥管理服务 (KMS) 激活 Office LTSC 2021 PIDKEY 输入 通用批量许可证密钥 (GVLK) 以激活 KMS。
使用多次激活密钥 (MAK) 激活 Office LTSC 2021 PIDKEY 输入 MAK 激活的产品密钥。
需要下载或安装的语言

例如,英语 (en-us) 和法语 (fr-fr)。
语言 ID 你可以在安装 Office LTSC 2021 的同时安装多种语言,也可以稍后再安装。

有关详细信息,请参阅 Office LTSC 2021 的部署语言
需要安装的校对工具 产品 ID 产品 ID 是“ProofingTools”,它与语言 ID 结合使用。

有关详细信息,请参阅 Office LTSC 2021 的部署语言
需要下载或安装的 Office LTSC 2021 版本。

例如,64 位版本。
OfficeClientEdition 有效的 xml 值为“32”和“64”。

All Office products on the device must be of the same architecture. You can’t have both 32-bit and 64-bit Office products installed on the same device.

We recommend 64-bit on devices that have 4 GB or more of memory. But you should assess application compatibility and other factors that might require you to use the 32-bit version.

有关详细信息,请参阅选择 64 位或 32 位版本的 Office
需要安装的应用

例如,除 Publisher 之外的所有应用。
ExcludeApp 默认情况下,将安装 Office LTSC 专业增强版 2021 中包含的所有应用。

例如,若不想安装 Publisher,可以在 configuration.xml 中包含以下行:

<ExcludeApp ID="Publisher" />

有关详细信息,请参阅 ExcludeApp 元素
从何处获取安全和质量更新。

例如,直接从 Internet 上的 Office CDN 获取。
UpdatePath The default is to get updates directly from the Office CDN on the internet. This is recommended and requires the least amount of administrative effort.

But if you need to update devices that don’t have connectivity to the internet, you can specify that Office gets updates, for example, from a shared folder on your local network. But this means that you must download the updates from the Office CDN and copy them to the shared folder.

有关详细信息,请参阅 更新 Office LTSC 2021
通过哪个更新频道进行安装和获取更新 频道 Office 使用更新频道概念来确定已安装的 Office 版本所接收的更新。

有关详细信息,请参阅 Office LTSC 2021更新频道
在安装 Office LTSC 2021 之前是否删除 Office 的旧 Windows Installer (MSI) 版本 RemoveMSI 建议使用此设置。

有关详细信息,请参阅 在安装 Office LTSC 2021 之前删除现有 Office 版本

提示

More information about these configuration.xml settings is available here: Configuration options for the Office Deployment Tool. Keep in mind that not all the information in that article applies to Office LTSC 2021. For example, the settings related to shared computer activation, such as SharedComputerLicensing and SCLCacheOverride, don’t apply to Office LTSC 2021.

与 Office 部署工具一起使用的示例 configuration.xml 文件

The following is a sample configuration.xml file that can be used to either download or install the 64-bit version of Office LTSC Professional Plus 2021 in English using a shared folder on your local network and activate by using MAK. If you’re using this configuration.xml to install Office LTSC 2021, previous Windows Installer (MSI) versions of Office are removed as part of the installation process. Also, even though it’s not specified in the configuration.xml file, updates are automatically enabled and are configured to come directly from the Office CDN, because those are the default settings.

<Configuration>
  <Add SourcePath="\\Server\Share" OfficeClientEdition="64" Channel="PerpetualVL2021">
      <Product ID="ProPlus2021Volume"  PIDKEY="#####-#####-#####-#####-#####" >
         <Language ID="en-us" />
      </Product>
      <Product ID="ProofingTools">
        <Language ID="de-de" />
        <Language ID="es-es" />
      </Product>
  </Add>
  <RemoveMSI />
  <Display Level="None" AcceptEULA="TRUE" />  
</Configuration>

对于 PIDKEY,请使用 MAK 客户端激活密钥替换 #####-#####-#####-#####-#####。

在安装 Office LTSC 2021 之前删除现有 Office 版本

We recommend that you uninstall any previous versions of Office before installing Office LTSC 2021. To help you uninstall versions of Office that use Windows Installer (MSI) as the installation technology, you can use the Office Deployment Tool and specify the RemoveMSI element in your configuration.xml file.

安装 Office LTSC 2021 时,可以通过多种方法来使用 RemoveMSI 元素。

  • 卸载设备上的所有 Office 产品。
  • 识别任何现有语言资源(如语言包)并安装相同的语言。
  • 保留某些 Office 产品并卸载设备上的所有其他 Office 产品。

RemoveMSI 可用于卸载使用 Windows Installer (MSI) 安装的 Office 2007、2010、Office 2013 或 Office 2016 版本、Visio 或 Project。

For more information about using RemoveMSI, see Remove existing MSI versions of Office when upgrading to Microsoft 365 Apps. Even though this article is about Microsoft 365 Apps, most of the information also applies to Office LTSC 2021.

若要从设备卸载 Office 2019 版本、Visio 或 Project,请使用 “移除”元素。 使用“移除”元素是因为 Office 2019 版本、Visio 和 Project 是使用即点即用,而不是 Windows 安装程序 (MSI) 安装的。

下载 Office LTSC 2021 安装文件

Once you have a copy of the ODT and have created your configuration.xml file, you can download the Office LTSC 2021 installation files to your local network. To do that, open an elevated command prompt, go to the folder where you saved the ODT and the configuration.xml file, and type this command:

setup /download configuration.xml

如果已使用其他名称保存 configuration.xml 文件,请在命令中使用该名称。

It will look as if nothing is happening, but the download is happening in the background. Once the download is complete, you are returned to a command prompt.

If you want to check that the files are downloading, go to the location you specified for your SourcePath in the configuration.xml file. You should see a folder named “Office” with a subfolder named “Data.” There will also be a folder named with the version number of the download. For example, 16.0.14332.20099. Which files you see and the names of the files depend on whether you are downloading the 32-bit or 64-bit version of Office and which languages you are downloading.

此处提供了有关下载 Office LTSC 2021 安装文件的一些其他详细信息:

  • 你必须单独下载 32位和 64 位版本。
  • All volume licensed Office products – such as Office LTSC Professional Plus 2021, Visio LTSC Professional 2021, and Project Professional 2021 – are included in the same download, regardless of which products you specify in the configuration.xml file. This helps you save disk space on your local network. The core files for these products are in the stream.x86.x-none.dat or stream.x64.x-none.dat file, depending if it’s the 32-bit or 64-bit version of Office.

使用 Office 部署工具安装 Office LTSC 2021

Once you have a copy of the ODT and have created your configuration.xml file (and downloaded the Office LTSC 2021 installation files to your local network, if necessary), you can install Office LTSC 2021. To do that, open an elevated command prompt, go to the folder where you saved the ODT and the configuration.xml file, and type the following command:

setup /configure configuration.xml

如果已使用其他名称保存 configuration.xml 文件,请在命令中使用该名称。

安装完成后,将返回到命令提示符,你可以打开已安装的 Office LTSC 2021 程序。

备注

Office LTSC 2021 安装在,该盘通常位于 C:\ 盘。 安装位置不能更改。

使用“配置服务器”安装 Office LTSC 2021

还可以使用 Microsoft Configuration Manager部署 Office LTSC 2021。 Configuration Manager(当前分支)有一个向导,可引导你完成整个过程并为你构建 configuration.xml 文件。 早期版本的 Configuration Manager 要求你下载 ODT 并创建自己的 configuration.xml 文件。

  • 配置管理器 (当前分支): 如果使用的是 配置管理器 (当前分支),则可以使用 Office 365 客户端安装向导来部署 Office LTSC 2021。 将在 Office 365 客户端安装向导中看到 Office LTSC 专业增强版 2021 的条目。 在同一页面上,还可以选择部署 Project 和 Visio。 若要转到向导,在配置管理器控制台中,导航至 软件库 > 概述 > Office 365 客户端管理

  • System Center 2012 R2 Configuration Manager: If you’re using System Center 2012 R2 Configuration Manager, the steps are different and much more manual. First you need to get a copy of the ODT from the Microsoft Download Center and create the appropriate configuration.xml file for your deployment. Then, in Configuration Manager, you create an application and a deployment type. After that you distribute the application and then deploy it.

Office LTSC 2021 的部署语言

You can use the ODT and the configuration.xml file to deploy Office LTSC 2021, including Project and Visio, in multiple languages. For more information, see Language element.

You can also just install proofing tools by specifying the Product ID as "ProofingTools" in your configuration.xml file along with the appropriate Language IDs. Proofing tools packages are much smaller than full language packs. Consider deploying proofing tools in cases where users work with documents in multiple languages but don’t need the Office product UI in all those languages. The proofing tools can be installed at the same time you’re installing Office LTSC 2021, or you can install them later. They can also be installed whether or not the language pack for a given language is installed.

If you're upgrading from a Windows Installer (MSI) version of Office, you can get Click-to-Run versions of the same language resources – for example, language packs, language interface packs, or proofing tools – installed when you deploy Office LTSC 2021. For more information, see Remove existing MSI versions of Office when upgrading to Microsoft 365 Apps. Even though this article is about Microsoft 365 Apps, most of the information also applies to Office LTSC 2021.

Office LTSC 2021 中的 Microsoft Teams

Office LTSC 2021 includes the Teams client app. To complete the installation of the Teams client app after installing Office LTSC 2021, either restart the device or sign out and then sign in again.

在安装 Teams 之后,大约每两周自动更新一次,包含新特性和质量更新。 Teams 的更新过程与 Word 和 Excel 等其他 Office 应用的更新过程不同。 有关详细信息,请参阅 Teams 更新流程

如果你不希望在部署 Office LTSC 2021 时包含 Teams 客户端应用,可以使用以下任一方法:

  • 配置 xml 文件中的 ExcludeApp 元素
  • 如果你使用组策略,则可以启用“不要在 Office 的新安装或更新中安装 Microsoft Teams”策略设置。 可以在组策略管理工具的“Computer Configuration\Policies\Administrative Templates\Microsoft Office 2016 (Machine)\Updates”下找到此策略设置。

Office LTSC 2021 中的 Skype for Business

默认情况下,当你使用以下任一方法部署 Office LTSC 2021 时,Skype for Business 将不包含在 Office LTSC 2021 的安装中:

  • “Office 部署工具”带有通过使用 Office 自定义工具 创建的 configuration.xml 文件,且不改变 应用 部分的默认设置。
  • Microsoft 中Office 365客户端安装向导Configuration Manager (当前分支) ,并且不会更改 “应用”部分下的默认设置。

对于任一方法,都可以调整 UI 中的设置,以便随 Office LTSC 2021 一起安装 Skype for Business。