Questions tagged [versioninfo]

59 questions
182
votes
11 answers

Get file version in PowerShell

How can you get the version information from a .dll or .exe file in PowerShell? I am specifically interested in File Version, though other version information (that is, Company, Language, Product Name, etc.) would be helpful as well.
Emperor XLII
  • 13,014
  • 11
  • 65
  • 75
74
votes
13 answers

Command line tool to dump Windows DLL version?

I need a command line tool to dump standard Windows DLL version info so I can process it by means of a bash script (Cygwin). As a Java developer I am not very used to Microsoft development tools (though I have a little bit of experience with…
Fernando Miguélez
  • 11,196
  • 6
  • 36
  • 54
44
votes
2 answers

Setting application info in a Qt executable file on Windows

Anyone have an tips on setting the application info (ie. right click on .exe->properties) from Qt? I can add arbitrary version strings to Qt resource file (qrc) and display them. But most Windows installers check the version number and I can't find…
Martin Beckett
  • 94,801
  • 28
  • 188
  • 263
13
votes
3 answers

Compiling DLL with Version Information

What steps are needed to compile Version Information inside a windows DLL from the command line. I have been looking at VersionInfo files, but could not figure out how to link them to the DLL. Thank you
adk
  • 4,479
  • 9
  • 36
  • 38
12
votes
3 answers

How to compile Delphi RES file from commandline

I never worked with Delphi before, so maybe the question looks a simple minded, But I need to change FileVersion in RES resource file parameter from command line...
S2201
  • 1,339
  • 3
  • 18
  • 35
11
votes
5 answers

How to manage version information on Delphi XE2 across platforms

I am migrating projects from XE to XE2 and I have noticed that I am missing my manually entered version information such as Company Name, Product Version etc. Creating a simple empty VCL forms applications I see that data typed in for version info…
Brian Frost
  • 13,334
  • 11
  • 80
  • 154
11
votes
2 answers

How do AssemblyInfo attributes map to Win32 VERSIONINFO?

When you view the properties for a binary file that contains a VERSIONINFO resource, Windows adds a "Version" tab, which displays that information. Is there a list of which .NET assembly attributes map to which VERSIONINFO fields, so we can control…
Roger Lipscombe
  • 89,048
  • 55
  • 235
  • 380
10
votes
3 answers

Do I need afxres.h, if I am not using MFC? How do I remove it from the .RC script?

I don't know RC scripts. I want to include Product version, File version, etc. metadata into a DLL I'm building. I'm using an .rc file to do that. The build is makefile driven. I'm following along with an example .rc scrpit I found. The template…
Cheeso
  • 189,189
  • 101
  • 473
  • 713
9
votes
3 answers

Programmatically change the AssemblyVersion and AssemblyFileVersion attributes

During a setup creation process, I am planning to do the following (within a C# Script): Read the AssemblyVersion and AssemblyFileVersion attribute values of one DLL. Iterate all DLLs and executables in the project and apply those version to their…
Uwe Keim
  • 39,551
  • 56
  • 175
  • 291
7
votes
1 answer

VERSIONINFO resource not being shown in EXE properties

I'm using Delphi 10.0 Seattle on a machine with Windows 10. We have a system that has several executables. We use the version information via .rc file: 1 VERSIONINFO FILEVERSION 18,2,0,1660 PRODUCTVERSION 18,2,0,0 FILEFLAGSMASK…
Ricardo
  • 71
  • 3
7
votes
5 answers

Programmatically updating FILEVERSION in a MFC app w/SVN revision number

How do I go about programmatically updating the FILEVERSION string in an MFC app? I have a build process that I use to generate a header file which contains the SVN rev for a given release. I'm using SvnRev from http://www.compuphase.com/svnrev.htm…
swilc0x
  • 1,021
  • 1
  • 11
  • 7
6
votes
1 answer

Set EXE VersionInfo

The information on the version Exe-file I receive by means of VerQueryValue. Is there an inverse function (WinApi or Delphi) which can register (establish or change) such information? Here, for example, there is a program which is able to do so. How…
Gu.
  • 1,947
  • 4
  • 30
  • 49
6
votes
1 answer

Powershell get-item VersionInfo.ProductVersion incorrect / different than WMI

I'm trying to understand why Powershell would get back a different version number for a DLL file than what both the file properties page from Windows Explorer, and a WMI query shows. (I apologize in advance if this doesn't correctly qualify as a…
jschleicher
  • 63
  • 1
  • 1
  • 3
5
votes
1 answer

Change build number in an executable

I'm looking to change the build number (low-order of VersionLS) in the version info of an executable. So, I should read the VS_VERSIONINFO structure, change the build number and then update it back to the PE. I'm working with this code as base:…
GabrielF
  • 2,071
  • 1
  • 17
  • 29
5
votes
2 answers

Update version info with MSBuild (after binaries compilation)

I want to make a target in my MSBuild script that: Fetch SVN revision/datetime from sources folder ('svn info' command) Update VERSIONINFO resource from .EXEs and .DLLs generated by 'build' target There is something ready to accomplish this? I'm…
r00kie
1
2 3 4