You need to manually extract the required icons. Your desired behavior is to only embed the required icon, but WiX just provides a way to declare Windows Installer packages and this behavior isn't the way Windows Installer works due to how packages are handled when advertised.
As specified in the documentation of the Icon table that Alex has linked to... "... 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." Before extracting and redistributing an Microsoft icon, you might want to check if this has any legal implications/issues. Cheers, Sascha On Wed, May 5, 2010 at 3:26 AM, Alexander Shevchuk (Volt) <a-ale...@microsoft.com> wrote: > I don't think MSI supports that. See definition of the Icon table > (http://msdn.microsoft.com/en-us/library/aa369210(v=VS.85).aspx) > > > > -----Original Message----- > From: Sylvain Petreolle [mailto:sylv...@mhzwireless.com] > Sent: Tuesday, May 04, 2010 3:26 AM > To: Wix-Users > Subject: [WiX-users] Creating a shortcut : using shell32 common icons ? > > Hello, > > I managed to create a shortcut that has an icon located into the Windows > shell32 library. > However, the created package currently embeds the shell32 file instead of > linking to it. > My current definition of the shortcut looks like this, could someone point me > into the correct direction ? > > Code: > <Shortcut Id="desktopFlashLuxinet10" Directory="DesktopFolder" > Name="FlashLuxinet Wix 1.0" > WorkingDirectory='INSTALLLOCATION' > Icon="FlashLuxinetIcon.exe" IconIndex="12" Advertise="yes" /> .... > <Icon Id="FlashLuxinetIcon.exe" > Sourcefile="C:\WINDOWS\system32\shell32.dll" /> > > -- > Best regards, > Sylvain Petreolle > Mhz Wireless > > > ------------------------------------------------------------------------------ > _______________________________________________ > 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