最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

wix5 - How to add ico using wix installer v5 - Stack Overflow

programmeradmin0浏览0评论

I am adding a shortcut in desktop using WixV5 but icon is not coming. How can I add an ICo to shortcut.

The code I used is

   <Component>
    <File Source="../camviewer.exe" />
            <Shortcut Name="camviewer" Directory="DesktopFolder" Advertise="yes" />
            <Shortcut Name="camviewer" Directory="ProgramMenuFolder" Advertise="yes" />
  </Component>

ProgramMenuFolder also I am nto getting camviewer

I am not able to find reference part in visual studio.

I am adding a shortcut in desktop using WixV5 but icon is not coming. How can I add an ICo to shortcut.

The code I used is

   <Component>
    <File Source="../camviewer.exe" />
            <Shortcut Name="camviewer" Directory="DesktopFolder" Advertise="yes" />
            <Shortcut Name="camviewer" Directory="ProgramMenuFolder" Advertise="yes" />
  </Component>

ProgramMenuFolder also I am nto getting camviewer

I am not able to find reference part in visual studio.

Share Improve this question edited Jan 30 at 12:01 Sijith asked Jan 29 at 7:54 SijithSijith 3,96018 gold badges65 silver badges109 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

Use the Icon attribute to reference an Icon element with the icon you want to use for three advertised shortcut.

<File ...>
   <Shortcut ... Icon="MyIcon" />
</File>

<Icon SourceFile="path/to/my/shortcuts/foo.ico" />
发布评论

评论列表(0)

  1. 暂无评论