Here is my code:
    <BootstrapperApplicationRef
Id="WixStandardBootstrapperApplication.HyperlinkLargeLicense">
      <bal:WixStandardBootstrapperApplication
        LicenseUrl="http://www.company.com/license.html";
        LocalizationFile="Resources\QDthm.wxl"
        ThemeFile="Resources\QDthm.xml"
        LogoFile="Resources\logo.png"
        ShowVersion="yes" />

      <!-- WixStdBa requires spcific names, at run time, in the temporary
.BA1 folder.  XML and png file is only needed for layout changes.
         Payload/@Name for .wxl must be <lcid>\thm.wxl
         Payload/@Name for .xml must be <lcid>\thm.xml AND must also have
logo.png in same folder.-->
      &lt;Payload Id="theme_de_de" Compressed="yes"  Name="1031\thm.wxl"
SourceFile="Resources\1031\QDthm_de_de.wxl"/>
      &lt;Payload Id="theme_en_us" Compressed="yes"  Name="1033\thm.wxl"
SourceFile="Resources\1033\QDthm_en_us.wxl"/>
      &lt;Payload Id="theme_es_es" Compressed="yes"  Name="1034\thm.wxl"
SourceFile="Resources\1034\QDthm_es_es.wxl"/>
      &lt;Payload Id="theme_fr_fr" Compressed="yes"  Name="1036\thm.wxl"
SourceFile="Resources\1036\QDthm_fr_fr.wxl"/>
      &lt;Payload Id="theme_it_it" Compressed="yes"  Name="1040\thm.wxl"
SourceFile="Resources\1040\QDthm_it_it.wxl"/>
      &lt;Payload Id="theme_ja_jp" Compressed="yes"  Name="1041\thm.wxl"
SourceFile="Resources\1041\QDthm_ja_jp.wxl"/>
      &lt;Payload Id="theme_zh_cn" Compressed="yes"  Name="2052\thm.wxl"
SourceFile="Resources\2052\QDthm_zh_cn.wxl"/>

    &lt;/BootstrapperApplicationRef>
 
    &lt;Variable Name='InstallFolder' Type='string'
Value='[ProgramFilesFolder]Company\' Persisted='yes' bal:Overridable='yes'/>

    &lt;Chain>

      &lt;MsiPackage Id='QuickDisc' Cache='yes' CacheId='guid'
                  Vital='yes' Name='data\my.msi'
SourceFile='$(var.QDMsiOutput)\my.msi'
        &lt;MsiProperty Name='INSTALLFOLDER' Value='[InstallFolder]' />
        &lt;MsiProperty Name='TRANSFORMS' Value='!(loc.QDTransfrom)'/>
      &lt;/MsiPackage>
    &lt;/Chain>


I looked at your code.  You do not have any translated Payload .wxl files
with name attributes in the form "LCID\thm.wxl" , etc.  So when the bundle
runs it looks for these added payloads in sub folders named by the LCID
(such as 1031, 1033, etc) and selects the one that matches, first the
UserDefaultLangID and then the SystemDefaultLangID ( from reading the post
that Neil made).  You can use ProcessMon to see it try to find these files
even if you do not have them in your project.  When you add them to you r
project it will select the correct one (if you either use a 3.7 Extended BA
or 3.8).

Also it is my understanding that WiX 3.7.1224 has a bug that affects this
behavior, but Neil says that if you use the code from the Extended
Bootstrapper site (http://wixextba.codeplex.com/releases/view/105895) he has
fixed that issue.  He has also included this code in WiX 3.8 which is the
path I took.

The examples are in the zip package at the above link, or you can look at
them at:
http://wixextba.codeplex.com/SourceControl/latest

Once you add the wxl payloads to the Extended Bootstrapper Application, and
get that working, then you can eliminate the SysLang and UserLang variables
in your code and create string entries in your wxl table like I did.  Pass
the string entry to a TRANSFORMS property for your MSI and that prevent your
MSI from getting a unsupported value because you have a LCID\thm.wxl file
for each supported language and burn will only select on of the .wxl.

I have two msi packges in my chain, and they require that the TRANSFORMS
property be different so I use (in 1031\thm.wxl):
  <String Id="CDDTransform">1031.mst</String>
  <String Id="QDTransfrom">:1031.mst</String>

One of my MSIs does not have a 1033.mst and the other does so I do this for
English 1033\thm.wxl (passing a null string to the TRANSFORMS property does
not select any trasnform):
  <String Id="CDDTransform">1033.mst</String>
  <String Id="QDTransfrom"></String>





--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Adding-language-transform-mst-s-to-Burn-Bundle-Chain-tp7586986p7588124.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to