versioninfo

Set EXE VersionInfo

二次信任 提交于 2019-12-03 06:23:39
问题 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 may it work (http://www.angusj.com/resourcehacker)? 回答1: The version information is stored via resources; to edit that you simply need to edit that resource. Here is a unit I found that can clone an existing file version information and attach it

Set EXE VersionInfo

走远了吗. 提交于 2019-12-02 19:48:09
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 may it work ( http://www.angusj.com/resourcehacker )? opc0de The version information is stored via resources; to edit that you simply need to edit that resource. Here is a unit I found that can clone an existing file version information and attach it to another file. It's very easy to do what you want starting from this code (it's coded by a

Programmatically change the AssemblyVersion and AssemblyFileVersion attributes

元气小坏坏 提交于 2019-11-28 11:19:21
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 AssemblyVersion and AssemblyFileVersion attribute values. Question now is: How to do step 2? I successfully can do step 1, but for step 2 I don't see a real start point. What I probably have to do is to use some native P/Invoke methods since the attributes directly modify the version information resource information of a DLL/executable. Any hints on

How do AssemblyInfo attributes map to Win32 VERSIONINFO?

南楼画角 提交于 2019-11-27 18:12:34
问题 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 these easily for our .NET assemblies? 回答1: Concerning the "fixed Info": PRODUCTVERSION and FILEVERSION are set from [AssemblyInformationalVersion] and [AssemblyFileVersion] respectively. FILEOS, FILETYPE are most likely set by the compiler.

Programmatically change the AssemblyVersion and AssemblyFileVersion attributes

…衆ロ難τιáo~ 提交于 2019-11-27 06:10:28
问题 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 AssemblyVersion and AssemblyFileVersion attribute values. Question now is: How to do step 2? I successfully can do step 1, but for step 2 I don't see a real start point. What I probably have to do is to use some native P/Invoke methods since the

Get file version in PowerShell

試著忘記壹切 提交于 2019-11-27 02:44:36
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. Lars Truijens Since PowerShell can call .NET classes, you could do the following: [System.Diagnostics.FileVersionInfo]::GetVersionInfo("somefilepath").FileVersion Or as noted here on a list of files: get-childitem * -include *.dll,*.exe | foreach-object { "{0}`t{1}" -f $_.Name, [System.Diagnostics.FileVersionInfo]::GetVersionInfo($_).FileVersion } Or even

Command line tool to dump Windows DLL version?

狂风中的少年 提交于 2019-11-27 00:08:22
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 Microsoft Visual Embedded C++ 4.0 and Microsoft Visual Basic 6.0). The appropriate tool seems to be mt.exe , as stated on SO . However the only chance I have found to get this little application is to download a 1.29 GB ISO of the Windows SDK for Windows Server 2008 and .NET Framework . I can not believe this is the only way to do it. I have also found a

Setting application info in a Qt executable file on Windows

淺唱寂寞╮ 提交于 2019-11-26 06:31:02
问题 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 a Qt way of setting these fields other than manually maintaining a separate .RC file Some way that lets you update this from an automated build would also be nice! 回答1: Here's how I do it... add a file called resources.rc to your project with the