部署 Office 2019(面向 IT 专业人员)Deploy Office 2019 (for IT Pros)

若要为组织内的用户配置和执行 Office 2019 的批量许可版本(包括 Project 和 Visio)的部署,请使用 Office 部署工具 (ODT)。To configure and perform deployments of volume licensed versions of Office 2019, including Project and Visio, for users in your organization, you use the Office Deployment Tool (ODT). 以前用于 Windows Installer (MSI) 的 Office 自定义工具 (OCT) 将不再使用。The Office Customization Tool (OCT) that you previously used for Windows Installer (MSI) is no longer used.

Office 2019 的安装文件位于 Internet 上的 Office 内容交付网络 (CDN) 中,而不是位于批量许可服务中心 (VLSC)。The installation files for Office 2019 are available on the Office Content Delivery Network (CDN) on the internet instead of on the Volume Licensing Service Center (VLSC). 你可以直接从 Office CDN 安装 Office 2019。You can install Office 2019 directly from the Office CDN. 或者,你也可以将安装文件从 Office CDN 下载到本地网络上的某个位置(如共享文件夹),然后从该位置安装 Office 2019。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 2019 from that location. 你可以为组织内的不同计算机组使用不同的方法。You can use different methods for different sets of computers in your organization. 无论选择哪种方法,都可以使用 ODT。Whichever method you choose, you use the ODT.

直接从 Office CDN 安装所需的管理工作量最少,因此建议使用此方法。Installing directly from the Office CDN requires the least amount of administrative effort and is recommended. 但是,你可能面临不允许直接从 Internet 安装的限制。But you might have constraints that prevent you from installing directly from the internet. 例如,某些计算机可能无法连接到 Internet,或者具有有限的 Internet 带宽。For example, some computers might not have connectivity to the internet or you may have limited bandwidth to the internet.

从 Microsoft 下载中心下载 Office 部署工具Download the Office Deployment Tool from the Microsoft Download Center

可以从 Microsoft 下载中心免费下载 Office 部署工具The Office Deployment Tool is a free download from the Microsoft Download Center. 我们建议你始终下载并使用最新版本的 ODT。We recommend that you always download and use the most current version of the ODT.

下载 Office 部署工具后,双击 officedeploymenttool 可执行文件 (.exe) 以提取 ODT 文件。After you download the Office Deployment Tool, double-click on the officedeploymenttool executable (.exe) file to extract the ODT files. 完成后,你应该拥有几个文件:setup.exe 和一些示例 configuration.xml 文件。When you are finished, you should have several files: setup.exe and some sample configuration.xml files. 有关特定于 Office 2019 的示例,请参阅与 Office 部署工具一起使用的示例 configuration.xml 文件For an Office 2019-specific sample, see Sample configuration.xml file to use with the Office Deployment Tool.

setup.exe 文件是 ODT,它是一种支持下载和安装 Office 2019 的命令行工具。The setup.exe file is the ODT and is a command-line tool that supports downloading and installing Office 2019. configuration.xml 文件是示例文件,可帮助你入门。The configuration.xml files are sample files to get you started. 你可以使用 configuration.xml 文件为要在下载或安装 Office 2019 时使用的 ODT 提供相关设置。You use the configuration.xml file to provide settings for the ODT to use when downloading or installing Office 2019. configuration.xml 是一种简单的 xml 文件,可以在任何文本编辑器(如记事本)中创建和编辑此文件。The configuration.xml is a simple xml file that can be created and edited in any text editor, such as Notepad. 你可以将该文件命名为所需的任何名称,只要它保留 xml 文件扩展名即可。You can name the file anything that you want, as long as it retains the xml file extension.

创建 configuration.xmlCreate the configuration.xml

获得 ODT 副本后,需要创建 configuration.xml 文件。Once you have a copy of the ODT, you need to create a configuration.xml file. 你可以创建多个要与 ODT 一起使用的 configuration.xml 文件。You can create multiple configuration.xml files to be used with the ODT. 例如,你可以创建一个 configuration.xml 文件以使用英语下载并安装 64 位版本的 Office 专业增强版 2019,并创建另一个 configuration.xml 文件以使用法语安装 32 位版本的 Visio 专业版 2019。For example, you would create a configuration.xml file to download and install the 64-bit version of Office Professional Plus 2019 in English and a different configuration.xml file to install the 32-bit version of Visio Professional 2019 in French. 从提升的命令提示符处运行 ODT 时,指定要使用的 configuration.xml 文件。When you run the ODT from an elevated command prompt, you specify which configuration.xml file to use.

