Thanks for the reply. I thought the syntax "[dirA]" was only for properties. 
Does the Directory element also count as (or create) a
property?

-----Original Message-----
From: Rob Mensching [mailto:r...@robmensching.com] 
Sent: April 10, 2013 10:38
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Referencing filenames (without full path) and 
directories in formatted strings

What about "[dirA]".  The "[$dirA]" would be trying to get the directory of a 
Component matching that Id, right?

On Mon, Apr 8, 2013 at 4:00 PM, Alain Forget <afor...@cmu.edu> wrote:

> 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="&quot;java&quot; -cp [$dirA] &quot;[#fileABCClass]&quot; /> 
> <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
>
>
------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced analytics on 
semi-structured data. The platform includes APIs for
building apps and a phenomenal toolset for data science. Developers can use our 
toolset for easy data analysis & visualization. Get
a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to