Office 部署工具的設定選項Configuration options for the Office Deployment Tool

有了 Office 部署工具 (ODT),您就能將 Microsoft 365 Apps 下載並部署到用戶端電腦。ODT 讓您對 Office 安裝有更多的控制權︰您可以定義要安裝哪些產品及語言、這些產品的更新方式,以及是否對使用者顯示安裝體驗。本文涵蓋該工具中所有可用的選項。若要了解如何使用該工具,請參閱 Office 部署工具概觀With the Office Deployment Tool (ODT), you can download and deploy Microsoft 365 Apps to your client computers. The ODT gives you more control over an Office installation: you can define which products and languages are installed, how those products should be updated, and whether or not to display the install experience to your users. This article covers all the available options in the tool. To learn how to use the tool itself, see Overview of the Office Deployment Tool.

注意

最佳作法: 這篇文章中的選項說明設定檔中的 XML 元素和屬性。您可以繼續在文字編輯器建立設定檔,但是我們建議您改用 Office 自訂工具。透過 Office 自訂工具,您可以在 Web 介面中輕鬆建立和修改設定檔。如需詳細資訊,請參閱 Office 自訂工具概觀Best practice: The options in this article show the XML elements and attributes in the configuration file. You can continue to create the configuration file in a text editor, but we recommend using the Office Customization Tool instead. With the Office Customization Tool, you can easily create and modify configuration files in a web-based interface. For more information, see Overview of the Office Customization Tool.

標準設定檔範例Example of a standard configuration file

ODT 包含兩個檔案︰setup.exe 及 configuration.xml。若要搭配該工具來作業,您必須編輯設定檔來定義您要的選項,然後從命令列執行 setup.exe。例如,您可以編輯設定檔來下載 32 位元英文版的 Office,或是在自動接受 EULA 但不安裝 Publisher 的情況下安裝 32 位元英文版的 Office。The ODT consists of two files: setup.exe and configuration.xml. To work with the tool, you edit the configuration file to define what options you want, and then run setup.exe from the command line. For example, you can edit the configuration file to download the 32-bit English edition of Office, or you can edit the file to install the 32-bit English edition of Office with the EULA automatically accepted and without Publisher.

建立設定檔時,建議從範例檔案開始,並以環境中適當的選項來更新它。您可以先複製下方範例並貼到文字檔中,以您所選擇的名稱儲存。使用該檔案來修改 XML 和屬性,並使用本文中的其他部分來深入了解有關每個元素和屬性的詳細資料。When creating the configuration file, we recommend starting with an example file and updating it with the appropriate options for your environment. You can start by copying and pasting the example below into a text file and saving it with a name of your choosing. Use the file to modify the XML elements and attributes and use the rest of this article to learn more details about each of the elements and attributes.

這個設定檔包含最常使用的元素和屬性,可以在用戶端電腦上用來下載及安裝 OfficeThis configuration file includes the most-commonly used elements and attributes, and can be used to download and install Office on a client computer

<Configuration>
  <Add SourcePath="\\Server\Share" 
       OfficeClientEdition="32"
       Channel="SemiAnnual" >
    <Product ID="O365ProPlusRetail">
      <Language ID="en-us" />
      <Language ID="ja-jp" />
    </Product>
    <Product ID="VisioProRetail">
      <Language ID="en-us" />
      <Language ID="ja-jp" />
    </Product>
  </Add>
  <Updates Enabled="TRUE" 
           UpdatePath="\\Server\Share" />
   <Display Level="None" AcceptEULA="TRUE" />  
</Configuration>
Value 描述Description
Add SourcePath="\\Server\Share"Add SourcePath="\\Server\Share"
Office 會下載到您網路上的 "\\server\share",並使用該位置的安裝檔案來部署。Office will be downloaded to "\\server\share" on your network and deployed using installation files at that location.
Add OfficeClientEdition="32"Add OfficeClientEdition="32"
下載並安裝 Office 32 位元版本Downloads and installs the 32-bit edition of Office
新增通道=”SemiAnnual”Add Channel="SemiAnnual"
將以半年企業通道安裝 Office。Office will be installed using Semi-Annual Enterprise Channel.
Product ID="O365ProPlusRetail"Product ID="O365ProPlusRetail"
下載並安裝 Microsoft 365 Apps 企業版。Downloads and installs Microsoft 365 Apps for enterprise.
語言識別碼 ="en-us"Language ID="en-us"
語言識別碼 ="ja-jp"Language ID="ja-jp"
下載並安裝 Office 英文和日文版本。Downloads and installs English and Japanese versions of Office.
Updates Enabled="TRUE"Updates Enabled="TRUE"
Office 會檢查更新。Office will check for updates.
Updates UpdatePath="\\Server\Share"Updates UpdatePath="\\Server\Share"
Office 會在您網路上的 "\server\share" 檢查更新。Office checks for updates at "\server\share" on your network.
Display Level="None" AcceptEULA="TRUE"Display Level="None" AcceptEULA="TRUE"
安裝 Office 時不會顯示使用者介面。When installing Office, no user interface is displayed.

注意

不再支援將記錄元素作為 Office 部署工具的設定選項。The Logging element is no longer supported as a configuration option for the Office Deployment Tool. 可在% temp% 資料夾中找到記錄檔。Log files can be found in the %temp% folder.

Add 元素Add element

定義要下載或安裝的產品和語言Defines the products and languages to download or install

範例Example

<Add SourcePath="\\Server\Share" 
     OfficeClientEdition="32"
     Channel="SemiAnnual" 
     Version="16.0.8201.2193" >
  <Product ID="O365ProPlusRetail">
    <Language ID="en-us" />
    <Language ID="ja-jp" />
  </Product>
  <Product ID="VisioProRetail">
      <Language ID="en-us" />
      <Language ID="ja-jp" />
  </Product>
</Add>  

SourcePath 屬性 (Add 元素的一部分)SourcePath attribute (part of Add element)

選用。Optional.

可用來定義 Office 安裝檔案的位置。若 ODT 是以下載模式執行,會定義儲存檔案的位置。若不包含,ODT 會在工具所在的資料夾中尋找安裝檔案,然後再使用 Office 內容傳遞網路 (CDN)。若不包含且 ODT 是以下載模式執行,則 Office 安裝檔案會下載到工具所在的資料夾中。Defines the location of the Office installation files. If the ODT is run in download mode, defines where to save the files. If not included, the ODT will look for installation files in the same folder as the tool, and then use the Office Content Delivery Network (CDN). If not included and the ODT is run in download mode, the Office installation files are downloaded to the same folder as the tool.

當您將 Office 下載至已包含該版本 Office 的資料夾時,ODT 會下載遺失的檔案來保留您的網路頻寬。例如,如果您使用 ODT 將英文和德文版的 Office 下載至已包含英文版 Office 的資料夾,則只會下載德文語言套件。When you download Office to a folder that already contains that version of Office, the ODT will conserve your network bandwidth by downloading only the missing files. For example, if you use the ODT to download Office in English and German to a folder that already contains Office in English, only the German language pack will be downloaded.

