升级到 Office 365 专业增强版时删除 Office 的现有 MSI 版本Remove existing MSI versions of Office when upgrading to Office 365 ProPlus

我们建议你在安装 Office 365 专业增强版之前卸载 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 365 专业增强版时,你可以通过多种方法来使用 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 的要求Requirements for using RemoveMSI

下面是在 configuration.xml 文件中使用 RemoveMSI 元素的要求:The following are requirements for using the RemoveMSI element in your configuration.xml file:

  • 还必须使用 Office 部署工具的最新版本 16.0.10306.33602,该工具可从 Microsoft 下载中心下载。You must be using at least version 16.0.10306.33602 of the Office Deployment Tool, which you can download from Microsoft Download Center. 若要检查 Office 部署工具的版本,请右键单击 setup.exe,选择“属性”,然后选择“详细信息”。To check the version of the Office Deployment Tool, right-click on setup.exe, choose Properties, and then choose Details.
  • 你必须安装 Office 365 专业增强版 1803 或更高版本。You must be installing at least Version 1803 of Office 365 ProPlus. 版本 1803 或更高版本通过每月频道、半年频道(定向)和半年频道提供。Version 1808 is available in Monthly Channel, Semi-Annual Channel (Targeted), and Semi-Annual Channel.
  • 必须将 Office 365 专业增强版安装在至少运行 Windows 7 Service Pack 1 (SP1) 或更高版本的计算机上。You must be installing Office 365 ProPlus on a computer running at least Windows 7 Service Pack 1 (SP1) or above.

卸载所有 Office 产品Uninstall all Office products on the computer.

若要卸载计算机上已安装的所有版本的 Office(包括 Visio 和 Project),请向 configuration.xml 文件中添加 <RemoveMSI />。To uninstall all versions of Office, including Visio and Project, that are already installed on the computer, add <RemoveMSI /> to your configuration.xml file. 语言资源(例如语言包、语言界面包或校对工具)也将被删除。Language resources – for example, language packs, language interface packs, or proofing tools – will also be removed.

下面是一个 configuration.xml 文件示例,该文件用于通过 Internet 上的 Office 内容交付网络 (CDN) 安装英文版的 Office 365 专业增强版 64 位每月频道版本,以及卸载计算机上 office 的任何 Windows Installer (MSI) 版本。Here’s an example of a configuration.xml file that installs the 64-bit Monthly Channel version of Office 365 ProPlus in English from the Office Content Delivery Network (CDN) on the Internet and uninstalls any Windows Installer (MSI) versions of Office on the computer.

<Configuration>
  <Add OfficeClientEdition="64" Channel="Monthly" >
      <Product ID="O365ProPlusRetail">
         <Language ID="en-us" />
      </Product>
  </Add>
  <RemoveMSI />
</Configuration>

安装相同的语言资源Install the same language resources

如果计算机上已安装了语言资源(例如,语言包、语言界面包或校对工具),则可以在安装 Office 365 专业增强版时获得相同已安装语言资源的即点即用版本。If there are language resources – for example, language packs, language interface packs, or proofing tools – already installed on the computer, you can get Click-to-Run versions of the same language resources installed when you install Office 365 ProPlus. 为此,请向 configuration.xml 文件中添加 <Language ID="MatchPreviousMSI" />。To do this, add <Language ID="MatchPreviousMSI" /> to your configuration.xml file.

下面是一个 configuration.xml 文件示例,该文件用于通过 Internet 上的 Office 内容交付网络 (CDN) 安装英文版(以及计算机上的任何现有语言版本)的 Office 365 专业增强版 64 位半年频道(定向)版本,以及卸载计算机上 office 的任何 Windows Installer (MSI) 版本。Here’s an example of a configuration.xml file that installs the 64-bit Semi-Annual Channel (Targeted) version of Office 365 ProPlus in English, along with any existing languages on the computer, from the Office Content Delivery Network (CDN) on the Internet and uninstalls any Windows Installer (MSI) versions of Office on the computer.

<Configuration>
  <Add OfficeClientEdition="64" Channel="Targeted" >
      <Product ID="O365ProPlusRetail">
         <Language ID="en-us" />
         <Language ID="MatchPreviousMSI" />
      </Product>
  </Add>
  <RemoveMSI />
</Configuration>

下面是有关在 configuration.xml 文件中使用 MatchPreviousMSI 的一些其他详细信息。The following are some additional details about using MatchPreviousMSI in your configuration.xml file.

  • 必须包括 RemoveMSI 元素。You must include the RemoveMSI element.
  • 至少必须指定一个语言 ID。You must specify at least one language ID. 例如,en-us。For example, "en-us".
  • 该设置不是特定于产品的。The setting isn’t product specific. 举例来说,如果安装了法语版的 Office 专业增强版 2013 和德语版的 Visio 标准版 2013,您将同时获得获得法语和德语,以及你在安装 Office 365 专业增强版时指定的任何其他语言 ID。For example, if Office Professional Plus 2013 in French and Visio Standard 2013 in German are installed, you will get both French and German, along with any other language IDs you have specified, when you install Office 365 ProPlus.

