admin管理员组

文章数量:1388805

I install a Shortcut with my Wix Installer like this:

                <Shortcut Name="Tray Application"
                          Directory="StartupFolder"
                          WorkingDirectory="InstallFolder"
                          Advertise="yes"
                          Icon="Icon.ico" />

Icon is defined like this:

<Icon Id="Icon.ico" SourceFile="Resources\Icon.ico" />

In Task Manager -> Autostart it shows up like this:

Why does it show up as "Icon.ico" and not "Tray Application" in Task Manager -> Autostart?

In C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup it shows up likes this:

Shortcut properties:

I install a Shortcut with my Wix Installer like this:

                <Shortcut Name="Tray Application"
                          Directory="StartupFolder"
                          WorkingDirectory="InstallFolder"
                          Advertise="yes"
                          Icon="Icon.ico" />

Icon is defined like this:

<Icon Id="Icon.ico" SourceFile="Resources\Icon.ico" />

In Task Manager -> Autostart it shows up like this:

Why does it show up as "Icon.ico" and not "Tray Application" in Task Manager -> Autostart?

In C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup it shows up likes this:

Shortcut properties:

Share Improve this question asked Mar 15 at 0:41 HativHativ 1,5301 gold badge16 silver badges24 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 1

Advertised shortcuts use the Id of the Icon because they don't have access to the target file name when deployed. So, change the Icon Id to the name you want to show up, like "MyApplication.exe".

本文标签: wix5Wix StartupFolder Shortcut shows as quotIconicoquot in Task ManagerStack Overflow