Many thanks to Blair and Neil! I formatted the license files to rtf format. And I tried the simple way as Neil suggested. It works good. I tried both Visual Studio build and command line build, they all work.
Best regards, Chunyan -----Ursprüngliche Nachricht----- Von: Blair [mailto:os...@live.com] Gesendet: Freitag, 4. September 2009 02:42 An: 'General discussion for Windows Installer XML toolset.' Betreff: Re: [WiX-users] How to show different language license files? >From Visual Studio: instead of using the Cultures property to make >several MSIs with different EULAs, you need to instead either make different wixproj files (one for each license) or separate your "default" language build from your "localized" language builds and override the property you use to set the license rtf file in each separate invocation of MSBuild. This of course means you have just made your build process more complicated. We should write a proposal to make the current cultures accessible from the linker somehow (such as a linker or binder var) so that building multiple MSIs (one for each culture) from one invocation of one project can change EULAs or alternately allow WixUILicenseRtf to be a loc var instead of a wix var. -----Original Message----- From: Blair [mailto:os...@live.com] Sent: Thursday, September 03, 2009 10:22 AM To: 'General discussion for Windows Installer XML toolset.' Subject: RE: [WiX-users] How to show different language license files? Let me retract my solution. At one time they were in the same namespace, but it appears that doesn't work now. Are you building from VS/MSBuild or from "command-line" (such as makefile/nant/etc.)? -----Original Message----- From: Blair [mailto:os...@live.com] Sent: Thursday, September 03, 2009 9:54 AM To: 'General discussion for Windows Installer XML toolset.' Subject: Re: [WiX-users] How to show different language license files? Your license files MUST be RTF, not plain text. WixVariables and WiX Localization values (even though they are accessed using two different namespaces: var & loc) actually occupy the same namespace. So, here is what you do: In your .wxl files, create a string called WixUILicenseRtf. Remove the entry for licenseRtf from your .wixproj, and put that path in your English .wxl file as the value of the WixUILicenseRtf string. In your other .wxl files (for your other languages) you instead use the paths to your translated RTF license files. -----Original Message----- From: Jiang, Chunyan (GE Healthcare) [mailto:chunyan.ji...@ge.com] Sent: Thursday, September 03, 2009 1:46 AM To: General discussion for Windows Installer XML toolset. Subject: [WiX-users] How to show different language license files? Hi Wix-users, I want to show the license text in the license dialog. According to the example, <Control Id="LicenseText" Type="ScrollableText" X="20" Y="60" Width="330" Height="140" Sunken="yes" TabSkip="no"> <Text SourceFile="!(wix.WixUILicenseRtf=$(var.licenseRtf))" /> </Control> And in .wixproj, define: licenseRtf=D:\Work\Program Doc\Wix\src\ext\UIExtension\wixlib\license.rtf; Then the license dialog can show the license text. However, if I want to show license as different language. How can I do it? I have alreay different language license text files, like germany.txt, france.txt, italy.txt. Best regards, Chunyan ---------------------------------------------------------------------------- -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ---------------------------------------------------------------------------- -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users