Short manual of ChangeRes
ChangeRes is a command line utility that allows you to change the contents of a .res (resource) file.
It can be useful in using batch building of (Delphi) projects.
Usage:
ChangeRes Filename (-U) (-F Filename) ([VERSIONINFO]) Settings
Filename: The name of the project resource file (.res extension is optional)
-U: Update option file (.dof, .bdsproj, dproj, .bpk) (Optional)
-F Filename: Get the settings from a file (inifile format) (Optional)
Settings: The things you wish to set (Optional)
From version 1.3 and higher the [VERSIONINFO] part is optional, if it is not included it presumes that you mean versioninfo.
The settings can be one of the following:
FileVersion=n.n.n.n(/s):
Set the FileVersion. 'n' can be one of the following:
ProductVersion=n.n.n.n(/s):
Set the ProductVersion. See explanation of FileVersion
FileFlags=+/-Flags:
Set FileFlags. FileFlags can be one of the following: VS_FF_DEBUG, VS_FF_PRERELEASE,
VS_FF_PATCHED, VS_FF_PRIVATEBUILD, VS_FF_INFOINFERRED, VS_FF_SPECIALBUILD.
Example: FileFlags=+VS_FF_PATCHED-VS_FF_DEBUG
FileDate=yyyymmddhhnnss or now or today:
Set versioninfo's filedate. You can skip the time part and include only the
date. now sets the date and time to now and today sets the
date to today and leaves the time blank
Example: Filedate=20070301 or Filedate=20070301235900 or Filedate=today
\StringFileInfo\\String=Value:
Set value of a String.
Example: \StringFileInfo\\CompanyName=Tiriss
-\StringFileInfo\\String:
Remove the string.
Example: -\StringFileInfo\\CompanyName
Examples:
ChangeRes Project1.res -U [VERSIONINFO] FileVersion=1.2.3.4/s ProductVersion=1.2.0.0 \StringFileInfo\\CompanyName=MyCompany
ChangeRes Project1.res FileVersion=...+1/s FileDate=20030301010203
ChangeRes Project1 -U FileVersion=.yyddd.hhnn.ss/s ProductVersion=.yyddd.0.0/s
ChangeRes Project1 -U -F VersionInfo.ini
Example of VersionInfo.ini:
[VERSIONINFO]
FileVersion=1.2.3.4/s
ProductVersion=1.2.0.0
You can only change VersionInfo parts (yet) of win32 executables and libraries with ChangeRes
© MMVII Tiriss