Linux 如何更改 Wix 3.5 MSI 的语言?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/3677086/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-03 23:14:22  来源:igfitidea点击:

How do I change the language of a Wix 3.5 MSI?

visual-studio-2010localizationwixvotive

提问by Marcus

I have created an installer with Windows Installer XML 3.5 from within the Visual Studio 2010. The installer itself works pretty well but now I would like to change it's default language from english (1033) to german (1031). Therefore I changed the language attribute within the product tag to "1031" which should do the magic as far as I know but nothing happens. The language is still english.

我在 Visual Studio 2010 中使用 Windows Installer XML 3.5 创建了一个安装程序。安装程序本身运行良好,但现在我想将它的默认语言从英语 (1033) 更改为德语 (1031)。因此,我将产品标签中的语言属性更改为“1031”,据我所知,这应该可以发挥作用,但没有任何反应。语言还是英文。

<Product Id="MyProductId" Name="NameOfMyApp" Language="1031" Version="MyVersionNumber" Manufacturer="MyCompany" UpgradeCode="MyUpgradeCode">

What am I missing here?

我在这里缺少什么?

采纳答案by Dirk Vollmar

You need to specify the language (culture) on the command line when building as described here (or in the project properties when you are using Votive):

按照此处所述(或在使用 Votive 时在项目属性中)进行构建时,您需要在命令行上指定语言(文化):

WiX Tutorial - Do you speak English?

WiX 教程 - 你会说英语吗?

candle.exe SampleWixUI.wxs
light.exe -ext WixUIExtension -cultures:de-de SampleWixUI.wixobj

回答by Jav_1

You can also do it in Visual Studio: Project - Properties - Build - Cultures to build.

您也可以在 Visual Studio 中执行此操作:项目 - 属性 - 构建 - 要构建的文化。

Select language for WIX installer in Visual Studio

在 Visual Studio 中为 WIX 安装程序选择语言