在运行时更改 WIX 安装程序语言 [英] Change WIX Installer language at run

查看:21
本文介绍了在运行时更改 WIX 安装程序语言的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

不带 Setup.exe 启动器的多语言 MSI 程序包

Multi-Language MSI Packages without Setup.exe Launcher

请帮助我使用 wix 创建没有 Setup.exe 的多语言 MSI 包.

Please help me to create multi language MSI package without Setup.exe by using wix.

我已经为不同的语言创建了 mst 文件,并使用 EmbedTransform 工具将其嵌入,但它仅适用于命令 lint 选项,如 msiexec/i SampleMulti.msi TRANSFORMS=":fr-fr.mst".如果我更改机器的语言并直接使用 msi 安装,它将无法正常工作.

I have created mst file for different languages and embedded it with EmbedTransform tool but it works only with command lint option like msiexec /i SampleMulti.msi TRANSFORMS=":fr-fr.mst". It was not working if I change language of my machine and install directly using msi.

我从帖子中关注了下面的链接,但它也没有工作如何创建能够正确更改Wix 中的 ProductLanguage 属性.

I have followed below link from post but it also did not work how to create language transformation that will correctly change the ProductLanguage property in Wix.

如果我们可以从下拉菜单中选择语言并根据安装程序语言更改也可以.

It can also be fine if we can choose language from dropdown and installer language change according.

请帮帮我.

推荐答案

您可以按照本网站上的说明进行操作:不带 Setup.exe 启动器的多语言 MSI 程序包

You can follow the directions as described on this site: Multi-Language MSI Packages without Setup.exe Launcher

简要描述的步骤:

  • 您创建一个基本的 MSI 包,并使用英语作为默认/备用语言
  • 您可以为要包含的所有其他语言创建转换
  • 您将这些转换嵌入到您的 MSI 包中(因此您基本上只有 一个 MSI 文件)
  • 您调整摘要信息流

使用的脚本取自 Windows SDK.使用此方法启动 MSI 并根据为您的系统配置的区域选项(不是 UI 语言),Windows Installer 将以相关语言显示安装(如果包含转换)或英语(如果 Windows Installer 找不到任何适当的语言转换).

The scripts used are taken from the Windows SDK. Using this method you start the MSI and based on the regional options (not the UI language) configured for your system, Windows Installer will present the installation in the related language (if a transform was included) or in English (if Windows Installer couldn't find any appropriate language transform).

我自己使用了它,包括 5 种语言,效果很好.

Used it myself with 5 languages included and worked like a charm.

这篇关于在运行时更改 WIX 安装程序语言的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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