重要

如果要从本地网络上的某个位置(例如共享文件夹)安装 Office 365 专业增强版,请确保已将所有可能的语言文件下载到该文件夹。If you’re installing Office 365 ProPlus from a location on your local network, such as a shared folder, make sure you’ve downloaded all the possible language files to that folder. 如果该文件夹中没有安装所需的任何语言,则安装将失败,并且将删除以前版本的 Office。If any of the languages needed to install aren't available in that folder, the installation will fail and the previous version of Office will have been removed. 为了避免这种情况,我们建议在 configuration.xml 文件中包括 AllowCdnFallback = "True"To avoid this situation, we recommend that you include AllowCdnFallback="True" in your configuration.xml file. 这会将 Internet 上的 Office 内容交付网络 (CDN) 用作安装语言文件的备份来源。This will use the Office Content Delivery Network (CDN) on the internet as a backup source from which to install the language files.

保留某些 Office 产品,并卸载所有其他 Office 产品Keep some Office products and uninstall all other Office products on the computer.

我们建议你在安装新版本之前卸载 Office 的任何旧版本(包括 Visio 和 Project)。We recommend that you uninstall any previous versions of Office, including Visio and Project, before installing the newer version. 但是,在某些情况下(例如进行应用程序兼容性测试时),可能需要在过渡到新版本时保留以前安装的版本一段有限的时间。But, in a few cases, such as for application compatibility testing, you might need to keep a previous version installed for a limited time while you transition to the new version.

若要保留特定的 Office 产品,请向 configuration.xml 文件中添加 IgnoreProduct 行,并指定其产品 ID。To keep a particular Office product, you add an IgnoreProduct line to your configuration.xml file and you specify its product ID.

下面是 Project 和 Visio 支持的 ID 的示例:The following are examples of supported IDs for Project and Visio:

  • PrjStdPrjStd
  • PrjProPrjPro
  • VisStdVisStd
  • VisProVisPro
  • PrjStdRPrjStdR
  • PrjProRPrjProR
  • VisStdRVisStdR
  • VisProRVisProR

备注

产品 ID 是在 Office 旧版本安装文件的 {product}.WW 文件夹内的 Setup.xml 文件中找到的安装程序 ID。The product ID is the Setup ID that is found in the Setup.xml file in the {product}.WW folder of the installation files for your previous version of Office. 例如,可在 ProPlus.WW 文件夹中找到 Office 专业增强版 2010 的 Setup.xml 文件。For example, the Setup.xml file for Office Professional Plus 2010 is found in the ProPlus.WW folder.

该 ID 不是特定于版本的。The ID isn't version specific. 将保留计算机上找到的所有版本。All versions found on the computer will be kept. 例如,如果你指定 VisPro,则将保留 Visio 专业版 2016 和 Visio 专业版 2013。For example, if you specify VisPro, both Visio Professional 2016 and Visio Professional 2013 will be kept. 还会保留这些版本的语言资源。Language resources for those versions are also kept. 例如,语言包、语言界面包或校对工具。For example, language packs, language interface packs, or proofing tools.

只支持完全删除产品。Only full product removals are supported. 举例来说,如果安装了 Office 专业增强版 2013,则无法在不卸载 Excel 的情况下卸载所有内容。For example, if you have Office Professional Plus 2013 installed, you can't uninstall everything except Excel. 必须保留或卸载整个产品。You either must keep or uninstall the entire product. 只有在 Excel 是以独立产品形式安装,而不是作为 Office 套件(比如 Office 专业增强版)的一部分安装的情况下,您才能保留以前安装的 Excel。You can only keep a previous installation of Excel if it was installed as a standalone product, not installed as part of an Office suite, like Office Professional Plus.

下面是一个 configuration.xml 文件示例,该文件用于通过 Internet 上的 Office 内容交付网络 (CDN) 安装英文版的 Office 365 专业增强版 64 位半年频道(定向)版本,以及卸载计算机上 office 的任何 Windows Installer (MSI) 版本( Visio 专业版除外)。Here’s an example of a configuration.xml file that installs the 64-bit Semi-Annual Channel (Targeted) version of Office 365 ProPlus in English from the Office Content Delivery Network (CDN) on the Internet and uninstalls any Windows Installer (MSI) versions of Office, except for Visio Professional, on the computer.

<Configuration>
  <Add OfficeClientEdition="64" Channel="Targeted">
      <Product ID="O365ProPlusRetail ">
         <Language ID="en-us" />
      </Product>
  </Add>
  <RemoveMSI>
    <IgnoreProduct ID="VisPro" />
  </RemoveMSI>
</Configuration>

有关使用 RemoveMSI 的其他信息Additional information about using RemoveMSI

