<Property Id="T1">
  <RegistrySearch Id="TomcatHome" Type="raw" Root="HKLM"
Key="SOFTWARE\....\Tomcat" Name="TomcatHome"/>
</Property>
<Property Id="T2" Value="[TOMCATHOME]conf\\$(var.SomeFilename)" />


<CustomAction Id="SetDeployParams" Return="check" Property="Deploy"
Value="Deploy|[T1]|[T2]" />
<CustomAction Id="Deploy" JScriptCall="main" Property="Script"
Execute="deferred" Return="check" />


 var params = Session.Property("CustomActionData").split("|");
 var t1 = params[0];
 var t2 = params[0];

 alert(t1);   //  Displays: C:\.....
 alert(t2);   //  Displays: C:\.....\theFile
 alert(t1.charAt(0));   // Displays: C
 alert(t2.charAt(0));   // Displays: [


It seems that t2 contains "[TOMCATHOME]conf\\theFile", but it is resolved
when output in the alert. Anyway, I now have it working by using the t1 form
and concatenating the filename inside the script.
-- 
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Evaluate-property-tp5165399p5169112.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to