WiX Burn Bootstrapper Localization

2019-04-11 12:25发布

问题:

I have a custom burn bootstrapper application with localization in german (BurnUI_de-DE.wxl) and english (BURNUI_en-US.wxl). At present burn automatically starts in english. I don't know how to change the UI language at run time. The UI parts are designed in MVVM pattern and have a language selection drop down. I have a variable to detect the systemlanguageID like this

   <Variable Name="INSTALL_LANG" bal:Overridable="yes" Type="string" Value=[SystemLanguageID]"/>

Everything is in place. Now, how do I use this variable and instruct the burn engine to change the language? Furthermore, any best practices to localize the bootstrapper ?

回答1:

Burn is very particular about how you include other languages.

As long as you have localized your UI strings (eg #(loc.MyText) ) you can follow the good example here: Bootstrapper in English and German. Max's sample solution at the bottom of the page demonstrates all of the pieces so you can carry on to do any other languages that you need. Burn will then automatically use the right language file based on the computer's LCID.

If you have localized copies of your license/EULA, this posting explains the exact path requirements which are also rather picky. Localized License File



标签: wix burn wix3.8