PromotedIcon1PromotedIcon1

PromotedIcon1 指定要顯示在工作列上可見系統通知區域中的圖示,以取代「 動作中心 」圖示。PromotedIcon1 specifies an icon to be shown in the visible system notification area on the taskbar in place of the Action Center icon.

在桌面上,系統通知區域的可見部分會顯示最多四個系統通知圖示。Up to four system notification icons are shown in the visible portion of the system notification area on the desktop. 根據預設,這些圖示是「 動作中心 」、「 電池 」(如果系統硬體包含電池支援)( 網路磁片 區)。By default, these icons are Action Center , Battery —if the system hardware includes battery support— Network , and Volume.

藉由設定 PromotedIcon1 元件,您可以選取要顯示在系統通知區域中的另一個圖示。By setting the PromotedIcon1 component, you can select another icon to be visible in the system notification area. 此圖示會顯示在 動作中心 圖示的位置。This icon will appear in place of the Action Center icon.

若要選取要顯示的圖示,您必須:To select the icon to be visible, you must:

  • 選取包含系統通知圖示的應用程式檔。Select an application file that includes a system notification icon. 此應用程式檔必須經過簽署。This application file must be signed.
  • 設定檔案的 路徑GUID 元素。Set both the Path and GUID elements for the file.

如需有關為您的圖示指定 GUID 的詳細資訊,請參閱 NOTIFYICONDATA 結構For information about specifying the GUID for your icon, see NOTIFYICONDATA Structure.

子元素Child Elements

設定Setting 描述Description
GUIDGUID 指定要在通知區域中顯示之圖示的 GUID。Specifies the GUID of the icon to be displayed in the notification area.
路徑Path 指定包含圖示的應用程式路徑。Specifies the path to the application that contains the icon.

有效的設定階段Valid Configuration Passes

特殊化specialize

父階層Parent Hierarchy

Microsoft-Windows-Shell-設定 | NotificationArea | PromotedIcon1Microsoft-Windows-Shell-Setup | NotificationArea | PromotedIcon1

套用至Applies To

如需此元件所支援的 Windows 版本和架構清單,請參閱 Microsoft Windows Shell 安裝程式For a list of the Windows editions and architectures that this component supports, see Microsoft-Windows-Shell-Setup.

XML 範例XML Example

下列 XML 輸出顯示如何升級新的系統通知圖示,以取代「 動作中心 」圖示。The following XML output shows how to promote a new system notification icon to be visible in place of the Action Center icon.

  <PromotedIcon1>
    <Path>%PROGRAMFILES%\Fabrikam\Application1.exe</Path>
    <GUID>{d8742dcb-3e6a-4b3c-b3fe-374623cdcf06}</GUID>
  </PromotedIcon1>

NotificationAreaNotificationArea