This should work. Can you file a bug on SourceForge for this?
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of John Hancock
(HSG)
Sent: Tuesday, November 13, 2007 7:08 AM
To: [EMAIL PROTECTED]; wix-users@lists.sourceforge.net
Subject: [WiX-devs] Bug in Wix preprocessor?
I'm getting a compile error in a Wix project in the following scenario where a
.wxi include file included in another .wxi include file isn't read from a
location relative to the outside include but instead relative to the file that
included the outer include file. In other words, I've got files that look
something like the following:
A.wxs
Outer.wxi
Inner.wxi
SubDirectory\B.wxs
A.wxs includes Outer.wxi like:
<?include Outer.wxi ?>
B.wxs includes Outer.wxi like:
<?include ..\Outer.wxi ?>
Outer.wxi includes the line:
<?include Inner.wxi ?>
I get a compile error something like the following:
Error 1 The system cannot find the file 'Inner.wxi ' with type 'include'.
D:\MyDirectory\Outer.wxi 11 1 MyProject
When processing includes for A.wxs, the compiler is able to find Inner.wxi OK,
but it cannot for B.wxs because it looks for Inner.wxi in its own folder rather
than relative to the location where it included Outer.wxi.
This ought to work, should it not?
John
-------------------------------------------------------------------------
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