I need to use variable in WIX localization file WIXUI_en-us.wxl. I tried use it like this:
Your second method should work just fine. This is the same method used by the default .wxl
files.
For example, in your .wxl
file you would declare your string:
Foo blah blah [Property1]
And in your .wxs
file, you declare the property. If you wish, you can declare the property to match a WiX variable (which it sounds like you're trying to do)
$(var.Property1)