Relative pathing is really hard to get right. The binder doesn't look for
files relative to the .obj/.wixlib files. You might have better luck by
binding the files in the .wixlib. IIRC, that's the -bf switch on lit.exe.

On Fri, Aug 24, 2012 at 12:36 PM, Javier Castro
<javiercas...@nexion.com.ar>wrote:

> Hi!:
>
>  I'm starting with Wix. I already have a library project (Library.wxs)
> where i defined my base UIs for all my installer projects. Here i've
> defined something like:
>
> <?xml version="1.0" encoding="utf-8"?>
> <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi";>
>   <Fragment>
>     <WixVariable Id="NexionBackgroundFileName" Value="WixInstaller.jpg"
> Overridable="yes" />
>     <UI>
>       <Dialog Id="NxWelcomeDlg" Width="400" Height="440"
> Title="[NEXION_PRODUCT] - Instalación">
>         <Control Type="Bitmap" Id="NxBackground" Width="400"
> Height="400" X="0" Y="0" Text="NxBackgrnd" TabSkip="yes" />
>  ...
>       </Dialog>
>     </UI>
>     <Binary Id="NxBackgrnd"
> SourceFile="!(wix.NexionBackgroundFileName)" />
> ...
>
> </Wix>
>
> My idea was being able to start a new installer project, reference the
> library.wxs project, and override that "NexionBackgroundFileName"
> variable for a custom installer of a given product
> On the library itself i've defined the variable with default value
> "WixInstaller.jpg" which is a file existing on the same directory
> (alongside library.wxs). The idea is to give a default background, but
> give the possibility to change it to other on each installer.
>
> My problem is that, when in the installer project (lets say Product.wxs)
> i didnt define any value for the variable, i get the error
>
> error LGHT0103: The system cannot find the file 'WixInstaller.jpg'.
>
> The file is present on the Library.wxs directory.
>
> Any ideaadvice on how to make it work?
>
> --
> Javier Castro
> Nexion Software
>
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>



-- 
virtually,

   Rob Mensching
   http://RobMensching.com LLC
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to