I've got it semi working: <DirectoryRef Id="MyStartMenuFolder"> <Component Id="UrlShortcut" Guid="*" KeyPath="yes"> <IniFile Id="UrlShortcutURL" Action="addLine" Directory="MyStartMenuFolder" Name="Shortcut.url" Section="InternetShortcut" Key="URL" Value="http://localhost:8080/mysite" /> <IniFile Id="UrlShortcutHotKey" Action="addLine" Directory="MyStartMenuFolder" Name="Shortcut.url" Section="InternetShortcut" Key="HotKey" Value="0" /> <IniFile Id="UrlShortcutIconFile" Action="addLine" Directory="MyStartMenuFolder" Name="Shortcut.url" Section="InternetShortcut" Key="IconFile" Value="[#MyIcon.ico]" /> <IniFile Id="UrlShortcutIconIndex" Action="addLine" Directory="MyStartMenuFolder" Name="Shortcut.url" Section="InternetShortcut" Key="IconIndex" Value="0" /> <IniFile Id="UrlShortcutProp3" Action="addLine" Directory="MyStartMenuFolder" Name="Shortcut.url" Section="{000214A0-0000-0000-C000-000000000046}" Key="Prop3" Value="19,2" /> </Component> </DirectoryRef>
<DirectoryRef Id="INSTALLDIR"> <Component Id="MyIcon.ico" Guid="*"> <File Id="MyIcon.ico" KeyPath="yes" Source="Resources\MyIcon.ico" /> </Component> </DirectoryRef> Yet the icon does not show up - however, if I copy this URL shortcut or move it to the desktop, the icon shows. Maybe a bug in Windows, or maybe something to do with the last Prop3 value as I don't know what that's for! Regards, Dan On Tue, Jan 17, 2012 at 2:48 PM, Dan Gough <goug...@gmail.com> wrote: > You can try writing your URL file from the IniFile table instead, as .URL > files are in INI format. I am going to try exactly this later on today, > I've done it before (but not in WiX) so it should work. I'll post my > sample code if you need me to. > > Regards, > Dan > > > On Sun, Jan 15, 2012 at 4:32 AM, Bob Arnson <b...@joyofsetup.com> wrote: > >> On 13-Jan-12 04:12, Michael Scheepers wrote: >> > I like to define an icon for this menu item but I can't find any >> > property to set an<Icon> reference for example. Is there a way to >> > define an image which is used for the internet short cut? >> Not currently supported. There's an open feature request but so far >> nobody's volunteered to implement it. >> >> -- >> sig://boB >> http://joyofsetup.com/ >> >> >> >> ------------------------------------------------------------------------------ >> RSA(R) Conference 2012 >> Mar 27 - Feb 2 >> Save $400 by Jan. 27 >> Register now! >> http://p.sf.net/sfu/rsa-sfdev2dev2 >> _______________________________________________ >> WiX-users mailing list >> WiX-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/wix-users >> > > ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users