部署 Office 2019 (针对 IT 专业人员)Deploy Office 2019 (for IT Pros)

若要配置和执行的批量许可版本的 Office 2019,包括项目和 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) the Office Customization Tool (OCT) 已不再使用。The Office Customization Tool (OCT) that you previously used for Windows Installer (MSI) is no longer used.

在 Office 内容交付网络 (CDN) 而不是 internet 上批量许可服务中心 (VLSC) 上可用的 Office 2019 安装文件。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

Office 部署工具是从 Microsoft 下载中心免费下载。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 的示例,请参阅示例 configuration.xml 文件使用 Office 部署工具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 文件提供 ODT 下载或安装 Office 2019 时使用的设置。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 文件下载并安装英语和不同的 configuration.xml 文件中法语安装 Visio Professional 2019 的 32 位版本的 Office Professional Plus 2019 的 64 位版本。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 的界面用于进行选择,并创建您的 configuration.xml 文件将与 Office 部署工具一起使用。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. 有关详细信息,请参阅Overview of the Office Customization ToolFor more information, see Overview of the Office Customization Tool. 请注意,这是比 Office 自定义工具,您可能已用于在过去安装批量许可版本的 Office 安装技术用作 Windows Installer (MSI) 的不同。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.

有一系列中配置自定义 Office 2019 下载或安装的 configuration.xml 文件的设置。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 安装文件的位置及其位置来安装 Office,从Where 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.

建议您直接从 Office CDN,安装 Office,如果需要 internet 连接和网络带宽实现这一点。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 Professional Plus 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.

您无需使用 PIDKEY,如果您正在激活 Office 2019 密钥管理服务 (KMS)。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-我们) 和法语 (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.

有关详细信息,请参阅Deploy 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.

有关详细信息,请参阅Deploy 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.

我们建议 64 位 4 gb 或更多内存的计算机上。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.

有关详细信息,请参阅Office 的 64 位或 32 位版本之间的选择For 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 Professional Plus 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.
是否删除以前的 Windows Installer (MSI) 版本的 Office 安装 Office 2019 之前Whether to remove previous Windows Installer (MSI) versions of Office before installing Office 2019 RemoveMSIRemoveMSI 这被建议。This is recommended.

有关详细信息,请参阅删除现有版本的 Office 之前安装 Office 2019For 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.

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

下面是示例 configuration.xml 文件可用于下载或以使用您的本地网络上的共享的文件夹的英文安装 64 位版本的 Office Professional Plus 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,以前的 Windows Installer (MSI) 版本的 Office 安装过程的一部分删除。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 之前删除现有版本的 OfficeRemove existing versions of Office before installing Office 2019

我们建议您卸载任何早期版本的 Office,才能安装批量许可版本的 Office 2019。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 可用于卸载 2010年,2013,或 2016年版本的 Office、 Visio 或 Project 的安装使用 Windows Installer (MSI)。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 ProPlus,大部分信息将也适用于 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.

它将看起来像 nothing 的最新动态,但下载的最新动态在后台。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"的文件夹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. 您看到的文件和文件的名称取决于是否要下载 Office 的 32 位或 64 位版本和语言下载。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.
  • 所有批量许可的版本的 Office 2019 – 例如 Office Professional Plus 2019、 Visio Professional 2019 和 Project Professional 2019 – 都包含在 configuration.xml 文件中指定无论哪些产品在同一下载。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-无-揭示数据文件,具体取决于如果它是 Office 32 位或 64 位版本。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.xml 文件。Configuration Manager (Current Branch) has a wizard that steps you through the process and builds the configuration.xml file for you. 早期版本的配置管理器中,需要下载 ODT 并创建您自己的 configuration.xml 文件。Earlier versions of Configuration Manager require you to download the ODT and create your own configuration.xml file.

  • 配置管理器 (当前分支): 如果您正在使用 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 Professional plus 2019 Office 365 客户端安装向导中,您将看到一个条目。You’ll see an entry for Office Professional Plus 2019 in the Office 365 Client Installation wizard. 在该同一页上,您还可以选择安装项目和 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. 然后,在配置管理器中,创建应用程序和部署类型。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.

只可以校对工具安装的指定产品 ID 为"ProofingTools"以及相应的语言 Id configuriation.xml 文件中。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 产品用户界面中所有这些语言。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.

如果您正在升级 Windows Installer (MSI) 版本的 Office 中,您可以获取单击即点即用版本的相同语言的资源 – 例如,语言包、 语言界面包或校对工具 – 部署 Office 2019 时安装。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. 有关详细信息,请参阅删除现有的 MSI 版本的 Office 升级到 Office 365 ProPlus 时For more information, see Remove existing MSI versions of Office when upgrading to Office 365 ProPlus. 虽然本文是有关 Office 365 ProPlus,大部分信息将也适用于 Office 2019 批量许可版本。Even though this article is about Office 365 ProPlus, most of the information also applies to volume licensed versions of Office 2019.