下面是有关在 configuration.xml 文件中使用 RemoveMSI 元素的一些其他详细信息。The following are some additional details about using the RemoveMSI element in your configuration.xml file.

  • 如果要安装以下任何内容,也可使用这些设置:You can also use these settings if you’re installing any of the following:
    • Project Online 桌面客户端Project Online Desktop Client
    • Visio Online 计划 2,即以前名为 Visio Pro for Office 365 的 Visio 订阅版本。Visio Online Plan 2, which is the subscription version of Visio that was previously named Visio Pro for Office 365.
    • Office 365 商业版,即随附一些 Office 365 计划的 Office 版本(如企业高级版)。Office 365 Business, which is the version of Office that comes with some Office 365 plans, such as Business Premium.
    • Office 2019 的批量许可版本,例如 Office 专业增强版 2019。A volume licensed version of Office 2019, such as Office Professional Plus 2019.
  • 除非使用 IgnoreProduct,否则还将删除以下产品的安装:Installations of the following products will also be removed unless you use IgnoreProduct:
    • SharePoint Designer。SharePoint Designer 产品 ID 为 SharePointDesigner。The product ID is SharePointDesigner.
    • InfoPath。Infopath 产品 ID 为 InfoPath (适用于批量许可版本)或 InfoPathR (适用于零售版本)。The product ID is either InfoPath (for volume licensed versions) or InfoPathR (for retail versions).
    • Lync 2013 或更高版本。Outlook 2013 or later 无法使用 RemoveMSI 元素删除 Lync 2010。Lync 2010 can't be removed by using the RemoveMSI element.
    • 单独安装(而不是作为 Office 套件一部分安装)的 Office 产品。Office products that were installed separately and not as part of an Office suite. 例如,独立安装的 Access。For example, a standalone installation of Access.
    • Access 2010 运行时或更高版本。Access 2010 Runtime or later. 产品 ID 为 AccessRT。The product ID is AccessRT.
  • 无法使用 RemoveMSI 元素删除 Access 数据库引擎 2010 可再发行版或更高版本。Access Database Engine 2010 Redistributable or later can’t be removed by using the RemoveMSI element. 这是因为 Access 数据库引擎最常包含在与 Access 数据源交互的其他应用程序中,而卸载 Access 数据库引擎可能会影响这些应用程序的功能。This is because Access Database Engine is most commonly included as part of other applications which are interacting with Access data sources, and uninstalling Access Database Engine could impact functionality of these applications. 在删除 Access 数据库引擎前,请确保删除需要此组件的任何应用程序,或者不再需要这些应用程序。Before removing Access Database Engine, ensure that any applications which require this component are removed or no longer needed.
  • 将保留用户设置、首选项和文档,即使你卸载所有 Office 产品也是如此。User settings, preferences, and documents are retained, even if you’re uninstalling all Office products.
  • 安装 Office 365 专业增强版之前,必须先卸载某些先前版本的 Office、Visio 和 Project。Some previous versions of Office, Visio, and Project must be uninstalled before installing Office 365 ProPlus. 例如 Office 专业增强版 2016。For example, Office Professional Plus 2016. 如果未事先卸载,则 Office 365 专业增强版的安装将失败。If they aren’t uninstalled beforehand, the installation of Office 365 ProPlus will fail. 有关详细信息,请参阅在同一台计算机上安装不同版本的 Office、Visio 和 Project 的支持方案Supported scenarios for installing different versions of Office, Visio, and Project on the same computer
  • 需要重新启动才能完成 Office 的 Windows Installer (MSI) 版本的卸载,但不会强制重新启动。A reboot is required to finish uninstalling the Windows Installer (MSI) versions of Office, but the reboot isn’t enforced. 你可以在 Office 365 专业增强版安装完成后重新启动。You can reboot after the Office 365 ProPlus installation is finished.
  • RemoveMSI 不会卸载使用即点即用作为安装技术的以前版本的 Office(包括 Visio 和 Project)。RemoveMSI doesn’t uninstall prior versions of Office, including Visio and Project, that use Click-to-Run as the installation technology. 可以通过控制面板,或者通过运行 Office 部署工具并在 configuration.xml 文件中使用 Remove 元素来卸载这些版本的 Office。You can uninstall those versions of Office through Control Panel or by running the Office Deployment Tool and using the Remove element in your configuration.xml file.
  • 如果在 Windows 7 SP1 计算机上使用 RemoveMSI,即使删除了以前版本的 Office 及其所有其他快捷方式,用户创建的已固定快捷方式有时可能也会保留。If you're using RemoveMSI on a Windows 7 SP1 computer, pinned shortcuts that the user created might sometimes remain even though the previous version of Office and all of its other shortcuts have been removed. 若要删除已固定的快捷方式,只需单击该快捷方式,系统即会提示您将其删除。To remove the pinned shortcut, simply click on it and you'll be prompted to remove it. 或者,以创建已固定快捷方式的用户身份登录,然后运行 Office 部署工具升级到 Office 365 专业增强版。Or, log in as the user who created the pinned shortcut, and then run the Office Deployment Tool to upgrade to Office 365 ProPlus.