範例值:Example values:

  • SourcePath="\\server\share"SourcePath="\\server\share"
  • SourcePath="c:\preload\office"SourcePath="c:\preload\office"

Version 屬性 (Add 元素的一部分)Version attribute (part of Add element)

選用。如果未指定,則預設為最新可用的版本。Optional. Defaults to the latest version available if not specified.

當您使用 Version 屬性時,建議您同時包括 Channel 屬性。如果您未包含 Channel 屬性,系統會使用的預設通道,這可能不符合指定的版本。When you use the Version attribute, we recommend including the Channel attribute as well. If you don't include the Channel attribute, the default channel will be used, which might not match the specified version.

如果裝置上已安裝 Microsoft 365 Apps,則可以使用 Version="MatchInstalled" 來安裝相同版本的 Office,即使有較新版本可用。此設定可讓您在未將 Office 更新為較新版本的情況下,輕鬆新增語言套件或 Visio 和 Project。If Microsoft 365 Apps is already installed on a device, you can use Version="MatchInstalled" to install the same version of Office, even if a newer version is available. This setting can make it easier to add language packs or Visio and Project without updating Office to a newer version.

範例值:Example values:

  • Version="16.0.8201.2193"Version="16.0.8201.2193"
  • Version="MatchInstalled"Version="MatchInstalled"

OfficeClientEdition 屬性 (Add 元素的一部分)OfficeClientEdition attribute (part of Add element)

選用。Optional.

定義是否要下載或安裝 32 位元或 64 位元版本的 Microsoft 365 Apps。如果未在裝置上安裝 Office,且未指定 OfficeClientEdition,ODT 會預設為 64 位版本,除非裝置執行 32 位版本的 Windows 或 RAM 少於 4 GB。。如果已安裝 Office 但未指定 OfficeClientEdition,則 ODT 將比對現有的 Office 安裝架構。如果已安裝 Office 且已指定 OfficeClientEdition,則它必須符合已安裝的架構。如果未符合,安裝會因為不支援混合式架構而失敗。Defines whether the 32-bit or 64-bit edition of Microsoft 365 Apps is downloaded or installed. If Office is not installed on the device and OfficeClientEdition is not specified, the ODT will default to the 64-bit edition, unless the device is running a 32-bit edition of Windows or has less than 4 GB RAM. If Office is installed and OfficeClientEdition not specified, the ODT will match the architecture of the existing installation of Office. If Office is installed and OfficeClientEdition is specified, then it must match the already installed architecture. If it doesn't, the installation will fail, since mixed architectures are not supported.

允許的值:Allowed values:

  • OfficeClientEdition="64"OfficeClientEdition="64"
  • OfficeClientEdition="32"OfficeClientEdition="32"

Channel 屬性 (Add 元素的一部分)Channel attribute (part of Add element)

選用。Optional.

定義用於安裝 Office 的通道。如果裝置上未安裝 Office,則代表通道屬性的預設設定為 目前。如果已在裝置上安裝 Office,但未指定 Channel 屬性,則 ODT 將比對現有安裝的通道。Defines which channel to use for installing Office. If Office is not installed on the device, the default setting for the Channel attribute is Current. If Office is installed on the device and the channel attribute is not specified, the ODT will match the channel of the existing installation.

無論在更新元素或透過群組原則設定中是否有選擇性地指定更新通道,此值都會決定將安裝的通道。如果有不同更新通道的這項設定,則會在下一次更新週期期間,在安裝之後執行通道切換。如需詳細資訊,請參閱變更 Microsoft 365 Apps 更新通道This value determines the channel to be installed, regardless of an optionally specified update channel in the Updates element or via Group Policy Setting. If there is such setting with a different update channel, the channel switch is performed after the installation during the next update cycle. For more information, see Change the Microsoft 365 Apps update channel.

如需更新通道的詳細資訊,請參閱 Microsoft 365 Apps 更新通道概觀For more information about update channels, see Overview of update channels for Microsoft 365 Apps.

允許的值:Allowed values:

  • 通道=”BetaChannel”Channel="BetaChannel"
  • 通道=”CurrentPreview”Channel="CurrentPreview"
  • 通道=”Current”Channel="Current"
  • 通道="MonthlyEnterprise"Channel="MonthlyEnterprise"
  • 通道=”SemiAnnualPreview”Channel="SemiAnnualPreview"
  • 通道="SemiAnnual"Channel="SemiAnnual"

注意

  • 若要使用這些屬性值,您必須使用 Office 部署工具的最低版本16.0.12827.20268,此版本已于2020年6月9日發行。To use these attribute values, you need to be using at least version 16.0.12827.20268 of the Office Deployment Tool, which was released on Tuesday June 9, 2020.
  • 每個更新通道先前的允許值仍可使用,這表示您不需要更新舊的設定 XML 檔案。Previous allowed values for each update channel can still be used, which means you don't have to update your older configuration XML files.
  • Beta 版通道 (有時稱為「測試人員 - 快」) *非支援組建 _,因此只能在測試環境中由一小群使用者 (例如 IT 人員或應用程式開發人員) 使用。Beta Channel (sometimes referred to as Insider Fast) is *not _ a supported build so should only be used in test environments and by a small group of select users, such as IT staff or application developers.

如果您正在部署 Office 專業增強版 2019,也就是 Office 的大量授權版本,那麼您需要使用不同的更新通道:PerpetualVL2019。如需詳細資訊,請參閱 Office 2019 的更新通道If you're deploying Office Professional Plus 2019, which is a volume licensed version of Office, there is a different update channel you need to use: PerpetualVL2019. For more information, see Update channel for Office 2019.

DownloadPath 屬性 (Add 元素的一部分)DownloadPath attribute (part of Add element)

選用。如果未指定,則預設為 CDN。Optional. Defaults to the CDN if not specified.

定義在下載模式中執行 ODT 時,安裝檔案從何處下載。最常用於將特定的 Office 語言和產品從您網路上的中央位置發佈至其他位置。請注意,使用 DownloadPath 時,必須指定版本,如範例中所示。Defines where the installation files are downloaded from when running ODT in download mode. Most commonly used to distribute specific languages and products for Office from a central location on your network to another location. Note that you must specify a version when using DownloadPath, as shown in the example.

範例值:Example values:

  • DownloadPath="\\servera\share"DownloadPath="\\servera\share"

範例Example

<Configuration> 
  <Add SourcePath="\\serverb\share" OfficeClientEdition="64" Version="16.0.6741.2056" DownloadPath="\\servera\share"> 
    <Product ID="O365ProPlusRetail" > 
      <Language ID="en-us" />      
    </Product> 
  </Add> 
</Configuration>

AllowCdnFallback 屬性 (Add 元素的一部分)AllowCdnFallback attribute (part of Add element)

選用。如果未指定,則預設為 False。Optional. Defaults to False if not specified.

若要使用 Office CDN 作為語言套件的備份來源,請在設定檔中包含 "AllowCdnFallback" 屬性,如範例中所示。To use the Office CDN as a backup source for language packs, include the "AllowCdnFallback" attribute in the configuration file, as shown in the example.

