I answered a similar question a while back, this is by design of Windows Installer to support Advertised installations. It all makes sense once you read the documentation on the Icon table [http://msdn.microsoft.com/en-us/library/aa369210(VS.85).aspx] - specifically the following paragraph:
> The icons for shortcuts, file name extensions, and CLSIDs must be stored in > files that are separate > from the target file itself. This is required because the installer should > copy only the small icon files > to the user's machine when advertising the resource. A developer of an > installation package therefore > needs to author separate files containing only the icons. These icon files > are then stored as binary > data in the Icon table. WiX won't automatically pull the icon out of the EXE, I'm guessing it's putting the entire EXE in the Icon table, which is then being extracted to the location you describe and referenced as the icon source. Basically you just need to extract the icon yourself and reference that. It can be a bit confusing if you don't understand how advertised installations work :) Hope that helps. Cheers, Sascha On Wed, Jun 2, 2010 at 7:19 AM, Bryan Reich <bryan.re...@microsoft.com> wrote: > Windows installer caches entries in the Icon table in the installer cache > location as you see below, so in effect by creating that Icon WIX element, > you think of it as if it were a separate File element from your root exe. In > the past, when I've authored COM registration and tried to do what you are > after in that scenario, I had to not use the <Class ...> WIX elements and > instead had to break them down into their constituent <Registry...> elements > and use file references there. I don't know enough about shortcuts to know > whether that is a viable alternative or not. > -- > Bryan > > -----Original Message----- > From: Thomas Singer [mailto:w...@regnis.de] > Sent: Tuesday, June 01, 2010 12:18 PM > To: wix-users@lists.sourceforge.net > Subject: [WiX-users] Shortcut's icon and strange path > > I define a desktop shortcut with following line > > <Shortcut Id="..." Name="..." Target="..." WorkingDirectory="..." > Icon="myexe.exe" IconIndex="0" /> > > and have defined the icon reference as > > <Icon Id="myexe.exe" SourceFile="path\to\myexe.exe" /> > > When I install the application and take a look at the symbol path in the > created shortcut, I see a strange entry like > > %SystemRoot%\Installer\{8AF15DBB-442D-4BBC-A1EF-77B70AD64065}\myexe.exe > > I can't seem to find a way to create a shortcut which will contain the full > path to myexe.exe as symbol path. Is it my fault or does Wix/MSI not support > that? Thanks in advance. > > -- > Cheers, > Tom > > ------------------------------------------------------------------------------ > > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > > ------------------------------------------------------------------------------ > > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > ------------------------------------------------------------------------------ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users