That won't work because if I'm understanding this correctly, the <Text> element is from the wixui.wixlib file (which means he doesn't compile it). Is that correct?
Derek -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of John Robbins Sent: Friday, June 09, 2006 6:59 PM To: jhewes; wix-users@lists.sourceforge.net Subject: Re: [WiX-users] Localization of ScrollableText filename not working. One thing that might work better is to use the preprocessor. For example, when I build my installation, I have a custom MSBuild task for the WiX binaries that pick up my version file and pass it on the command line using the preprocessor. Here's the snippet from the .WXS file: <?ifndef InstallVersion ?> <?define InstallVersion = 1.0.0.0?> <?endif?> <!-- The main happy installation --> <Product Name="$(loc.ProductName)" Id="yada yada" UpgradeCode="yada yada" Language="$(loc.LANGUAGE)" Codepage="1252" Version="$(var.InstallVersion)" <--- Notice the use of $(var) Manufacturer="John Robbins/Wintellect"> My CANDLE.EXE command line has "-dInstallVersion=3.0.60609.0" so the 3.0.60609.0 gets poked in. It works great. Since you're doing different builds already how about defining your license file as: <Text SourceFile="EULA$(var.LocalId).rtf" /> And add -dLocalId=1033 to your command line. Note that I did no testing with this idea and it's 9:44PM on a Friday night so it might be completely brain dead thought. ;) John Wintellect - Know How http://www.wintellect.com 877-968-5528 -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of jhewes Sent: Friday, June 09, 2006 9:19 PM To: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] Localization of ScrollableText filename not working. (sorry if this message gets sent twice, but I think it failed the first time) Yes, I have a Strings1033.wxl file for my localized strings. In there I have a line: <String Id="LicenseFilename">EULA1033.rtf</String> The on the light.exe command line I add the option -loc Strings1033.wxl I have other strings in there and they work OK in other places. In fact I can put $(loc.LicenseFilename) as the text in the title bar of the license agreement dialog and that works; that is, it puts the actual filename in the title bar. It just doesn't seem to work in the 'SourceFile' attribute. Jim -----Original Message----- From: Derek Cicerone [mailto:[EMAIL PROTECTED] Sent: Friday, June 09, 2006 5:19 PM To: 'jhewes'; wix-users@lists.sourceforge.net Subject: RE: [WiX-users] Localization of ScrollableText filename not working. I don't think there is a good way to do this in 2.0 right now. The solution you suggested below seems like it should work as long as a value for the variable is supplied. Did you supply a value for the variable when calling light? Derek -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of jhewes Sent: Friday, June 09, 2006 5:12 PM To: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] Localization of ScrollableText filename not working. Sorry, forgot to mention that. I'm using version 2.0.4103. I just downloaded it a couple of days ago. -----Original Message----- From: Derek Cicerone [mailto:[EMAIL PROTECTED] Sent: Friday, June 09, 2006 4:59 PM To: 'jhewes'; wix-users@lists.sourceforge.net Subject: RE: [WiX-users] Localization of ScrollableText filename not working. What version of WiX are you using? Derek -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of jhewes Sent: Friday, June 09, 2006 4:50 PM To: wix-users@lists.sourceforge.net Subject: [WiX-users] Localization of ScrollableText filename not working. Hi, I'm new to Wix and to the list. I've been working on my installer, which needs to be multilingual. I'm using the Mondo UI. In the license agreement dialog, there are a couple of lines that define the text window that holds the text of the license agreement. It looks like this: <Control Id="LicenseText" Type="ScrollableText" X="20" Y="60" Width="330" Height="140" Sunken="yes" TabSkip="no"> <Text SourceFile="License.rtf" /> </Control> Since my license agreement text is in various languages, I have a different file for each. I wanted to modify the existing code to localize the license filename something like this: <Text SourceFile="$(loc.LicenseFilename)" /> Unfortunately this doesn't seem to work: the substitution never gets made and the linker complains that it can't find the file with filename "$(loc.LicenseFilename)". Is this my misunderstanding, a bug, or by design? If the above method cannot work, then what's the next best way to handle this? (As a last resort, I'll probably just do a file copy/rename of the license file before compiling.) Thanks! Jim _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users