提示

不要使用文本编辑器来创建 configuration.xml,我们建议使用Office 自定义工具 (OCT)Instead of using a text editor to create your configuration.xml, we recommend that you use the Office Customization Tool (OCT). OCT 提供了一个基于 Web 的界面,用于选择和创建要与“ Office 部署工具”一起使用的 configuration.xml 文件。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. 有关更多详细信息,请参阅 Office 自定义工具概述For more information, see Overview of the Office Customization Tool. 请注意,这与你过去用于安装 Office 批量许可版本(将 Windows Installer (MSI) 用作安装技术)的 Office自定义工具不同。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.

configuration.xml 文件中有一系列设置,你可以配置这些设置以自定义 Office 2019 下载或安装。There are a series of settings in the configuration.xml file that you configure to customize the Office 2019 download or installation. 下表列出了要在 configuration.xml 文件中配置的最常用设置。The following table lists the most common settings to configure in the configuration.xml file.

配置Configuration configuration.xml 设置configuration.xml setting 其他信息Additional information
从何处下载 Office 安装文件以及从何处安装 OfficeWhere to download the Office installation files to and where to install Office from

例如,\\server\share(本地网络上的共享文件夹)For example, \\server\share (a shared folder on your local network)
SourcePathSourcePath 如果在使用 ODT 安装 Office 时未指定 SourcePath,则 ODT 会在其所在的文件夹中查找安装文件。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. 如果它在那里找不到 Office 安装文件,则将转到 Office CDN 以获取安装文件。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。We recommend that you install Office directly from the Office CDN, if internet connectivity and network bandwidth make that possible.
需要下载或安装的产品Which products to download or install

例如,Office 专业增强版 2019For example, Office Professional Plus 2019
产品 IDProduct ID Office 2019 的批量许可版本的有效值包括:Valid values for volume licensed versions of Office 2019 include the following:
- ProPlus2019Volume- ProPlus2019Volume
- Standard2019Volume- Standard2019Volume
- ProjectPro2019Volume- ProjectPro2019Volume
- ProjectStd2019Volume- ProjectStd2019Volume
- VisioPro2019Volume- VisioPro2019Volume
- VisioStd2019Volume- VisioStd2019Volume
使用多次激活密钥 (MAK) 激活 Office 2019Use Multiple Activation (MAK) to activate Office 2019 PIDKEYPIDKEY 输入 MAK 激活的产品密钥。Enter the product key for MAK activation.

如果使用密钥管理服务 (KMS) 激活 Office 2019,则无需使用 PIDKEY。You don’t need to use PIDKEY if you’re activating Office 2019 with Key Management Service (KMS).
需要下载或安装的语言Which languages to download or install

例如,英语 (en-us) 和法语 (fr-fr)。For example, English (en-us) and French (fr-fr).
语言 IDLanguage ID 你可以在安装 Office 2019 的同时安装多种语言,也可以稍后再安装。You can install multiple languages at the same time you’re Installing Office 2019, or you can install them later.

有关详细信息,请参阅 Office 2019 的部署语言For more information, see Deploy languages for Office 2019.
需要安装的校对工具Which proofing tools to install 产品 IDProduct ID 产品 ID 是“ProofingTools”,它与语言 ID 结合使用。The Product ID is "ProofingTools" and is used in combination with the Language ID.

有关详细信息,请参阅 Office 2019 的部署语言For more information, see Deploy languages for Office 2019.
需要下载或安装的 Office 2019 版本。Which edition of Office 2019 to download or install.

例如,64 位版本。For example, the 64-bit version.
OfficeClientEditionOfficeClientEdition 有效的 xml 值为“32”和“64”。Valid xml values are "32" and "64."

计算机上的所有 Office 产品必须具有相同的体系结构。All Office products on the computer must be of the same architecture. 你不能在同一台计算机上安装 32 位和 64 位 Office 产品。You can’t have both 32-bit and 64-bit Office products installed on the same computer.