在安裝語言時,ODT 會先尋找 SourcePath 屬性中指定位置的來源檔案。如果語言套件在該位置無法使用,_並 「且」* AllowCdnFallback 設定會設為 True,則 ODT 會使用 Office CDN 中的來源檔案。When installing languages, the ODT looks first for source files in the location specified in the SourcePath attribute. If the language pack isn't available at that location _ and* the AllowCdnFallback setting is set to True, then the ODT will use source files from the Office CDN.

允許的值:Allowed values:

  • AllowCdnFallback="True"AllowCdnFallback="True"
  • AllowCdnFallback="False"AllowCdnFallback="False"

範例Example

<Add SourcePath="\\Server\Share" 
     OfficeClientEdition="32"
     Channel="SemiAnnual" 
     AllowCdnFallback="True">
  <Product ID="O365ProPlusRetail">
      <Language ID="en-us" />
      <Language ID="ja-jp" />
  </Product>
</Add>  

MigrateArch 屬性 (Add 元素的一部分)MigrateArch attribute (part of Add element)

選用。如果未指定,則預設為 False。Optional. Defaults to False if not specified.

如果設為 TRUE,則您的現有 Microsoft 365 Apps 安裝將會變更為 OfficeClientEdition 屬性中指定的架構 (有時候稱為位元)。例如,您可以使用這個屬性將 32 位元 Microsoft 365 Apps 安裝變更為 64 位元安裝。If set to TRUE, then your existing installation of Microsoft 365 Apps will be changed to the architecture (sometimes referred to as the bitness) that is specified in the OfficeClientEdition attribute. For example, you can use this to change a 32-bit installation of Microsoft 365 Apps to a 64-bit installation.

如需使用 MigrateArch 的詳細資訊,請參閱 將 Microsoft 365 Apps 安裝從 32 位元變更為 64 位元For more information about using MigrateArch, see Change a Microsoft 365 Apps installation from 32-bit to 64-bit.

OfficeMgmtCOM 屬性 (Add 元素的一部分)OfficeMgmtCOM attribute (part of Add element)

選用。如果未指定,則預設為 False。Optional. Defaults to False if not specified.

若要讓 Configuration Manager 能夠管理 Microsoft 365 Apps 更新,必須在安裝 Office 的電腦上啟用 Office COM 物件。如果設為 TRUE,則 Office COM 物件會從 Configuration Manager 採用命令來下載及安裝用戶端更新。啟用 Office COM 物件時,Microsoft 365 Apps [帳戶] 頁面上的 [立即更新] 選項會針對用戶端裝置停用。For Configuration Manager to be able to manage Microsoft 365 Apps updates, an Office COM object needs to be enabled on the computer where Office is installed. If set to TRUE, the Office COM object takes commands from Configuration Manager to download and install client updates. When the Office COM object is enabled, the Update Now option on the Account page for Microsoft 365 Apps is automatically disabled for client devices.

如需詳細資訊,請參閱使用 Microsoft Endpoint Configuration Manager 管理 Microsoft 365 Apps 的更新For more information, see Manage updates to Microsoft 365 Apps with Microsoft Endpoint Configuration Manager.

允許的值:Allowed values:

  • OfficeMgmtCOM="True"OfficeMgmtCOM="True"
  • OfficeMgmtCOM="False"OfficeMgmtCOM="False"

範例Example

<Configuration>
  <Add OfficeClientEdition="64" Channel="Current" OfficeMgmtCOM="True" >
    <Product ID="O365ProPlusRetail">
      <Language ID="en-us" />
    </Product>
  </Add>  
  <Updates Enabled="True"  /> 
</Configuration>

Product 元素Product element

定義要下載或安裝的產品。如果您定義了多個產品,產品會依照設定檔中的順序安裝。第一個產品會決定 [Microsoft Office 初次執行體驗] 的內容。Defines which products to download or install. If you define multiple products, the products are installed in the order in the configuration file. The first product determines the context for the Microsoft Office First Run Experience.

您也可以使用 Product 元素,來為現有的 Microsoft 365 Apps 安裝新增語言套件。如需詳細資訊,包括範例設定檔,請參閱將語言部署至 Microsoft 365 Apps 的現有安裝You can also use the Product element to add language packs to existing installations of Microsoft 365 Apps. For more information, including an example configuration file, see Deploy languages to existing installations of Microsoft 365 Apps.

範例Example

<Product ID="O365ProPlusRetail">
  <Language ID="en-us" />
  <Language ID="ja-jp" />
</Product>
<Product ID="VisioProRetail">
  <Language ID="en-us" />
  <Language ID="ja-jp" />
</Product>

ID 屬性 (Product 元素的一部分)ID attribute (part of Product element)

必要。Required.

定義要下載或安裝的產品識別碼。Defines the ID of the product to download or install.

範例值:Example values:

  • ID="O365ProPlusRetail"ID="O365ProPlusRetail"
  • ID="VisioProRetail"ID="VisioProRetail"
  • ID="ProjectProRetail"ID="ProjectProRetail"

如需所有支援的產品識別碼清單,請參閱隨選即用的 Office 部署工具所支援的產品識別碼For a list of all supported product IDs, see Product IDs that are supported by the Office Deployment Tool for Click-to-Run

MSICondition 屬性 (Product 元素的一部分)MSICondition attribute (part of Product element)

選用。Optional.

可讓您根據裝置上是否已安裝特定的 MSI 型 Office 產品,控制 Office 產品的安裝 (依識別碼屬性指定)。例如,如果裝置上已安裝 MSI 型版本的 Project 專業版,則安裝 Project Online 電腦版用戶端。Allows you to control the installation of an Office product, as specified by the ID attribute, based on whether a particular MSI-based Office product is already installed on the device. For example, if an MSI-based version of Project Professional is already installed on the device, then install Project Online Desktop Client.

您可以指定由 Windows Installer (MSI) 安裝的任何 Office 產品,但 MSICondition 最常用於 Project 或 Visio 安裝。您為 MSICondition 屬性指定的值可以是大量授權或零售版本的產品,只要該產品的版本是使用 MSI 安裝即可。You can specify any Office product that was installed by Windows Installer (MSI), but MSICondition is most commonly used for Project or Visio installations. The value that you specify for the MSICondition attribute can be either a volume licensed or a retail version of the product, as long as that version of the product was installed by using MSI.

MSICondition 將可辨識您所指定 Office 產品的 2007、2010、2013 和 2016 版本。但是,您無法指定特定的版本。例如,您不能讓 MSICondition 特別尋找 Visio 標準版 2013。MSICondition 將尋找 Visio 標準版的所有 MSI 型安裝,包括 Visio 標準版 2007、Visio 標準版 2010、Visio 標準版 2013 和 Visio 標準版 2016。MSICondition will recognize 2007, 2010, 2013, and 2016 versions of the Office product that you specify. But, you can't specify a particular version. For example, you can't have MSICondition look specifically for Visio Standard 2013. MSICondition will look for all MSI-based installations of Visio Standard, including Visio Standard 2007, Visio Standard 2010, Visio Standard 2013, and Visio Standard 2016.

