Hey Eitan,

It is difficult to handle the hierarchy issue you explained below. A Custom
Action Type 35 (http://msdn.microsoft.com/en-us/library/aa368093(VS.85).aspx)
will allow you set a formatted string. You could use the parent directory
value in the text which will be expanded. I am not sure of another way
unless you were to write your own CA.

-- 
Brian Rogers
"Intelligence removes complexity." - Me
http://icumove.spaces.live.com

On Mon, Aug 4, 2008 at 1:44 AM, Eitan Behar <[EMAIL PROTECTED]> wrote:

> Hi,
>
> I need to find a way to change the name of a directory dynamically,
> something like:
>
> <Directory Id="ProgramFilesFolder" Name="ProgramFilesFolder" />
>  <Directory ...
>  <Directory Id="DIRID" Name="[DIRPATH]">
>
> Where DIRPATH *only* contains the folder name i.e. MyFolder
>
> I am aware of using CAs to set a property, and using directly the syntax:
> <Directory Id="DIRPATH">
> But this will force me to ignore the tree hierachy, and set the property
> as:
> "C:\Program Files\Whatever\Ever\My Folder\" which I don't want to do.
>
> Any advice will be highly appreciated.
>
> Thanks in advance,
>
> Eitan
>
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to