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

specializespecialize

父层次结构Parent Hierarchy

Microsoft-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