您為 MSICondition 屬性指定的值,就是可在您現有的 Office 產品版本安裝檔案的 {product}.WW 資料夾的 Setup.xml 檔案中找到的設定識別碼。例如,Visio 專業版 2016 的 Setup.xml 檔案可在 VisPro.WW 資料夾中找到。您可以指定 Office 產品的多個類型,並以逗號分隔。例如,您可以指定 "PrjStd,PrjStdR,PrjPro,PrjProR" 來尋找 Project 標準版或 Project 專業版的安裝,可以是大量授權或零售版本。The value that you specify for the MSICondition attribute is the Setup ID that is found in the Setup.xml file in the {product}.WW folder of the installation files for your existing version of the Office product. For example, the Setup.xml file for Visio Professional 2016 is found in the VisPro.WW folder. You can specify multiple types of an Office product, separated by a comma. For example, you can specify "PrjStd,PrjStdR,PrjPro,PrjProR" to look for installations of Project Standard or Project Professional, either volume licensed or retail.

注意

  • 建議您在安裝 XML 檔案中指定的產品時,將現有的 MSI 型 Office 產品移除。若要移除現有的 MSI 型產品,請使用 RemoveMSI 元素We recommend that you remove the existing MSI-based Office products as part of installing the products specified in your XML file. To remove existing MSI-based products, use the RemoveMSI element.

MSICondition 屬性的範例Example of MSICondition attribute

在下列範例中,只有當裝置上已安裝 MSI 型版本的 Project 標準版時,才會在裝置上安裝 Project Online 電腦版用戶端。此外,Project 標準版將隨著 Project Online 電腦版用戶端的安裝從裝置中移除。In the following example, Project Online Desktop Client will be installed on the device only if an MSI-based version of Project Standard is already installed on the device. Also, Project Standard will be removed from the device as part of the installation of Project Online Desktop Client.

<Configuration>
  <Add >
      <Product ID="ProjectProRetail" MSICondition="PrjStd,PrjStdR">
         <Language ID="en-us" />
         <Language ID="MatchPreviousMSI">
      </Product>
  </Add>
  <RemoveMSI />
</Configuration>

Language 元素Language element

定義要下載或安裝的語言。如果您定義了多種語言,設定檔中的第一種語言會決定殼層 UI 文化特性 (包括捷徑、右鍵操作功能表及工具提示)。如果您在初始安裝後決定要變更 Shell UI 語言,則必須解除安裝 Office 並重新安裝。Defines which languages to download or install. If you define multiple languages, the first language in the configuration file determines the Shell UI culture, including shortcuts, right-click context menus, and tooltips. If you decide that you want to change the Shell UI language after an initial installation, you have to uninstall and reinstall Office.

範例Example

<Product ID="O365ProPlusRetail">
  <Language ID="en-us" />
  <Language ID="ja-jp" />
</Product>
<Add SourcePath="\\Server\Share" 
     OfficeClientEdition="32"
     Channel="SemiAnnual" 
     AllowCdnFallback="True">
  <Product ID="O365ProPlusRetail">
     <Language ID="MatchInstalled" />
     <Language ID="MatchOS" Fallback="en-us" />
  </Product>
</Add>  

ID 屬性 (Language 元素的一部分)ID attribute (part of Language element)

必要。Required.

定義要下載或安裝的語言識別碼。Defines the ID of the language to download or install.

範例值Example values

  • ID="en-us"ID="en-us"
  • ID="ja-jp"ID="ja-jp"
  • ID="MatchOS"ID="MatchOS"
  • ID="MatchPreviousMSI"ID="MatchPreviousMSI"
  • ID="MatchInstalled"ID="MatchInstalled"

如需所有語言的清單,請參閱語言、文化代碼和隨附的校訂語言For a list of all languages, see Languages, culture codes, and companion proofing languages.

如需關於 MatchPreviousMSI 的詳細資訊,請參閱升級至 Microsoft 365 Apps 時,移除 Office 現有的 MSI 版本For more information about MatchPreviousMSI, see Remove existing MSI versions of Office when upgrading to Microsoft 365 Apps.

如果 Office 不支援該語言或 ODT 在本機來源檔案中找不到正確的語言套件,則 MatchOS 和 MatchInstalled 無法安裝作業系統語言。為了協助解決此問題,建議您指定一種備用語言,並允許 ODT 對遺失的檔案使用 Office CDN。若要這麼做,請使用 Fallback 屬性和 AllowCdnFallBack 屬性。MatchOS and MatchInstalled cannot install the operating system languages if Office doesn't support that language or if the ODT cannot find the correct language pack in the local source files. To help address this issue, we recommend that you specify a backup language and allow the ODT to use the Office CDN for missing files. To do so, use the Fallback attribute and AllowCdnFallBack attribute.

只有在已安裝至少一項隨選即用產品時,才可以使用 MatchInstalled。無法搭配 ODT 的 /download 切換使用。如需 MatchInstalled 的詳細資訊,請參閱部署語言的概觀為 Microsoft 365 Apps 建立動態、精益和通用套件MatchInstalled can be used only if there is at least one Click-to-Run product already installed. It can't be used with the /download switch for the ODT. For more information about MatchInstalled, see Overview of deploying languages and Build dynamic, lean, and universal packages for Microsoft 365 Apps.

Fallback 屬性 (Language 元素的一部分)Fallback attribute (part of Language element)

選用。Optional.

使用 MatchOS 時,建議您指定當 Office 不支援相符語言、或在本機來源檔案中找不到相符語言時,所要安裝的遞補語言。若要這麼做,請使用 "Fallback" 屬性。如需詳細資訊,請參閱安裝與作業系統相同的語言When using MatchOS, we recommend that you specify a fallback language to install when a matched language isn't supported by Office or can't be found in the local source files. To do so, use the "Fallback" attribute. For more information, see Install the same languages as the operating system.

範例值:Example values:

  • Fallback="en-us"Fallback="en-us"
  • Fallback="ja-jp"Fallback="ja-jp"

TargetProduct 屬性 (Language 元素的一部分)TargetProduct attribute (part of Language element)

選用。Optional.

使用 MatchInstalled 時,您可以指定是否要比對特定產品或所有已安裝產品組合已安裝的語言清單。若要鎖定特定產品,您可以指定任何支援的產品識別碼。如果您想要比對所有已安裝的語言,您可以指定 "All"。然後,ODT 就會使用與 TargetProduct 中所指定語言相同的一組語言安裝該新產品。When using MatchInstalled, you can specify if you want to match the list of already installed languages for a specific product or the combination of all installed products.To target a specific product, you can specify any supported product ID. If you want to match all already installed languages, you can specify "All". ODT will then install the new product with the same set of languages as the one specified in TargetProduct.

如果未使用 MatchInstalled 指定 TargetProduct,則 ODT 會嘗試比對設定檔中語言標籤所屬的相同產品識別碼。If there is no TargetProduct specified with MatchInstalled, the ODT will attempt to match on the same Product ID that the Language tag belongs to in the configuration file. 例如,如果您在安裝 VisioProRetail 時使用 MatchInstalled 但沒有 TargetProduct,則 ODT 會嘗試比對裝置上已安裝的現有 VisioProRetail 產品所安裝的語言。For example, if you are using MatchInstalled while installing VisioProRetail without a TargetProduct, then the ODT will attempt to match the installed languages for an existing VisioProRetail product already installed on the device.