我们建议在具有 4 GB 或更多内存的计算机上安装 64 位版本。We recommend 64-bit on computers that have 4 gb or more of memory. 但是,你应该评估应用程序兼容性以及可能需要使用 32 位版本的其他因素。But you should assess application compatibility and other factors that might require you to use the 32-bit version.

有关详细信息,请参阅选择 64 位或 32 位版本的 OfficeFor more information, see Choose between the 64-bit or 32-bit version of Office.
需要安装的应用Which apps to install

例如,除 Publisher 之外的所有应用。For example, all apps except Publisher.
ExcludeAppExcludeApp 默认情况下,将安装 Office 专业增强版 2019 中包含的所有应用。By default, all apps included in Office Professional Plus 2019 are installed.

例如,若不想安装 Publisher,可以在 configuration.xml 中包含以下行:For example, to not install Publisher, you can include the following line in your configuration.xml:

<ExcludeApp ID="Publisher" /><ExcludeApp ID="Publisher" />

有关详细信息,请参阅 ExcludeApp 元素For more information, see ExcludeApp element.
从何处获取安全和质量更新。Where to get security and quality updates from.

例如,直接从 Internet 上的 Office CDN 获取。For example, directly from the Office CDN on the internet.
UpdatePathUpdatePath 默认设置是直接从 Internet 上的 Office CDN 获取更新。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.

但是,如果你需要更新无 Internet 连接的计算机,则可以指定 Office 从本地网络上的共享文件夹等位置获取更新。But if you need to update computers 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. 但这意味着你必须从 Office CDN 下载更新并将其复制到共享文件夹。But this means that you must download the updates from the Office CDN and copy them to the shared folder.

有关详细信息,请参阅更新 Office 2019(面向 IT 专业人员)For more information, see Update Office 2019 (for IT Pros).
通过哪个更新频道进行安装和获取更新Which update channel to install from and get updates from 频道Channel Office 使用更新频道概念来确定已安装的 Office 版本所接收的更新。Office uses the concept of update channels to determine which updates an installed version of Office receives.

有关详细信息,请参阅 Office 2019 更新频道For more information, see Update channel for Office 2019.
在安装 Office 2019 之前是否删除 Office 的旧 Windows Installer (MSI) 版本Whether to remove previous Windows Installer (MSI) versions of Office before installing Office 2019 RemoveMSIRemoveMSI 建议使用此设置。This is recommended.

有关详细信息,请参阅在安装 Office 2019 之前删除现有 Office 版本For more information, see Remove existing versions of Office before installing Office 2019.

提示

可从此处找到有关这些 configuration.xml 设置的详细信息:针对 Office 部署工具的配置选项More information about these configuration.xml settings is available here: Configuration options for the Office Deployment Tool. 请注意,本文中的所有信息并非都适用于 Office 2019。Keep in mind that not all the information in that article applies to Office 2019. 例如,与共享计算机激活相关的设置(如 SharedComputerLicensing 和 SCLCacheOverride)不适用于 Office 2019。For example, the settings related to shared computer activation, such as SharedComputerLicensing and SCLCacheOverride, don’t apply to Office 2019.

与 Office 部署工具一起使用的示例 configuration.xml 文件Sample configuration.xml file to use with the Office Deployment Tool

以下是一个示例 configuration.xml 文件,可用于通过本地网络上的共享文件夹以英语下载或安装 64 位版本的 Office 专业增强版 2019,并使用 MAK 进行激活。The following is a sample configuration.xml file that can be used to either download or install the 64-bit version of Office Professional Plus 2019 in English using a shared folder on your local network and activate by using MAK. 如果使用此 configuration.xml 安装 Office 2019,则在安装过程中将删除 Office 的旧 Windows Installer (MSI) 版本。If you’re using this configuration.xml to install Office 2019, previous Windows Installer (MSI) versions of Office are removed as part of the installation process. 此外,即使未在 configuration.xml 文件中指定,也会自动启用更新并配置为直接从 Office CDN 获取更新,因为这些是默认设置。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="PerpetualVL2019">
      <Product ID="ProPlus2019Volume"  PIDKEY="#####-#####-#####-#####-#####" >
         <Language ID="en-us" />
      </Product>
      <Product ID="ProofingTools">
        <Language ID="de-de" />
        <Language ID="ja-jp" />
      </Product>
  </Add>
  <RemoveMSI />
  <Display Level="None" AcceptEULA="TRUE" />  
