Not quite using the Directory table correctly. You might work backwards from this blog entry: http://blogs.msdn.com/robmen/archive/2006/10/17/deciphering-the-msi-directory-table-part-7-directories-are-properties.aspx. I think that'll clear up a lot about the way Directory and Properties are intertwined.
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of "José Diaz Seng" Sent: Tuesday, July 29, 2008 07:28 To: wix-users@lists.sourceforge.net Subject: [WiX-users] Trying to define virtual dir based on property value Hi, I am using wix-3.0.4318.0 together with SharpDevelop 3 and have successfully created an installer source file. Now I would like the user to be able to change the virtual directory name (as well as the location of the referenced directory, but let's focus on the first problem...). So I defined a property "TARGETVDIR", added a custom dialog and succeeded in letting the user edit the property. My problem is that the property's value does not get used for the virtual directory name. I tried: <p> ... <Property Id="TARGETVDIR" Value="MyApp"/> ... <Directory Id="TARGETDIR" Name="SourceDir"> <Directory Id="WWW_ROOT" Name="."> <Directory Id="MyWebSiteDir" Name="TARGETVDIR" /> </Directory> </Directory> ... <p> which does not work, the virtual directory name is "TARGETVDIR", not its value "MyApp". I also tried with Name="[TARGETVDIR]", which resulted on the name being "[TARGETVDIR]".<p> Do I need to influence the processing order so that the property gets evaluated earlier or how else can I solve this? Thanks! José -- ------------------------------------------------------------------------- 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 ------------------------------------------------------------------------- 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