範例值:Example values:

<Language ID="MatchInstalled" TargetProduct="O365ProPlusRetail" />
<Language ID="MatchInstalled" TargetProduct="All" />

Display 元素Display element

定義安裝 Office 時使用者看到的畫面。Defines what the user sees when Office is installed.

範例Example

<Display Level="None" AcceptEULA="TRUE" />  

Level 屬性 (Display 元素的一部分)Level attribute (part of Display element)

選用。如果未指定,則預設為 FullOptional. Default is set to Full if not specified.

如果將 Level 設定為 None,安裝 Office 時不會有使用者介面︰不會顯示進度列、完成畫面、錯誤訊息或其他使用者介面。If Level is set to None, Office is installed with no user interface: no progress bars, completion screens, error messages, or other user interface are displayed.

如果將 Level 設定為 Full,則會以標準的安裝體驗來安裝 Office。If Level is set to Full, Office is installed with the normal installation experience.

允許的值:Allowed values:

  • Level="None"Level="None"
  • Level="Full"Level="Full"

AcceptEULA 屬性 (Display 元素的一部分)AcceptEULA attribute (part of Display element)

選用。如果未指定,則預設為 FALSEOptional. Defaults to FALSE if not specified.

如果將 AcceptEULA 設定為 TRUE,則使用者不會看到 [Microsoft 軟體授權條款] 對話方塊。如果此屬性設為 FALSE 或不包含此屬性,使用者可能會看到「Microsoft 軟體授權條款」對話方塊。建議系統管理員將 AcceptEULA 設定為 TRUEIf AcceptEULA is set to TRUE, the user does not see a Microsoft Software License Terms dialog box. If this attribute is set to FALSE or is not included, the user may see a Microsoft Software License Terms dialog box. We recommend that administrators set AcceptEULA to TRUE.

允許的值:Allowed values:

  • AcceptEULA="TRUE"AcceptEULA="TRUE"
  • AcceptEULA="FALSE"AcceptEULA="FALSE"

注意

如果您部署 1803 版之前的 Office 版本,則僅在您透過使用者帳戶安裝時,才會套用此設定。Microsoft Endpoint Configuration Manager 和使用 SYSTEM 帳戶安裝的其他軟體發佈工具不會套用此設定。If you deploy a version of Office before Version 1803, this setting will be applied only if you install with the user's account. Microsoft Endpoint Configuration Manager and other software distribution tools that use the SYSTEM account for installation will not apply the setting.

ExcludeApp 元素ExcludeApp element

定義不應安裝哪些 Microsoft 365 Apps 產品。安裝 Microsoft 365 Apps 或安裝個別應用程式 (例如 Word、Excel、PowerPoint、Publisher、Visio 或 Skype) 時,系統會自動安裝 OneDrive。如果您不想要 OneDrive 與這些應用程式一起安裝 ,請使用 ExcludeApp 元素將其移除。如需詳細資訊,請參閱安裝 Microsoft 365 Apps 或其他應用程式時排除 OneDriveDefines which Microsoft 365 Apps products should not be installed. OneDrive is automatically installed when you install Microsoft 365 Apps or install individual applications, such as Word, Excel, PowerPoint, Publisher, Visio, or Skype. If you don't want OneDrive installed with those applications, use the ExcludeApp element to remove it. For more information, see Exclude OneDrive when installing Microsoft 365 Apps or other applications.

範例Example

<Add SourcePath="\\Server\Share" 
     OfficeClientEdition="32"
     Channel="SemiAnnual" >
  <Product ID="O365ProPlusRetail">
    <Language ID="en-us" />
    <Language ID="ja-jp" />
    <ExcludeApp ID="Publisher" />
  </Product>
</Add>  

如果使用具有 ExcludeApp 的設定檔在已安裝 Microsoft 365 Apps 的裝置上安裝 Office,則會根據語言清單來個別對待 ExcludeApp 設定:If a configuration file with ExcludeApp is used to install Office on a device that already has Microsoft 365 Apps installed, the ExcludeApp setting is treated differently based on the list of languages:

  • 如果組態檔中的語言清單包含所有安裝的語言,則檔案中的 ExcludeApp 設定會取代裝置上任何現有的 ExcludeApp 設定。如果設定檔中的語言清單同時包含所有已安裝的語言和其他語言,也會如此取代。If the list of languages in the configuration file includes all the installed languages, then the ExcludeApp setting in the file replaces any existing ExcludeApp setting on the device. This is also true if the list of languages in the configuration file includes both all the installed languages and additional languages.
  • 如果設定檔中的語言清單不包含所有安裝語言,則設定檔中的 ExcludeApp 設定將會與裝置上的 ExcludeApp 設定合併。If the list of languages in the configuration file doesn't include all the installed languages, then the ExcludeApp setting in the configuration file will be combined with the ExcludeApp setting on the device.

ID 屬性 (ExcludeApp 元素的一部分)ID attribute (part of ExcludeApp element)

必要。Required.

定義不應安裝的產品識別碼。Defines the ID of the product that should not be installed.

允許的值:Allowed values:

  • ID="Access"ID="Access"
  • ID="Excel"ID="Excel"
  • ID="Groove"ID="Groove"
  • ID="Lync"ID="Lync"
  • ID="OneDrive"ID="OneDrive"
  • ID="OneNote"ID="OneNote"
  • ID="Outlook"ID="Outlook"
  • ID="PowerPoint"ID="PowerPoint"
  • ID="Publisher"ID="Publisher"
  • ID="Teams"ID="Teams"
  • ID="Word"ID="Word"

對於商務用 OneDrive,請使用 Groove。對於商務用 Skype,請使用 LyncFor OneDrive for Business, use Groove. For Skype for Business, use Lync.

如需有關 Microsoft Teams 的詳細資訊,請參閱使用 Microsoft 365 Apps 部署 Microsoft TeamsFor more information about Microsoft Teams, see Deploy Microsoft Teams with Microsoft 365 Apps.

Property 元素Property element

定義某些 Office 行為和屬性。Defines certain Office behaviors and properties.

範例Example

<Property Name="FORCEAPPSHUTDOWN" Value="FALSE"/>
<Property Name="SharedComputerLicensing" Value="1"/>
<Property Name="SCLCacheOverride" Value="1" />
<Property Name="DeviceBasedLicensing" Value="1" />
<Property Name="SCLCacheOverrideDirectory" Value="\\server\share\%username%" />
<Property Name="PinIconsToTaskbar" Value="TRUE"/>

Name 屬性 (Property 元素的一部分)Name attribute (part of Property element)

必要。Required.

定義您想要設定其值的特定屬性。Defines the specific property whose value you want to set.

Value 屬性 (Property 元素的一部分)Value attribute (part of Property element)

定義具名屬性的值。Defines the value of the named property.

