如何更改launch4j生成的exe文件的语言参数?
我正在使用 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这确实是当时 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.
您可以使用名为 Resource Hacker 的工具来更改 exe 文件的属性。
You can use a tool called Resource Hacker to change the properties of an exe file.