For the Icon element, you are providing the path to the file on your local computer so that WiX can place the whole file in a binary stream in the MSI.
For advertised products, you should make a resource-only DLL (which satisfies the requirement for it being PE format) which only contains the icons. You then set the extension of Icon/@Id to the filename extension that you're going to use these icons for. You can have multiple icons in the same binary used by a single <Icon> element if they share the same filename extension. Use Shortcut/@IconIndex to indicate which icon is to be used. You should _not_ use your actual program EXE in the <Icon> element, nor anything you're not supposed to redistribute, including any part of Windows itself. -- Mike Dimmick -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Cryptonomicon Sent: 05 November 2007 23:49 To: wix-users@lists.sourceforge.net Subject: [WiX-users] Re ferring to Icon in an exe - How is it done? What is teh syntax to refer to an icon in an exe? I have an exe in one fragment <File Id="File_ClientExe" Name="StrawberryFields.exe" Source="$(var.ClientRoot)StrawberryFields.exe" Checksum="no" ReadOnly="yes"> <Shortcut Id="StartMenuStrawberry" Directory="DocumentMenuDir" Name="StrawberryFields Client" WorkingDirectory='INSTALLDIR' Icon="StrawberryFields.exe" IconIndex="0" /> </File> that contains the icon I want to use In my main module I have an icon <Icon Id="IconStrawberry.exe" SourceFile="[File_ClientExe],0" /> but the linker cant find the exe. I have tried a variety of formats "[!File_ClientExe],0" "[File_ClientExe],0" "File_ClientExe,0" but am having no luck. I don't want to hard code the path to the exe Is there a definition of the language syntax somewhere - there are bits and pieces around - but I have spent three days on this and am getting nowhere -- View this message in context: http://www.nabble.com/Referring-to-Icon-in-an-exe---How-is-it-done--tf475524 1.html#a13598254 Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users