我们可以在运行时使用语言选择 UI 本地化 WIX msi 和 bundle 吗? [英] Can we localize WIX msi and bundle using language selection UI at runtime?

查看:21
本文介绍了我们可以在运行时使用语言选择 UI 本地化 WIX msi 和 bundle 吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们在 Wix 中创建了一个 MSI 和 Bundle.我需要以弹出语言选择 GUI 并且用户可以在运行时选择语言的方式对这两者进行本地化.如果有人能帮助我,我将不胜感激.

We have an MSI and Bundle created in Wix. I need to localize both of these in such a way that language selection GUI will be popped-up and language can be selected by the user at run time. Would be really appreciated if anybody can help me on this.

对于 MSI,我正在创建另一个引导程序,用于启动语言选择组合框,并使用所需的转换(使用命令外壳)调用转换后的 MSI.我仍然不确定这种方法的可行性.我在引导程序的自定义 UI 中创建组合框并调用批处理命令以所需语言运行此 msi 时遇到问题.

For MSI, i am working on creating another bootstapper for bringing-up with language selection combobox and invoke the tranfomed MSI with the required transform(using command shell). I am still not sure about the feasibilty of this approach. I am facing issue in creating combo box in customized UI of bootstapper and invoking batch command to run this msi in the required language.

对于 Bundle - 我仍在努力寻找一种方法.如果有人对此有任何想法/示例.

For Bundle - I am still working on finding a method. if anybody has any idea/samples for this.

如果有人可以帮助我解决这个问题或为我提供另一种替代方法来满足上述要求,那将会很有帮助.

It will be helpful if anybody can help me with this issue or provide me with an another alternative method to meet above requirement.

谢谢,

推荐答案

MSI 的 UI 选择

  1. 为每种语言创建一个本地化的 MSI
  2. 选择一个基地并生成 MST
  3. 将 MST 和 MSI 打包到引导程序中.
  4. 自定义HyperlinkTheme.xml 以包含用于选择每种语言的单选按钮.
  5. 使用 Variable 标签将单选按钮从 UI 链接到 .wxs 文件
  6. 在 msi 标记中包含 msi 属性,并对 MSTInstallCondition 属性的路径进行硬编码以区分每个选择
  7. 使用最新版本的 wix 来支持此功能.
  1. Create an MSI localized for each language
  2. Pick a base and generate MST's
  3. Package the MSTs, the MSI into a bootstrapper.
  4. Customize the HyperlinkTheme.xml to include radio button for selecting each language.
  5. Use the Variable tag to link radio button from UI to .wxs file
  6. Include the msi property in the msi tag and hard code the path to MST's and InstallCondition attribute to differentiate each selection
  7. Use the latest version of wix for this feature support.

Bundle 仅支持 自动碱基检测 不支持 UI 选择

Bundle support only automatic base detection there is no support for UI selection

这篇关于我们可以在运行时使用语言选择 UI 本地化 WIX msi 和 bundle 吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