克隆装配信息
目前我正在使用 ResHacker 来读取和设置程序集信息。我正在使用 C# 应用程序运行 ResHacker,并使用读取和设置程序集信息所需的正确命令行参数。但是,我想在没有第三方应用程序的情况下执行此操作。
我想控制以下内容:
File description:
Company Name:
File Version:
Date Created:
Currently I am using ResHacker to read and set assembly information. I am using my C# application to run ResHacker with proper command line arguments necessary for reading and setting the Assembly information. However, I would like to do this without a third party application.
I want to control the following:
File description:
Company Name:
File Version:
Date Created:
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您似乎需要编辑 VERSIONINFO 资源。要操作资源,可以使用资源函数:
FindResource
LoadResource
BeginUpdateResource
UpdateResource
EndUpdateResource
。请参阅此处获取示例代码(Win32,但转换为Win32应该不会太难P/调用)。
VERSIONINFO
记录本身的结构有些复杂,包含可变长度和嵌套记录。请查看此说明。It seems that you need to edit the VERSIONINFO resouce. To manipulate resources, you can use the resource functions:
FindResource
LoadResource
BeginUpdateResource
UpdateResource
EndUpdateResource
.See here for sample code (Win32 but shouldn't be too hard to convert to P/Invoke). The structure of the
VERSIONINFO
record itself is somewhat complicated and contains variable-length and nested records. Have a look at this description.