使用 Click-to-Run 部署 Office 時,Groove.exe 安裝的控制權Control Groove.exe installation when deploying Office using Click-to-Run

重要

支援 OneDrive 舊版 Business sync app ( # A0) 已于2021年1月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 伺服器中的檔案。Groove.exe will continue to work only for files in SharePoint Server.

從10月2017開始,我們已變更 OneDrive 舊版 Business sync app 如何針對使用 Click-to-Run 部署 Office 2013 或2016的企業客戶進行安裝。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.

  • 先前的 sync 應用程式 ( # A0) 已不再隨 Office 2016 Click-to-Run 一起安裝。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.

  • 未使用或執行時,會卸載舊的 sync 應用程式 ( # A0) ,除非: () Groove.exe 已設定為同步處理一或多個 SharePoint 或 SharePoint 的伺服器庫,或 (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 同步處理應用程式 ( # A0) 同步處理 OneDrive 及 SharePoint 檔案,這些變更不會影響您的組織。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 同步應用程式 ( # A0) 是 SharePoint Server 2019 客戶的建議選項。The new OneDrive sync app (OneDrive.exe) is the recommended option for SharePoint Server 2019 customers. 不過,舊版 SharePoint Server 仍會使用之前的 sync 應用程式 ( # A0) 。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.exeEnsure Groove.exe is no longer installed

如果您的組織為 Setup.exe 提供 Office 部署設定檔,請將此檔案新增至您的 config 檔案,以在您的部署中排除 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 2016 部署工具的設定選項For more info about configuration options, see Configuration options for the Office 2016 Deployment Tool.

若要覆寫預設行為,並確定已安裝 Business sync 應用程式的先前 OneDrive,您必須提供無法排除 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. 此外,您必須在所有需要安裝 Groove.exe 的電腦上設定 "PreventUninstall" 登錄機碼,以便處理常式不會卸載 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.exeUninstall Groove.exe when not in use

在 Office upgrade 上,安裝程式會在每一部電腦上執行,以偵測 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.exeGroove.exe is no longer installed by default 若未使用30天,則在下一個更新時會卸載Groove.exeGroove.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 有問必答Office 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
Oct. 2017-版本 1709 (組建 8528.2139) Oct. 2017 - Version 1709 (Build 8528.2139)
Oct. 2017-版本 1709 (組建 8528.2139) Oct. 2017 - Version 1709 (Build 8528.2139)
Office 2016 Click-to-Run-Semi-Annual Enterprise 通道 (預覽) 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 通道Office 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