简体   繁体   English

如何更改launch4j生成的exe文件的语言参数?

[英]How can I change the language parameter of an exe file generated by launch4j?

I'm producing a windows executable EXE file of my java program with an ANT task of launch4j in Eclipse. 我正在生成一个我的java程序的Windows可执行EXE文件,其中包含Eclipse中的init4j的ANT任务。 In the ANT task I'm using a saved launch4j config file (xml) and additionally overwrite the version information. 在ANT任务中,我使用保存的launch4j配置文件(xml)并另外覆盖版本信息。

<launch4j
    configFile="${launch4j.config.dir}/paginaEPUBChecker.xml"
    fileVersion="${program.version.number}"
    txtFileVersion="${program.version.txtNumber}"
    productVersion="${program.version.number}"
    txtProductVersion="${program.version.txtNumber}"
/>

Everything is working perfect so far. 到目前为止,一切都很完美。 The executable is built and runs just fine. 可执行文件已构建并运行良好。

But when looking into the file's property details (right click => properties => details) I get the "language" property with the value "English (US)" even though I'm working with a German Windows version and therefore would expect it to be "German". 但是当查看文件的属性详细信息时(右键单击=> properties => details)我得到“language”属性,其值为“English(US)”,即使我正在使用德语Windows版本,因此我希望它成为“德国人”。

Do you know whether there is a (probably hidden or undocumented?) launch4j config option to set the language property to "German"? 你知道是否有一个(可能隐藏或未记录?)launch4j配置选项将语言属性设置为“德语”?

您可以使用名为Resource Hacker的工具来更改exe文件的属性。

This was indeed a missing feature in launch4j back then. 这确实是当时launch4j中缺少的功能。

Version 3.9 (2016-07-20) added this feature and it works fine. 版本3.9(2016-07-20)添加了此功能,它工作正常。

See CHANGELOG and issue for details. 有关详细信息,请参阅CHANGELOG发布

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM