|
With the rt_version utility, you can insert and edit Win32 version resources in PE32, PE32+ and RES files and version attributes in .NET assemblies.
Command-line syntax:
rt_version filename option option option ...
filename - path and name of the PE32, PE32+, RES file or .NET assembly.
If the file name or a parameter of an option contains spaces, it must be enclosed in quotes. For example:
rt_version "c:\test files\somefile.exe" -c:"2010 Radialix Software"
Running rt_version without parameters displays help on the command-line options.
General options:
- [] - optional parameter.
- -q - quiet mode.
Options for Win32 version resources:
- -v[:%d[,%language]] - insert/select version resource. Selecting the version resource is necessary when the file contains several version resources. Normally a file has one version resource.
- -ifv[:%i] - increment version number by %i. Without the %i parameter specified, the value is incremented by 1.
- -fv:%d.%d[.%d] - set version number.
- -gfv - read version number.
- -pv:%d.%d[.%d][.%d] - set product version.
- -gpv - get product version.
- -l:%language - set the language for the strings in the version resource.
- -fd:"%s" - set the 'FileDescription' string.
- -gfd - get the 'FileDescription' string.
- -pn:"%s" - set the 'ProductName' string.
- -gpn - get the 'ProductName' string.
- -in:"%s" - set the 'InternalName' string.
- -gin - get the 'InternalName' string.
- -of:"%s" - set the 'OriginalFilename' string.
- -gof - get the 'OriginalFilename' string.
- -cn:"%s" - set the 'CompanyName' string.
- -gcn - get the 'CompanyName' string.
- -c:"%s" - set the 'LegalCopyright' string.
- -gc - get the 'LegalCopyright' string.
- -tm:"%s" - setthe 'LegalTrademarks' string.
- -gtm - get the 'LegalTrademarks' string.
- -cm:"%s" - set the 'Comments' string.
- -gcm - get the 'Comments' string.
- -s:"%name,%value" - set the string with the name %name to the value %value
- -g:"%name" - get the string with the name %name.
Parameters:
- %language - decimal language code, hexadecimal language code (0x...) or language name. If this parameter is not specified, the utility will use the neutral language (NEUTRAL, language code 0). The list of all supported languages can also be obtained with the rt_language utility.
- %i - signed decimal or unsigned hexadecimal (0x...) number
- %d - unsigned integer.
- %s,%name,%value - strings.
Options for .NET resources:
- -iav[:%i] - increment version number by %i. Without the %i parameter specified, the value is incremented by 1.
- -av:%d.%d[.%d][.%d] - set build version number.
- -gav - build version number
- -ad:"%s" - set value for the System.Reflection.AssemblyDescriptionAttribute attribute.
- -gad - set value for the System.Reflection.AssemblyDescriptionAttribute attribute.
- -at:"%s" - set value for the System.Reflection.AssemblyTitleAttribute attribute.
- -gat - get value for the System.Reflection.AssemblyTitleAttribute attribute.
- -atm:"%s" - set value for the System.Reflection.AssemblyTrademarkAttribute attribute.
- -gatm - get value for the System.Reflection.AssemblyTrademarkAttribute attribute.
- -ac:"%s" - set value for the System.Reflection.AssemblyCopyrightAttribute attribute.
- -gac - get value for the System.Reflection.AssemblyCopyrightAttribute attribute.
- -apn:"%s" - set value for the System.Reflection.AssemblyProductAttribute attribute.
- -gapn - get value for the System.Reflection.AssemblyProductAttribute attribute.
- -acn:"%s" - set value for the System.Reflection.AssemblyCompanyAttribute attribute.
- -gacn - get value for the System.Reflection.AssemblyCompanyAttribute attribute.
Parameters:
- %i - signed decimal or unsigned hexadecimal (0x...) number
- %d - unsigned integer.
- %s - string.
Examples:
Increment file version number:
rt_version "c:\test files\somefile.exe" -ifv
Set product and file version number:
rt_version "c:\test files\somefile.exe" -fv:2.3.234.1567 -pv:2.3
Set the LegalCopyright string:
rt_version "c:\test files\somefile.exe" -c:"2010 Radialix Software"
|