AUTOACTIVATE 屬性 (Property 元素的一部分)AUTOACTIVATE property (part of Property element)

選用。如果未指定,則預設為 0Optional. Default is 0 if not specified.

由於 Microsoft 365 Apps 已設定為自動啟動,您不應設定 Microsoft 365 Apps 產品的這個屬性。 針對其他產品,您可以將 AUTOACTIVATE 設定為 1,以便讓該產品自動啟用。Because Microsoft 365 Apps is set to activate automatically, you should not set this property for Microsoft 365 Apps products. For other products, you can set AUTOACTIVATE to 1 to have the product activate automatically.

允許的值:Allowed values:

  • Property Name="AUTOACTIVATE" Value="0"Property Name="AUTOACTIVATE" Value="0"
  • Property Name="AUTOACTIVATE" Value="1"Property Name="AUTOACTIVATE" Value="1"

FORCEAPPSHUTDOWN 屬性 (Property 元素的一部分)FORCEAPPSHUTDOWN property (part of Property element)

選用。如果未指定,則預設為 FALSEOptional. Default is FALSE if not specified.

設定為 TRUE 時,系統會強制關閉所有封鎖 Office 安裝作業的 App。資料可能會遺失。When set to TRUE, forces any apps that are blocking the install of Office to shut down. Data loss may occur.

允許的值:Allowed values:

  • Property Name="FORCEAPPSHUTDOWN" Value="FALSE"Property Name="FORCEAPPSHUTDOWN" Value="FALSE"
  • Property Name="FORCEAPPSHUTDOWN" Value="TRUE"Property Name="FORCEAPPSHUTDOWN" Value="TRUE"

PACKAGEGUID 屬性 (Property 元素的一部分)PACKAGEGUID property (part of Property element)

選用。Optional.

依預設,由 ODT 建立的所有 App-V 套件會共用相同的 App-V 套件識別碼。系統管理員可以使用 PACKAGEGUID 來指定不同的套件識別碼。這可讓您將 Office 的多個 App-V 套件發佈到 App-V 管理伺服器。不過,這無法讓您將多個 Office App-V 套件部署到同一部電腦。您可以使用 ODT 來建立 Microsoft 365 Apps 的 App-V 套件。不支援建立適用於 Office 專業增強版或 Office 標準版大量授權版本的套件。By default, App-V packages created by the ODT share the same App-V Package ID. Administrators can use PACKAGEGUID to specify a different Package ID. This allows you to publish multiple App-V packages of Office to an App-V Management Server. But, this doesn't enable you to deploy more than one Office App-V package to a single computer. You can use the ODT to create App-V packages for Microsoft 365 Apps. Creating packages for the volume-licensed versions of Office Professional Plus or Office Standard is not supported.

封裝識別碼必須遵循範例格式,且只可以使用這些字元︰ 0、1、2、3、4、5、6、7、8、9、A、B、C、D、E、FThe Package ID must follow the format of the example and can only use these characters: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F

如果您使用其他字元,將使用預設套件識別碼建立 App-V 套件。If you use any other characters, the App-V package is created with the default Package ID.

範例值:Example values:

  • Property Name="PACKAGEGUID" Value="12345678-ABCD-1234-ABCD-1234567890AB"Property Name="PACKAGEGUID" Value="12345678-ABCD-1234-ABCD-1234567890AB"

SharedComputerLicensing 屬性 (Property 元素的一部分)SharedComputerLicensing property (part of Property element)

選用。如果未指定,則預設值為 0Optional. Default value is 0 if not specified.

若您使用遠端桌面服務將 Microsoft 365 Apps 部署到共用的電腦上,請將 SharedComputerLicensing 設為 1。Set SharedComputerLicensing to 1 if you deploy Microsoft 365 Apps to shared computers by using Remote Desktop Services.

如需詳細資訊,請參閱 Microsoft 365 Apps 的共用電腦啟用概觀For more information, see Overview of shared computer activation for Microsoft 365 Apps.

允許的值:Allowed values:

  • Property Name="SharedComputerLicensing" Value="0"Property Name="SharedComputerLicensing" Value="0"
  • Property Name="SharedComputerLicensing" Value="1"Property Name="SharedComputerLicensing" Value="1"

SCLCacheOverride 屬性 (Property 元素的一部分)SCLCacheOverride property (part of Property element)

選用。如果未指定,則預設值為 0Optional. Default value is 0 if not specified.

如果您使用共用電腦啟動,且想要漫遊授權權杖,請將 SCLCacheOverride 設為 1。搭配使用 SCLCacheOverrideDirectory。只有在選擇要將授權權杖從其預設位置移開時才需要這麼做。如需詳細資訊,請參閲 Microsoft 365 Apps 的共用電腦啟用概觀Set SCLCacheOverride to 1 if you're using shared computer activation and you want to roam the licensing token. Use in conjunction with SCLCacheOverrideDirectory. This is only needed if you choose to move the licensing token from its default location. For more information, see Overview of shared computer activation for Microsoft 365 Apps.

允許的值:Allowed values:

  • Property Name="SCLCacheOverride" Value="0"Property Name="SCLCacheOverride" Value="0"
  • Property Name="SCLCacheOverride" Value="1"Property Name="SCLCacheOverride" Value="1"

SCLCacheOverrideDirectory 屬性 (Property 元素的一部分)SCLCacheOverrideDirectory property (part of Property element)

選用。Optional.

如果您使用共用電腦啟動,且想要漫遊授權權杖,請設定 SCLCacheOverrideDirectory 來指定授權權杖的資料夾位置。搭配使用 SCLCacheOverride。只有在選擇要將授權權杖從其預設位置移開時才需要這麼做。Set SCLCacheOverrideDirectory to specify a folder location for the licensing token if you're using shared computer activation and you want to roam the licensing token. Use in conjunction with SCLCacheOverride. This is only needed if you choose to move the licensing token from its default location.

如需詳細資訊,請參閱 Microsoft 365 Apps 的共用電腦啟用概觀For more information, see Overview of shared computer activation for Microsoft 365 Apps.

範例值:Example values:

  • Property Name="SCLCacheOverrideDirectory" Value="%appdata%\Microsoft"Property Name="SCLCacheOverrideDirectory" Value="%appdata%\Microsoft"
  • Property Name="SCLCacheOverrideDirectory" Value="\\server\share\%username%"Property Name="SCLCacheOverrideDirectory" Value="\\server\share\%username%"

DeviceBasedLicensing 屬性 (Property 元素的一部分)DeviceBasedLicensing property (part of Property element)

選用。如果未指定,則預設值為 0Optional. Default value is 0 if not specified.

定義裝置型啟用的 Office 授權模式。如需詳細資訊,請參閱 Microsoft 365 Apps 企業版的裝置型授權Defines the Office licensing mode for device-based activation. For more information, see Device-based licensing for Microsoft 365 Apps for enterprise.

允許的值:Allowed values:

  • Property Name="DeviceBasedLicensing" Value="1"Property Name="DeviceBasedLicensing" Value="1"
  • Property Name="DeviceBasedLicensing" Value="0"Property Name="DeviceBasedLicensing" Value="0"

PinIconsToTaskBar 屬性 (Property 元素的一部分)PinIconsToTaskBar property (part of Property element)

選用。如果未指定,則預設值為 TrueOptional. The default value is True if not specified.

定義是否要將 Office 產品的捷徑圖示新增至 Windows 7、和 8.1 中的 Windows 工作列。若您使用系統帳戶安裝 Office (以 Microsoft Endpoint Configuration Manager 部署時的常見做法),即使此屬性設為 True,也不會釘選圖示。Defines whether shortcut icons for Office products are added to the Windows taskbar in Windows 7 and 8.1. If you install Office using a system account, which is common when deploying with Microsoft Endpoint Configuration Manager, the icons will not be pinned even if this property is set to True.

允許的值:Allowed values:

  • Property Name="PinIconsToTaskbar" Value="FALSE"Property Name="PinIconsToTaskbar" Value="FALSE"
  • Property Name="PinIconsToTaskbar" Value="TRUE"Property Name="PinIconsToTaskbar" Value="TRUE"

注意

Windows 7 終止支援 Microsoft 365 App。如需詳細資訊,請參閱 Windows 7 終止支援服務與 Microsoft 365 Apps Microsoft 365 Apps is no longer supported on Windows 7. For more information, see Windows 7 end of support and Microsoft 365 Apps.

Remove 元素Remove element

定義要從先前安裝的 Microsoft 365 Apps 中移除的產品和語言。若要移除已安裝的語言,您必須同時提供產品及語言資訊,如範例所示。若要移除所有已安裝的語言,請勿包含語言屬性。在該情況下,ODT 會自動探索並移除產品的所有已安裝語言。Defines which products and languages to remove from a previous installation of Microsoft 365 Apps. To remove an installed language, you must provide both the product and the language, as in the example. To remove all the installed languages, do not include the language attribute. In that case, the ODT automatically discovers and removes all installed languages for the product.

如需詳細資訊,請參閱 Office 部署工具概觀For more information, see Overview of the Office Deployment Tool.

範例Example

<Remove All="FALSE">
  <Product ID="O365ProPlusRetail" >
    <Language ID="es-es" />
  </Product>
</Remove>

All 屬性 (Remove 元素的一部分)All attribute (part of Remove element)

選用。Optional. 如未指定,則預設值為 FALSEThe default value is FALSE if not specified.

若設為 TRUE,將移除所有 Microsoft 365 Apps 的產品和語言,包含 Project 和 Visio。If set to TRUE, all Microsoft 365 Apps products and languages will be removed, including Project and Visio.

允許的值:Allowed values:

  • All="FALSE"All="FALSE"
  • All="TRUE"All="TRUE"

Updates 元素Updates element

定義安裝 Office 之後如何更新。Defines how Office is updated after it's installed.

範例Example

<Updates Enabled="TRUE" 
         UpdatePath="\\Server\Share\"
         Channel="SemiAnnual" />

Enabled 屬性 (Updates 元素的一部分)Enabled attribute (part of Updates element)

選用。如果未指定,則預設值為 TRUEOptional. The default value is TRUE if not specified.

如果設為 TRUE,則 Office 會檢查更新。如果設為 FALSE,則不會檢查 Office 更新,但使用者可以移至 [檔案] > [帳戶] > [更新選項] > [立即更新] 來檢查更新。If set to TRUE, Office will check for updates. If set to FALSE, Office won't check for updates, but the user can check for updates by going to File > Account > Update Options > Update Now.

允許的值:Allowed values:

  • Enabled="TRUE"Enabled="TRUE"
  • Enabled="FALSE"Enabled="FALSE"

UpdatePath 屬性 (Updates 元素的一部分)UpdatePath attribute (part of Updates element)

選用。 如果未指定,則預設為 CDN。Optional. Defaults to the CDN if not specified.

定義 Office 更新來自何處。UpdatePath 可以指定 Office 安裝檔案來源的網路、本機或 HTTP 路徑。環境變數可用於網路或本機路徑。Defines where the updates for Office come from. UpdatePath can specify a network, local, or HTTP path of a source for Office installation files. Environment variables can be used for network or local paths.

若您以 Office 系統管理範本檔案 (ADMX/ADML)來使用群組原則,就可以使用 「更新路徑」 原則設定來設定 UpdatePath。您可以在 「電腦設定\原則\系統管理範本\Microsoft Office 2016 (電腦)\更新」底下找到此原則設定。If you use Group Policy with the Administrative Template files (ADMX/ADML) for Office, you can set UpdatePath by using the Update Path policy setting. You can find this policy setting under Computer Configuration\Policies\Administrative Templates\Microsoft Office 2016 (Machine)\Updates.

範例值:Example values:

TargetVersion 屬性 (Updates 元素的一部分)TargetVersion attribute (part of Updates element)

選用。預設為來自指定更新路徑的最新版本。Optional. Defaults to the latest version from the specified update path.

定義要更新的目標 Office 版本。如果將 TargetVersion 設為特定的組建編號,Office 會嘗試更新至該版本。Defines which version Office updates to. If TargetVersion is set to a specific build number, Office attempts to update to that version.

若您以 Office 系統管理範本檔案 (ADMX/ADML) 來使用群組原則,就可以使用 「目標版本」 原則設定來設定 TargetVersion。您可以在「電腦設定\原則\系統管理範本\Microsoft Office 2016 (電腦)\更新」底下找到此原則設定。If you use Group Policy with the Administrative Template files (ADMX/ADML) for Office, you can set TargetVersion by using the Target Version policy setting. You can find this policy setting under Computer Configuration\Policies\Administrative Templates\Microsoft Office 2016 (Machine)\Updates.

範例值:Example values:

  • TargetVersion="15.1.2.3"TargetVersion="15.1.2.3"
  • TargetVersion=""TargetVersion=""

Deadline 屬性 (Updates 元素的一部分)Deadline attribute (part of Updates element)

選用。Optional.

定義必須套用更新的期限。期限會以國際標準時間 (UTC) 指定。您可以搭配 「目標版本」 使用 Deadline,以確保 Office 會在特定日期之前更新成特定版本。建議您將期限設在至少一星期之後,給予使用者充足時間來安裝更新。Defines a deadline by which updates must be applied. The deadline is specified in Coordinated Universal Time (UTC). You can use Deadline with Target Version to make sure that Office is updated to a particular version by a particular date. We recommend that you set the deadline at least a week in the future to allow users time to install the updates.

在期限之前,使用者會收到多次安裝更新的提醒。若到了期限仍未更新 Office,使用者就會看到將在 15 分鐘後套用更新的通知。這可讓使用者有機會儲存正在處理的 Office 文件,並關閉所有開啟的 Office 程式。若使用者不關閉 Office 程式,到了 15 分鐘後程式將自動關閉,這可能會導致資料遺失。Prior to the deadline, users receive multiple reminders to install the updates. If Office isn't updated by the deadline, users see a notification that the updates will be applied in 15 minutes. This gives users the opportunity to save the Office documents that they are working on and to close any Office programs that are open. If users don't close the Office programs, the programs are closed automatically when the 15 minutes are up, which might result in data loss.

