使用Groove.exe运行部署 Office 时控制安装过程Control Groove.exe installation when deploying Office using Click-to-Run

重要

对之前 OneDrive for Business 同步应用的支持已于 2021 年 1 (Groove.exe) 11 日结束。Support for the previous OneDrive for Business sync app (Groove.exe) ended on January 11, 2021. 自 2021 年 2 月 1 日起,用户可以使用 Groove.exe 在 Microsoft 365 中同步 OneDrive 或 SharePoint 文件。As of February 1, 2021, users can longer sync OneDrive or SharePoint files in Microsoft 365 by using Groove.exe. Groove.exe仅适用于 SharePoint Server 中的文件。Groove.exe will continue to work only for files in SharePoint Server.

从 2017 年 10 月开始,我们更改了使用即点即用部署 Office 2013 或 2016 的企业客户的以前 OneDrive for Business 同步应用的安装方式。Starting in October 2017, we changed how the previous OneDrive for Business sync app installs for enterprise customers who deploy Office 2013 or 2016 by using Click-to-Run.

  • 默认情况下, (Groove.exe) Office 2016 即点即用不再安装以前的同步应用。The previous sync app (Groove.exe) is no longer installed by default with Office 2016 Click-to-Run. 如果组织提供了 Office 部署配置文件Setup.exe,则需要更新文件以从安装Groove.exe文件。If your organization provides an Office deployment configuration file to Setup.exe, you need to update your file to exclude Groove.exe from the install.

  • 不使用或运行时,将卸载以前的同步应用程序 (Groove.exe) ,除非: (a) Groove.exe 已配置为同步一个或多个 SharePoint 或 SharePoint Server 库或 (b) 计算机上存在"PreventUninstall"注册表项。When not in use or running, the previous sync app (Groove.exe) is uninstalled, unless: (a) Groove.exe is already configured to sync one or more SharePoint or SharePoint Server libraries or (b) a "PreventUninstall" registry key is present on the computer.

如果你已在使用新的 OneDrive 同步应用来同步 OneDrive 和 SharePoint 文件, (OneDrive.exe) 这些更改不会影响你的组织。These changes don't affect your organization if you're already using the new OneDrive sync app (OneDrive.exe) to sync OneDrive and SharePoint files. 如果使用传统的基于 Windows Installer 的 MSI (方法部署 Office,这些更改) 组织。These changes also don't affect your organization if you deploy Office using the traditional Windows Installer-based (MSI) method.

备注

新 OneDrive 同步应用 (OneDrive.exe) 推荐用于 SharePoint Server 2019 客户。The new OneDrive sync app (OneDrive.exe) is the recommended option for SharePoint Server 2019 customers. 但是,早期版本的 SharePoint Server (Groove.exe) 仍使用和支持以前的同步应用程序。However, the previous sync app (Groove.exe) is still used and supported for earlier versions of SharePoint Server. 我使用的是哪个版本的 OneDrive?Which version of OneDrive am I using?

确保Groove.exe不再安装Ensure Groove.exe is no longer installed

如果你的组织提供了 Office 部署配置文件以Setup.exe,请将其添加到你的配置文件以在部署中排除 Groove:If your organization provides an Office deployment configuration file to Setup.exe, add this to your config file to exclude Groove in your deployment:

<Product ID="O365ProPlusRetail" >
    <Language ID="en-us" />
    <ExcludeApp ID="Groove" />
</Product>

有关配置选项的详细信息,请参阅 Office 部署工具的配置选项For more info about configuration options, see Configuration options for the Office Deployment Tool.

若要替代默认行为并确保安装并保留以前的 OneDrive for Business 同步应用,必须提供不配置文件的 Groove.exe。To override the default behavior and make sure the previous OneDrive for Business sync app installs and stays installed, you must provide a config file that doesn't exclude Groove.exe. 此外,必须在需要安装"PreventUninstall"注册表项的所有计算机上Groove.exe,以便该过程不会卸载Groove.exe。Also, you must set the "PreventUninstall" registry key on all computers where you need Groove.exe installed, so that the process doesn't uninstall Groove.exe.

卸载Groove.exe使用时安装Uninstall Groove.exe when not in use

在 Office 升级时,安装程序在每一计算机上运行,以检测Groove.exe当前是否使用了"PreventUninstall"注册表项。On Office upgrade, the installer runs on each computer to detect whether Groove.exe is currently in use or the "PreventUninstall" registry key is set. 如果Groove.exe注册表项或注册表项已设置,Groove.exe留在位。If either Groove.exe is in use or the registry key is set, Groove.exe is left in place. 否则,Groove.exe,并且未设置注册表项,Groove.exe自动卸载该计算机。Otherwise, if Groove.exe isn't in use and the registry key isn't set, Groove.exe gets uninstalled automatically on that computer.

阻止卸载 (注册表项) Prevent uninstallation (registry key)

[HKLM\SOFTWARE\Microsoft\Office\Groove]"PreventUninstall"=dword:00000001[HKLM\SOFTWARE\Microsoft\Office\Groove] "PreventUninstall"=dword:00000001

日程表Timeline

下表显示有关哪些 Office 安装受这些更改影响以及何时受到影响的更多详细信息。The following table shows more detail about which Office installations were affected by these changes and when.

Office 版本Office version Groove.exe,系统不再安装Groove.exe is no longer installed by default Groove.exe 30 天内未使用,则下次更新时卸载该更新Groove.exe is uninstalled on next update if not in use for 30 days
MSI (所有版本) MSI (all versions)
不适用Not applicable
不适用Not applicable
Office 2013 Click-to-RunOffice 2013 Click-to-Run
不适用Not applicable
不适用Not applicable
Office 2016 Click-to-Run - Office InsiderOffice 2016 Click-to-Run - Office Insider
2017 年 9 月 - 版本 1710 (内部版本 8530.1000) Sept. 2017 - Version 1710 (Build 8530.1000)
2017 年 9 月 - 版本 1710 (内部版本 8530.1000) Sept. 2017 - Version 1710 (Build 8530.1000)
Office 2016 Click-to-Run - 每月频道Office 2016 Click-to-Run - Monthly Channel
2017 年 10 月 - 版本 1709 (内部版本 8528.2139) Oct. 2017 - Version 1709 (Build 8528.2139)
2017 年 10 月 - 版本 1709 (内部版本 8528.2139) Oct. 2017 - Version 1709 (Build 8528.2139)
Office 2016 Click-to-Run - Semi-Annual Enterprise Channel (Preview) Office 2016 Click-to-Run - Semi-Annual Enterprise Channel (Preview)
2018 年 9 月 - 版本 1808 (内部版本 10730.20102) Sept. 2018 - Version 1808 (Build 10730.20102)
2018 年 9 月 - 版本 1808 (内部版本 10730.20102) Sept. 2018 - Version 1808 (Build 10730.20102)
Office 2016 Click-to-Run - Semi-Annual Enterprise ChannelOffice 2016 Click-to-Run - Semi-Annual Enterprise Channel
2019 年 1 月 - 版本 1808 (内部版本 10730.20264) Jan. 2019 - Version 1808 (Build 10730.20264)
2019 年 1 月 - 版本 1808 (内部版本 10730.20264) Jan. 2019 - Version 1808 (Build 10730.20264)

有关 Office 频道的信息,请参阅 Microsoft 365企业应用版更新频道概述。For more info about Office channels, see Overview of update channels for Microsoft 365 Apps for enterprise.

详细了解 SharePoint 网站的"同步"按钮更新Learn more about the Sync button update on SharePoint sites