Thanks!

-----Original Message-----
From: Rob Mensching [mailto:r...@robmensching.com] 
Sent: Saturday, October 24, 2009 5:20 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Can I set the Directory name attribute with a
custom property value?

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.



------------------------------------------------------------------------------
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

Reply via email to