If you advertise your shortcut, you need to specify the icon via the Icon attribute.
puyo puy wrote: > Hi Guys, > > I'm new to use WIX to create MSI. I want to create a pdf file > shortcut in start menu. But it won't pick up the pdf icon from > system. Any suggestion how to fix this problem? > > <?xml version="1.0" encoding="UTF-8"?> > > <Product Id="75738188-7566-4524-9834-0c21331e4622" Name="Wix > shortcut" Language="1033" Version="6.0.0.0" Manufacturer="Microsoft" > UpgradeCode="85c499b0-49d3-42f5-aa84-09cae7b71299"> > <Package InstallerVersion="200" Compressed="yes" /> > > <Media Id="1" Cabinet="WixProject1.cab" EmbedCab="yes" /> > <Directory Id="TARGETDIR" Name="SourceDir"> > <Directory Id="ProgramFilesFolder"> > <Directory Id="INSTALLLOCATION" Name="InstallName" > > > <Component Id="ProductComponent" > Guid="d3202fe6-3191-4da6-8eb6-066b71c13acb"> > <File Id="GettingStarted" Source="Files\getting_started.pdf"> > <Shortcut Id="Shortcut_Getting_Started" > Directory="WixMenu" Name="Getting Started" Show="normal" > Advertise="yes" /> > </File> > </Component> > > <Component Id="ShortcutsComponent" > Guid="{C35A78E9-ED8D-4fd6-BC65-CF19597C784E}" KeyPath="yes"> > <RemoveFolder Id="RemoveFolder_WixMenu" > Directory="WixMenu" On="uninstall" /> > <RemoveFolder Id="RemoveFolder_Wix" Directory="Wix" > On="uninstall" /> > </Component> > > </Directory> > </Directory> > <Directory Id="ProgramMenuFolder" SourceName="Programs"> > <Directory Id="Wix" Name="Wix"> > <Directory Id="WixMenu" Name="Wix Documentation" /> > </Directory> > </Directory> > </Directory> > > <Feature Id="ProductFeature" Title="Feature title" Level="1"> > <ComponentRef Id="ProductComponent" /> > <ComponentRef Id="ShortcutsComponent"/> > </Feature> > </Product> > </Wix> > > Thanks in advance > Puyopuy > > ------------------------------------------------------------------------ > Get the name you always wanted with the new y7mail email address > <http://au.rd.yahoo.com/mail/taglines/au/y7mail/default/*http://au.yahoo.com/y7mail/?p1=ni&p2=general&p3=tagline&p4=other>. > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > ------------------------------------------------------------------------ > > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users