OK, I've found the problem.  A library is just re-formatted XML just embeds the 
WixVariable value as its written in the wxs file.  So a solution to this is to 
change the WixVariable lines to by:

    <WixVariable Id="WixUIBannerBmp" Value="$(sys.SOURCEFILEDIR)Banner.jpg"/>

Which then embeds a full path to the file assuming it is in the current folder. 
 This works fine if the library project is part of your solution (as ours is) 
but not so well if you are trying to share the compiled wxlib file.

Cheers

Russell 

On Wednesday, 15 July, 2009, at 02:42PM, <rh_maill...@mac.com> wrote:
>I have the following code for the UI in my setup projects:
>
>  <UIRef Id="WixUI_Minimal"/>
>  <WixVariable Id="WixUIBannerBmp" Value="Banner.jpg"/>
>  <WixVariable Id="WixUIDialogBmp" Value="Dialog.jpg"/>
>
>This code is actually in an include file that is shared by multiple wix 
>projects.  So Banner.jpg and Dialog.jpg don't live in each project folder, 
>they're in a common location.
>
>So I've added relative include and reference paths to each Wix project to the 
>location where the include file and the 2 jpgs are located.  Both projects 
>find the include file correctly via the include path but both fail to find the 
>images.
>
>When specifying images like this, does the linker not search the reference 
>paths for them?  Is this a bug or is this as expected?  If so, how can you 
>share images across multiple projects?  I've tried putting the common UI code 
>in to a WixLibrary project but that doesn't work either (see my earlier post).
>
>Thanks
>
>Russell 
>

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to