>>Is it possible to use a variable you define in your 1st WXI file within
your 2nd WXI file? 

Yes.  Just include the first wxi in the second wxi

First.wxi
<?xml version="1.0" encoding="utf-8"?>
<Include>
  <?define SomeVar = "myData" ?>
</Include>

Second.wxi
<?xml version="1.0" encoding="utf-8"?>
<?include First.wxi ?>
<Include>
  <?define AnotherVarUsingSomeVar = "$(var.SomeVar)MoreData" ?>
</Include>

<?xml version="1.0" encoding="UTF-8"?>
<?include Second.wxi ?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi";
xmlns:util='http://schemas.microsoft.com/wix/UtilExtension'
     xmlns:dep="http://schemas.microsoft.com/wix/DependencyExtension";
     xmlns:difx='http://schemas.microsoft.com/wix/DifxAppExtension'
     xmlns:rdpx="http://rdp.qumu.com/rdpext/2014";>

  <Product Id="*" Name="$(var.AnotherVarUsingSomeVar)"........ >
 ....................

 </Product>
</Wix>







--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Referring-to-variables-in-2nd-WXI-from-1st-tp7593502p7593504.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to