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

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

问题描述

没有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.

请帮帮我.

推荐答案

您可以按照此网站上描述的说明进行操作:

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

简短介绍的步骤:

  • 您使用英语作为默认/后备语言创建基本的MSI软件包
  • 您要为要包括的其他每种语言创建转换
  • 您将这些转换嵌入了MSI包中(因此,您基本上只拥有一个一个 MSI文件)
  • 您调整摘要信息流
  • You create a basic MSI-package with English as default / fallback language
  • You create transforms for every other language you want to include
  • You embed those transforms within your MSI-package (so you basically just have one MSI-file)
  • You adjust the Summary Information Stream

使用的脚本来自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 Installer语言的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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