Just for the records: I've solved the problem by removing the line <Icon Id="myexe.exe" SourceFile="path\to\myexe.exe" />
and removing the Icon and IconIndex parameters of the Shortcut tag: <Shortcut Id="..." Name="..." Target="..." WorkingDirectory="..." /> -- Cheers, Tom On 02.06.2010 18:06, Bryan Reich wrote: > If after an update the icon isn't valid any more, it sounds like you are > doing major upgrades? I think that this may be unavoidable using Windows > Installer in that scenario, because as far as the installer is concerned you > are installing a new product entirely and there is no expectation that a > shortcut that was established at quick launch for the previous product would > continue to point to this new product. If your scenario involves installing a > new GUID-revved product to the same install locations with new component > GUIDs, Windows Installer would consider that a component violation, which is > why it wouldn't expect to support the scenario as you describe. > If my assumption about the major upgrade and/or a change of GUID for the > component is incorrect, then unfortunately I still don't have an answer for > you as to why, but my guess is it is a behavior that you may be forced to > live with none-the-less, or use a custom action to work around. > -- > Bryan > > ________________________________________ > From: Thomas Singer [...@regnis.de] > Sent: Tuesday, June 01, 2010 11:17 PM > To: General discussion for Windows Installer XML toolset. > Subject: Re: [WiX-users] Shortcut's icon and strange path > > Hi Bryan and Sascha, > > So as I understand you (we are not using advertised features), it is not > possible with Wix/MSI to just put the real .exe path in the created shortcut > like all other installers I've tried can do? > > The core problem we are faces with is that users drag the desktop icon > created by our installer to the quick launch bar, but after an update the ID > is not valid any more and hence the icon gets lost. > > -- > Cheers, > Tom > > > On 02.06.2010 03:21, Sascha Beaumont wrote: >> 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 >> > > ------------------------------------------------------------------------------ > > _______________________________________________ > 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