如何设置现有 .exe、.dll 的版本信息? [英] How do I set the version information for an existing .exe, .dll?

查看:21
本文介绍了如何设置现有 .exe、.dll 的版本信息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

作为我们构建过程的一部分,我需要为所有编译的二进制文件设置版本信息.有些二进制文件已经有版本信息(在编译时添加),有些没有.

As part of our build process I need to set the version information for all of our compiled binaries. Some of the binaries already have version information (added at compile time) and some do not.

我希望能够应用以下信息:

I want to be able to apply the following information:

  • 公司名称
  • 版权声明
  • 产品名称
  • 产品描述
  • 文件版本
  • 产品版本

所有这些属性都由构建脚本指定,必须在编译后应用.这些是使用 C++ Builder 2007 编译的标准二进制文件(不是程序集).

All of these attributes are specified by the build script and must be applied after compilation. These are standard binaries (not assemblies) compiled with C++ Builder 2007.

我该怎么做?

推荐答案

虽然它不是批处理,但 Visual Studio 也可以添加/编辑文件资源.

While it's not a batch process, Visual Studio can also add/edit file resources.

只需在 .EXE 或 .DLL 上使用 File->Open->File.这对于在构建后修复版本信息或将其添加到没有这些资源的文件中非常方便.

Just use File->Open->File on the .EXE or .DLL. This is handy for fixing version information post-build, or adding it to files that don't have these resources to begin with.

这篇关于如何设置现有 .exe、.dll 的版本信息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