</Configuration>

对于 PIDKEY,请使用 MAK 客户端激活密钥替换 #####-#####-#####-#####-#####。For the PIDKEY, replace #####-#####-#####-#####-##### with your MAK client activation key.

在安装 Office 2019 之前删除现有 Office 版本Remove existing versions of Office before installing Office 2019

我们建议你在安装 Office 2019 的批量许可版本之前卸载 Office 的任何旧版本。We recommend that you uninstall any previous versions of Office before installing volume licensed versions of Office 2019. 为了帮助卸载将 Windows Installer (MSI) 用作安装技术的 Office 版本,可以使用 Office 部署工具并在 configuration.xml 文件中指定 RemoveMSI 元素。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 2019 的批量许可版本时,你可以通过多种方法来使用 RemoveMSI 元素。There are several ways that you can use the RemoveMSI element when installing volume licensed versions of Office 2019.

  • 卸载计算机上的所有 Office 产品。Uninstall all Office products on the computer.
  • 识别任何现有语言资源(如语言包)并安装相同的语言。Identify any existing language resources, like language packs, and install the same languages.
  • 保留某些 Office 产品并卸载计算机上的所有其他 Office 产品。Keep some Office products and uninstall all other Office products on the computer.

RemoveMSI 可用于卸载使用 Windows Installer (MSI) 安装的 Office 2010、Office 2013 或 Office 2016 版本、Visio 或 Project。RemoveMSI can be used to uninstall 2010, 2013, or 2016 versions of Office, Visio, or Project that were installed using Windows Installer (MSI).

有关使用 RemoveMSI 的详细信息,请参阅升级到 Office 365 专业增强版时删除现有 MSI 版本的 OfficeFor more information about using RemoveMSI, see Remove existing MSI versions of Office when upgrading to Office 365 ProPlus. 虽然本文介绍的是 Office 365 专业增强版,但大部分信息也适用于 Office 2019 的批量许可版本。Even though this article is about Office 365 ProPlus, most of the information also applies to volume licensed versions of Office 2019.

下载 Office 2019 安装文件Download the Office 2019 installation files

获得 ODT 副本并创建 configuration.xml 文件后,你可以将 Office 2019 安装文件下载到本地网络。Once you have a copy of the ODT and have created your configuration.xml file, you can download the Office 2019 installation files to your local network. 若要执行此操作,请打开提升的命令提示符,转到保存 ODT 和 configuration.xml 文件的文件夹,然后键入此命令: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 文件,请在命令中使用该名称。If you have saved the configuration.xml file with a different name, use that name in the command.

看起来好像什么都没有发生,但下载正在后台进行。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.

如果要检查文件是否正在下载,请转到在 configuration.xml 文件中为 SourcePath 指定的位置。If you want to check that the files are downloading, go to the location you specified for your SourcePath in the configuration.xml file. 你应该会看到一个名为“Office”的文件夹,其中包含一个名为“Data”的子文件夹。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. 例如,16.0.10336.20044。For example, 16.0.10336.20044. 可供你查看的文件以及文件名取决于要下载 32 位还是 64 位版本的 Office 以及要下载的语言。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 2019 安装文件的一些其他详细信息:Here some additional details about downloading Office 2019 installation files:

  • 你必须单独下载 32位和 64 位版本。You must download the 32-bit and 64-bit versions separately.
  • 无论你在 configuration.xml 文件中指定哪些产品,Office 2019 的所有批量许可版本(如 Office 专业增强版 2019、Visio 专业版 2019 和 Project 专业版 2019)都包含在同一下载中。All volume licensed versions of Office 2019 – such as Office Professional Plus 2019, Visio Professional 2019, and Project Professional 2019 – 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. Office 2019 产品的核心文件位于 stream.x86.x-none.dat 或 stream.x64.x-none-dat 文件中,具体取决于它是 32 位还是 64 位版本的 Office。The core files for the Office 2019 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 2019Install Office 2019 by using the Office Deployment Tool

获得 ODT 副本并创建 configuration.xml 文件(并根据需要将 Office 2019 安装文件下载到本地网络)后,即可安装 Office 2019。Once you have a copy of the ODT and have created your configuration.xml file (and downloaded the Office 2019 installation files to your local network, if necessary), you can install Office 2019. 若要执行此操作,请打开提升的命令提示符,转到保存 ODT 和 configuration.xml 文件的文件夹,然后键入以下命令: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 文件,请在命令中使用该名称。If you have saved the configuration.xml file with a different name, use that name in the command.

