After reading a little closer, if the Components are completely independent then you can put the resources in separate .wxs files and use the linker command-line + .wxl files to determine the final product (i.e. only provide English files + English .wxs files to build the English product and vice versa for Japanese).
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Neil Enns Sent: Monday, July 28, 2008 20:44 To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] How to include localized components? To elaborate a bit on what Rob states below (thanks for setting me straight, Rob!), you can use !(loc) variables as the value for the Source attribute on a <File> element. So in your Japanese localization file you can set a String property to the path to the Japanese version of the files on disk, and in the English localization file the path can be to the English files. Neil ________________________________ From: [EMAIL PROTECTED] [EMAIL PROTECTED] On Behalf Of Rob Mensching [EMAIL PROTECTED] Sent: Monday, July 28, 2008 8:35 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] How to include localized components? .wxl files are an easier way to do this. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Ballou Sent: Monday, July 28, 2008 18:51 To: wix-users@lists.sourceforge.net Subject: [WiX-users] How to include localized components? I currently have two installs for my product. One in English and one in Japanese. Most files are the same for both languages, but some files are different. I was planning to use Wix include files (wxi) for the languages (one for English, and one for Japanese). I could then include the correct components and files in the Japanese install and separate components and files in the English install. I'm currently using VS 2008 with Wix to build my project which can build both the English and Japanese at the same time, but I'm trying to see how I can use a preprocessor variable to perform the right include. So my main .wxs file would have this at the top: <?if $(var.Culture) = 'ja-JP' ?> <?include ProductJapanese.wxi ?> <?endif ?> Is that possible, or is there a much easier way to do this? I don't see any variables for the culture currently being built. Thanks, Mike Ballou ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users