(的 GUID-notificationarea-promotedicon2-guid) GUID (microsoft-windows-shell-setup-notificationarea-promotedicon2-guid)

GUID 指定图标的全局唯一标识符 (GUID) 显示在任务栏最右侧的通知区域中。GUID specifies the globally unique identifier (GUID) of an icon to appear in the notification area at the far right of the taskbar.

通过设置 PromotedIcon2 组件的 Path 和 GUID 元素,你可以将另一个图标配置为显示在通知区域中。By setting the Path and GUID elements of the PromotedIcon2 component, you can configure another icon to appear in the notification area. 此图标将显示在 电池 图标的位置。This icon will appear in place of the Battery icon.

若要选择显示的图标,必须执行以下操作:To select the icon to be visible, you must:

  • 选择包含通知图标的已签名二进制应用程序文件。Select a signed binary application file that includes a notification icon.

  • 同时为文件设置 路径GUID 元素。Set both the Path and GUID elements for the file.

该图标的 GUID 包含在应用程序中。The GUID for the icon is contained in the application. NOTIFYICONDATA shell 结构包含 guidItem。The NOTIFYICONDATA shell structure contains the guidItem. 有关详细信息,请参阅 MSDN 主题: NOTIFYICONDATAFor more information, see the MSDN topic: NOTIFYICONDATA. 对于第三方应用程序,请与应用程序提供商联系,以查看应用程序是否使用此结构并获取 GUID。For third-party applications, contact your application provider to see if your application uses this structure and to obtain the GUID.

Values

GUIDGUID

指定要在通知区域中显示的图标的 GUID。Specifies the GUID of an icon to appear in the notification area.

该字符串类型不支持空元素。This string type does not support empty elements. 请勿为该设置创建空值。Do not create an empty value for this setting.

有效的配置阶段Valid Configuration Passes

specializespecialize

父层次结构Parent Hierarchy

Microsoft-Shell-安装程序 | NotificationArea | PromotedIcon2 | GUIDMicrosoft-Windows-Shell-Setup | NotificationArea | PromotedIcon2 | GUID

适用于Applies To

有关此组件支持的 Windows 版本和体系结构的列表,请参阅 Microsoft-Windows-Shell-SetupFor 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 notification icon to appear in place of the Battery icon.

  <PromotedIcon2>
    <Path>%PROGRAMFILES%\Fabrikam\Application2.exe</Path>
    <GUID>{a1bc23cb-3456-bcde-abcd-feb363cacc88}</GUID>
  </PromotedIcon2>

PromotedIcon2PromotedIcon2

路径Path