That's a direct assignment of the Directory name. So I expect you'll get "[MYCOMPANYNAME]" as your directory name. Same as if you did <Property Id="X" Value="[MYCOMPANYNAME]"/> you'd get "[MYCOMPANYNAME]". To have the value evaluated then assigned you need to use a custom action.
In this case, a simple <SetProperty Id="DirectoryId" Value="[ProgramFilesFolder]\[MYCOMPANYNAME]" After="CostInitialize"/> should work. Or you could be more efficient and use a preprocessor variable to define both the Property and the Directory with the same value and reduce the complexity of your install. On Fri, Oct 23, 2009 at 10:41 PM, Dave Kolb <d...@dotnetcodeslingers.com>wrote: > Should this work? I am getting the literal strings as the directory name. > Is > the directory name attribute not "formattable"? Where is it documented what > is formatted or not as I have not been able to find that information. > Thanks, Dave > > > > <Property Id="MYCOMPANYNAME" Value="49thLatitude" /> > > <Property Id="MYPRODUCTROOT" Value="CmdMan" /> > > > > <Directory Id="CompanyRoot" Name="[MYCOMPANYNAME]"> > > <Directory Id="CmdManRoot" Name="[MYPRODUCTROOT]"> > > > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > -- virtually, Rob Mensching - http://RobMensching.com LLC ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users