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

发布于 2025-01-03 15:01:35 字数 614 浏览 7 评论 0原文

我正在使用 Eclipse 中的 launch4j ANT 任务生成 java 程序的 Windows 可执行 EXE 文件。 在 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}"
/>

到目前为止一切都很完美。可执行文件已构建并运行良好。

但是,当查看文件的属性详细信息时(右键单击 => 属性 => 详细信息),即使我使用的是德语 Windows 版本,我也会得到值为“英语(美国)”的“语言”属性,因此会期望它是“德语”。

您知道是否有(可能隐藏或未记录?)launch4j 配置选项将语言属性设置为“德语”?

I'm producing a windows executable EXE file of my java program with an ANT task of launch4j in Eclipse.
In the ANT task I'm using a saved launch4j config file (xml) and additionally overwrite the version information.

<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".

Do you know whether there is a (probably hidden or undocumented?) launch4j config option to set the language property to "German"?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

雪化雨蝶 2025-01-10 15:01:35

这确实是当时 launch4j 中缺少的功能。

3.9版本(2016-07-20)添加了此功能并且运行良好。

请参阅 变更日志问题 了解详细信息。

This was indeed a missing feature in launch4j back then.

Version 3.9 (2016-07-20) added this feature and it works fine.

See CHANGELOG and issue for details.

风情万种。 2025-01-10 15:01:35

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

You can use a tool called Resource Hacker to change the properties of an exe file.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文