在 Lync Server 2013 中使用 Config.xml 執行安裝工作Using Config.xml to perform installation tasks in Lync Server 2013

 

主題上次修改日期: 2012-10-02Topic Last Modified: 2012-10-02

雖然 Office 自訂工具 (OCT) 是自訂安裝的主要工具,但是系統管理員可以使用 Config.xml 檔案來指定 OCT 中所沒有的其他安裝指示。下列自訂只能使用 Config.xml 檔案來進行:Although the Office Customization Tool (OCT) is the primary tool for customization installation, administrators can use the Config.xml file to specify additional installation instructions that are not available in the OCT. The following customizations can only be made by using the Config.xml file:

  • 指定網路安裝點的路徑。Specify the path of the network installation point.

  • 選取所要安裝的產品。Select the products to install.

  • 設定安裝程式自訂檔案和軟體更新的記錄及位置。Configure logging and the location of the Setup customization file and software updates.

  • 指定安裝選項,例如使用者名稱。Specify installation options, such as user name.

  • 將本機安裝來源 (LIS) 複製到使用者的電腦,而不安裝 Office。Copy the local installation source (LIS) to the user's computer without installing Office.

  • 在安裝中新增或移除語言。Add or remove languages from the installation.

建議您使用 Config.xml 檔案來設定 Lync 2013 無訊息安裝。We recommend that you use the Config.xml file to configure Lync 2013 silent installation.

根據預設,在核心產品資料夾中儲存的 Config.xml 檔案 (例如 \ product。WW) 指示安裝程式安裝該產品。By default, the Config.xml file that is stored in the core product folder (for example, \product.WW) directs Setup to install that product. 例如,下列資料夾中的 Config.xml 檔會安裝 Lync 2013:For example, the Config.xml file in the following folder installs Lync 2013:

  • \\伺服器 \ 共用 \ Lync15 \ Lync \Config.xml\\server\share\Lync15\Lync.WW \Config.xml

下表列出最常用於 Lync 2013 安裝的 Config.xml 元素。The Config.xml elements most commonly used for Lync 2013 installation are listed in the following table.

Config.xml 元素Config.xml elements

元素Element 描述Description

組態Configuration

最上層元素 (必要)。包含 Product 屬性,例如:Product=LyncTop-level element (required). Contains the Product attribute, for example: Product=Lync

OptionStateOptionState

指定在安裝期間如何處理特定的產品功能。Specifies how specific product features are handled during installation. 使用下列屬性可防止安裝 Business Connectivity Services,其中包含干擾 Outlook 2010 的共用元件:Use the following attributes to prevent installation of Business Connectivity Services, which includes shared components that interfere with Outlook 2010:

  • 識別碼 = " LOBiMain"Id="LOBiMain"

  • State = 不 " 存在"State="Absent"

  • 子系 = " 強制"Children="Force"

顯示器Display

安裝程式向使用者顯示的 UI 層級。一般屬性包括:The level of UI that Setup displays to the user. Typical attributes include the following:

  • CompletionNotice= " 是 " | " 否 " (預設) CompletionNotice="Yes" | "No"(default)

  • AcceptEula= " 是 " | " 否 " (預設) AcceptEula="Yes" | "No"(default)

記錄Logging

安裝程式執行之記錄類型的選項。一般屬性包括:Options for the kind of logging that Setup performs. Typical attributes include the following:

  • Type = " Off " | " Standard " (default) | "詳細"Type ="Off" | "Standard"(default) | "Verbose"

  • Template=”檔案名稱.txt” (記錄檔名稱)Template=”filename.txt” (the name of the log file)

設定Setting

指定 Windows Installer 內容的值。一般屬性包括:Specifies values for Windows Installer properties. Typical attributes include the following:

  • 設定識別碼 = " name " (Windows Installer 屬性的名稱) Setting Id="name" (the name of the Windows Installer property)

  • Value = " value " (要指派給屬性的值) Value="value" (the value to assign to the property)

DistributionPointDistributionPoint

要執行安裝之網路安裝點的完整路徑。包括 Location 屬性:The fully qualified path of the network installation point from which the installation is to run. Includes the Location attribute:

  • Location = "path"Location=”path”

下列範例顯示 Lync 2013 一般無訊息安裝的 Config.xml 檔案。The following example shows a Config.xml file for a typical silent installation of Lync 2013.

<Configuration Product="Lync">
  <OptionState Id="LOBiMain" State="Absent" Children="Force" />
  <Display Level="None" CompletionNotice="No" AcceptEula="Yes" />
  <Logging Type="verbose" Path="%temp%" Template="LyncSetupVerbose(*).log" />
  <Setting Id="SETUP_REBOOT" Value="Never" />
  <DistributionPoint Location="\\server\share\Lync15" />
</Configuration>

您可以在使用 Config.xml 檔案執行 Office 安裝及維護工作的詳細資訊 https://go.microsoft.com/fwlink/p/?linkid=267514Detailed information about using the Config.xml file to perform Office installation and maintenance tasks is available at https://go.microsoft.com/fwlink/p/?linkid=267514.

自訂 Config.xml 檔案To customize the Config.xml file

  1. 使用文字編輯器工具來開啟 Config.xml 檔案,例如 [記事本]。Open the Config.xml file by using a text editor tool, such as Notepad.

  2. 找到包含您要變更之元素的那幾行。Locate the lines that contain the elements you want to change.

  3. 以您要使用的無訊息選項來修改元素項目。Modify the element entry with the silent options that you want to use. 請務必移除批註定界符 " <!--" and "--> "。Make sure that you remove the comment delimiters, "<!--" and "-->". 例如,使用下列語法:For example, use the following syntax:

    < DistributionPoint Location="\\server\share\Lync15" />
    
  4. 儲存 Config.xml 檔案。Save the Config.xml file.