Hi all, I have an installer where I have outsourced all strings that could be displayed to the user into a .wxl file. The problem I'm now facing is that it does not seem to be possible to use preprocessor variables in .wxl files.
For example we have several defines inside a .wxi file (application name, version, etc.) which I want to use in the wxl file. What I planned to do was the following: Include the wxi in the wxl file and just use the defines in the strings that are part of the wxl file: <?include ..\defines.wxi ?> <String Id="test">This installer deploys all files of MyApp version $(var.Version).</String> Unfortunately the preprocessor does not replace $(var.Version) with the actual value. Of course I could fill the value into a property but I think this should not be necessary because I already have all information at compile time. A second way would be to leave away $(var.Version) and just add it in the wxs file. But again, this is no good solution because sentences in different languages are different and the $(var.Version) is at a different location inside the sentence in another language. Typically the translator will move it himself but he can't do that when the string is formed in the wxs file. Could this be implemented (or is it already and I'm not aware of it) for a future WiX 3.0 release? Thanks! -- View this message in context: http://n2.nabble.com/wxl-files-and-preprocessor-variables-tp2310031p2310031.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing skills and code to build responsive, highly engaging applications that combine the power of local resources and data with the reach of the web. Download the Adobe AIR SDK and Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users