安装完成后,将返回到命令提示符,你可以打开已安装的 Office 2019 程序。Once the installation is complete, you are returned to a command prompt and you can go open Office 2019 programs you’ve installed.

使用 System Center Configuration Manager 安装 Office 2019Install Office 2019 by using System Center Configuration Manager

你还可以使用 System Center Configuration Manager 来部署 Office 2019 的批量许可版本。You can also use System Center Configuration Manager to deploy volume licensed versions of Office 2019. Configuration Manager(当前分支)有一个向导,可引导你完成整个过程并为你构建 configuration.xml 文件。Configuration Manager (Current Branch) has a wizard that steps you through the process and builds the configuration.xml file for you. 早期版本的 Configuration Manager 要求你下载 ODT 并创建自己的 configuration.xml 文件。Earlier versions of Configuration Manager require you to download the ODT and create your own configuration.xml file.

  • Configuration Manager(当前分支): 如果你使用的是 Configuration Manager(当前分支),则可以使用 Office 365 客户端安装向导来部署 Office 2019。Configuration Manager (Current Branch): If you’re using Configuration Manager (Current Branch), you can use the Office 365 Client Installation wizard to deploy Office 2019. 你必须至少使用版本 1710,但建议使用版本 1806。You must be using at least version 1710, but version 1806 is recommended. 你将在 Office 365 客户端安装向导中看到 Office 专业增强版 2019 的条目。You’ll see an entry for Office Professional Plus 2019 in the Office 365 Client Installation wizard. 在同一页面上,你还可以选择安装 Project 和 Visio。On that same page, you can also select to install Project and Visio.

  • System Center 2012 R2 Configuration Manager: 如果你使用的是 System Center 2012 R2 Configuration Manager,则步骤将不同并且手动操作更多。System Center 2012 R2 Configuration Manager: If you’re using System Center 2012 R2 Configuration Manager, the steps are different and much more manual. 首先,你需要从 Microsoft 下载中心获取 ODT 的副本,并为部署创建相应的 configuration.xml 文件。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. 然后,在 Configuration Manager 中,你需要创建应用程序和部署类型。Then, in Configuration Manager, you create an application and a deployment type. 之后,你需要分发应用程序,然后进行部署。After that you distribute the application and then deploy it.

Office 2019 的部署语言Deploy languages for Office 2019

你可以使用 ODT 和 configuration.xml 文件,以多种语言安装 Office 2019 的批量许可版本,包括 Project 和 Visio。You can use the ODT and the configuration.xml file to install volume licensed versions of Office 2019, including Project and Visio, in multiple languages. 有关更多详细信息,请参阅语言元素For more details, see Language element.

你还可以通过在 configuriation.xml 文件中将产品 ID 指定为“ProofingTools”并指定相应的语言 ID 来安装校对工具。You can also just install proofing tools by specifying the Product ID as "ProofingTools" in your configuriation.xml file along with the appropriate Language IDs. 校对工具包是 Office 2019 的新功能,比完整语言包小得多。Proofing tools packages, which are a new capability for Office 2019, are much smaller than full language packs. 如果用户使用多种语言处理文档,但不需要所有这些语言的 Office 产品 UI,请考虑部署校对工具。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. 可以在安装 Office 2019 的同时安装校对工具,也可以稍后再安装。The proofing tools can be installed at the same time you’re installing Office 2019, or you can install them later. 无论是否安装了给定语言的语言包,都可以安装它们。They can also be installed whether or not the language pack for a given language is installed.

部署 Office 2019 时,如果是从 Office 的 Windows Installer (MSI) 版本进行升级,则可以获得已安装语言资源(如语言包、语言界面包或校对工具)的即点即用版本。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 2019. 有关详细信息,请参阅升级到 Office 365 专业增强版时删除现有 MSI 版本的 OfficeFor more information, see Remove existing MSI versions of Office when upgrading to Office 365 ProPlus. 虽然本文介绍的是 Office 365 专业增强版,但大部分信息也适用于 Office 2019 的批量许可版本。Even though this article is about Office 365 ProPlus, most of the information also applies to volume licensed versions of Office 2019.