Office 程式關閉後,會自動套用更新。期限只適用於一組更新。因此,如果您想利用期限來確保 Office 永遠處於最新版本,就必須在每次 Office 有新的更新時變更期限。After the Office programs are closed, the updates are applied automatically. The deadline only applies to one set of updates. If you want to use a deadline to make sure that Office is always up to date, you must change the deadline every time a new update for Office is available.

若要使用此屬性,Office 必須至少具有 Service Pack 1 (版本 15.0.4569.1507)。若您以 Office 系統管理範本檔案 (ADMX/ADML) 來使用群組原則,就可以使用 「更新期限」 原則設定來設定 Deadline。您可以在「電腦設定\原則\系統管理範本\Microsoft Office 2016 (電腦)\更新」底下找到此原則設定。To use this attribute, Office must be running at least Service Pack 1 (version 15.0.4569.1507). If you use Group Policy with the Administrative Template files (ADMX/ADML) for Office, you can set Deadline by using the Update Deadline policy setting. You can find this policy setting under Computer Configuration\Policies\Administrative Templates\Microsoft Office 2016 (Machine)\Updates.

範例值:Example value:

  • Deadline="05/16/2014 18:30"Deadline="05/16/2014 18:30"

Channel 屬性 (Updates 元素的一部分)Channel attribute (part of Updates element)

選用。預設值為 目前Optional. The default is Current.

定義安裝 Office 之後要用的更新通道。有兩個通道屬性︰[新增] 元素通道用來指定安裝 Office 時的更新通道,[更新] 項目的通道用來變更現有的 Office 安裝通道。Defines which channel to use for updating Office after it is installed. There are two channel attributes: the channel for the Add element is used to specify an update channel while installing Office, and the channel for the Updates element is used to change the channel for an existing installation of Office.

如需更新通道的詳細資訊,請參閱 Microsoft 365 Apps 更新通道概觀For more information about update channels, see Overview of update channels for Microsoft 365 Apps.

若您以 Office 系統管理範本檔案 (ADMX/ADML) 來使用群組原則,就可以使用「更新通道」原則來設定 Channel。您可以在「電腦設定\原則\系統管理範本\Microsoft Office 2016 (電腦)\更新」底下找到此原則設定。若啟用,此群組原則設定會優先於使用 Office 部署工具設定的 Channel 值。If you use Group Policy with the Administrative Template files (ADMX/ADML) for Office, you can set Channel by using the Update Channel policy setting. You can find this policy setting under Computer Configuration\Policies\Administrative Templates\Microsoft Office 2016 (Machine)\Updates. If enabled, this Group Policy setting takes precedence over the Channel value set by using the Office Deployment Tool.

允許值:Allowed values:

  • 通道=”BetaChannel”Channel="BetaChannel"
  • 通道=”CurrentPreview”Channel="CurrentPreview"
  • 通道=”Current”Channel="Current"
  • 通道="MonthlyEnterprise"Channel="MonthlyEnterprise"
  • 通道=”SemiAnnualPreview”Channel="SemiAnnualPreview"
  • 通道="SemiAnnual"Channel="SemiAnnual"

注意

  • 若要使用這些屬性值,您必須使用 Office 部署工具的最低版本16.0.12827.20268,此版本已于2020年6月9日發行。To use these attribute values, you need to be using at least version 16.0.12827.20268 of the Office Deployment Tool, which was released on Tuesday June 9, 2020.
  • 每個更新通道先前的允許值仍可使用,這表示您不需要更新舊的設定 XML 檔案。Previous allowed values for each update channel can still be used, which means you don't have to update your older configuration XML files.
  • Beta 版通道 (有時稱為「測試人員 - 快」) 支援組建,因此只能在測試環境中由一小群使用者 (例如 IT 人員或應用程式開發人員) 使用。Beta Channel (sometimes referred to as Insider Fast) is not a supported build so should only be used in test environments and by a small group of select users, such as IT staff or application developers.

如果您正在部署 Office 專業增強版 2019,也就是 Office 的大量授權版本,那麼您需要使用不同的更新通道:PerpetualVL2019。如需詳細資訊,請參閱 Office 2019 的更新通道If you're deploying Office Professional Plus 2019, which is a volume licensed version of Office, there is a different update channel you need to use: PerpetualVL2019. For more information, see Update channel for Office 2019.

RemoveMSI 元素RemoveMSI element

選用。Optional.

指定在安裝指定的產品 (例如 Microsoft 365 Apps) 之前,是否要從電腦將使用 Windows Installer (MSI) 安裝的任何 2007、2010、2013 或 2016 版本 Office、Visio 與 Project 解除安裝。Specifies whether any 2007, 2010, 2013, or 2016 versions of Office, Visio, and Project that were installed using Windows Installer (MSI) are uninstalled from the computer prior to the installation of the specified product, such as Microsoft 365 Apps.

建議您卸載所有舊版的 Office,再安裝 Microsoft 365 Apps。如需關於使用 RemoveMSI 的詳細資訊,請參閱升級至 Microsoft 365 Apps 時移除現有 MSI 版本的 OfficeWe recommend that you uninstall any previous versions of Office before installing Microsoft 365 Apps. For more information about using RemoveMSI, see Remove existing MSI versions of Office when upgrading to Microsoft 365 Apps.

IgnoreProduct 屬性 (RemoveMSI 元素的一部分)IgnoreProduct attribute (part of RemoveMSI element)

選用。Optional.

如果指定識別碼,則不會從電腦將該 Windows Installer (MSI) 產品解除安裝。If an ID is specified, that Windows Installer (MSI) product won't be uninstalled from the computer.

範例值:Example values:

  • IgnoreProduct ID="VisPro"IgnoreProduct ID="VisPro"
  • IgnoreProduct ID="PrjPro"IgnoreProduct ID="PrjPro"

AppSettings 元素AppSettings element

選用。Optional.

定義 Microsoft 365 Apps 的應用程式喜好設定,包括 VBA 巨集通知、預設檔案位置和預設檔案格式。若要建立組態檔和應用程式喜好設定,建議您使用適用於隨選即用的 Office 自訂工具,這是包含完整使用者介面的 Web 應用程式。您也可以使用此工具,以深入了解可用的應用程式喜好設定。Defines application preferences for Microsoft 365 Apps, including VBA Macro notifications, default file locations, and default file format. To create a configuration file with application preferences, we recommend you use the Office Customization Tool for Click-to-Run, a web application with a full user interface. You can also use the tool to learn more about the available application preferences.

如需應用程式喜好設定的詳細資訊,請參閱套用應用程式喜好設定將應用程式喜好設定套用至 Office 的現有安裝For more information about application preferences, see Apply application preferences and Apply application preferences to an existing installation of Office.

範例Example

  <AppSettings>
    <User Key="software\microsoft\office\16.0\excel\security"
          Name="vbawarnings" 
          Value="3" 
          Type="REG_DWORD" 
          App="excel16" 
          Id="L_VBAWarningsPolicy" />
  </AppSettings>