Hi all, Say we have the following structure:
<Directory Id="dirA" Name="A"> <Directory Id="dirB" Name="B"> <Directory Id="dirC" Name="C"> <Component Id='compABCClass' Guid='MyGuid'> <File Id="fileABCClass" Name="ABC.class" DiskId='1' Source="source/path/to/ABC.class" KeyPath='yes' /> </Component> </Directory> </Directory> </Directory> Then later on in the .wxs file, in Custom Actions, I want to refer to the above file and directory A like so: <!-- Silently run the Java ABC.class file (see http://wix.sourceforge.net/manual-wix3/qtexec.htm ) --> <CustomAction Id="Set_cmdRunABC" Property="cmdRunABC " Value=""java" -cp [$dirA] "[#fileABCClass]" /> <CustomAction Id=" cmdRunABC" Execute="deferred" BinaryKey="WixCA" DllEntry="CAQuietExec" Return="check" Impersonate="no" /> The problem lies with [$dirA] and [#fileABCClass]: 1) How can I specifically refer to an install directory location path (to replace the "[$dirA]"), where no components are being installed in that directory (but only in subdirectories, that have libraries and stuff that ABC.class needs)? 2) How do I get a file's name *without* the full path (as is returned by "[#fileABCClass]")? Thanks, and let me know if anything here isn't clear. Alain *************************************** Alain Forget, Ph.D. Postdoctoral Researcher CyLab, Carnegie Mellon University afor...@cmu.edu http://cups.cs.cmu.edu/~aforget/ *************************************** ------------------------------------------------------------------------------ Minimize network downtime and maximize team effectiveness. Reduce network management and security costs.Learn how to hire the most talented Cisco Certified professionals. Visit the Employer Resources Portal http://www.cisco.com/web/learning/employer_resources/index.html _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users