wix - shortcut icon for website

favicon, shortcut, wix

Solution

InternetShortcut doesn't support specifying an icon like a normal Shortcut. There's an open feature request for that. Technically, IUniformResourceLocator shortcuts in Windows don't support icons, though IShellLink shortcuts do.

Problem

I'm new on wix. In need to create a shortcut to a local website. It works fine and creates the shorcuts, but it doesn't show any icon on start menu and desktop... The website has favicon file and when I open the site I can see it perfectly - I just don't see it in the shortcut. I tried to google it but I didn't find a good answer for util:InternetShortcut.. My code is: ``` <DirectoryRef Id="ApplicationProgramsFolder"> <Component Id="ApplicationShortcutBBBApp" Guid="---"> <util:InternetShortcut Id="ApplicationStartMenuShortcutBBBApp" Name="BBB" Target="http://localhost/BBB"/> <util:InternetShortcut Id="ApplicationDesktopShortcutBBBApp" Name="BBB" Directory="DesktopFolder" Target="http://localhost/BBB"/> <RegistryValue Root="HKCU" Key="Software\Microsoft\BBB" Name="installed" Type="integer" Value="1" KeyPath="yes"/> </Component> </DirectoryRef> ```

Original source