versioninfo

Compiling DLL with Version Information

﹥>﹥吖頭↗ 提交于 2021-02-04 14:48:26
问题 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 回答1: You need to create a version resource and add it to your project. This can be very easily done from within visual studio. in VS 2008, right click a folder of the project, choose add and under "Visual C++" select "Resource File" (not resource template), in the resource file just created

How do I localize VersionInfo of an Inno Setup installation file?

≯℡__Kan透↙ 提交于 2020-04-10 03:57:06
问题 I am creating an application that has a different name depending on the user language. So for example the software is called "Device Emulator" in English and "Geräteemulation" in German. I want to reflect the different names in the Version Info of the setup file (right click -> Properties -> "Details" tab). So far I have found no way in Inno Setup to specify a localized "VersionInfo" , neither in the online help nor on the net. Originally I tried to use custom messages in the setup sections

Get file version in PowerShell

一世执手 提交于 2019-12-28 01:40:34
问题 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. 回答1: 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}"

Command line tool to dump Windows DLL version?

倖福魔咒の 提交于 2019-12-17 06:29:05
问题 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

Modify the version information of a built .NET assembly

血红的双手。 提交于 2019-12-11 02:46:21
问题 Is there a better way to modify the version information of a .NET assembly of the one I am currently using. My current approach is the following. I do disassemble the assembly with ildasm : ildasm /nobar Riolo.WebUI.dll /out=Riolo.WebUI.il This will generated also a Riolo.WebUI.res compiled resource file, that I then open and modify with the user interface of Visual Studio, then I do reassemble the assembly back with ilasm : ilasm Riolo.WebUI.il /OUTPUT=Riolo.WebUI.dll /RESOURCE=Riolo.WebUI

How to inject the right version information into the resources at compile time?

空扰寡人 提交于 2019-12-10 23:46:06
问题 I was surprised to discover that apparently it is not possible to import C predefined macros inside the resource files ( .rc ) because Resource Compiler is not able to deal with them. I was trying to put the version information inside a version.h that would be generated / updated by the build system. This file was supposed to be included from the resource.rc so when you build the resources you will always get the same versions across all the built files. It seems that this has something to do

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

风格不统一 提交于 2019-12-10 04:04:49
问题 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 to update a header file which I use to set the caption bar of my MFC app. Now I want to use this #define for my FILEVERION info. What's the best way to proceed? 回答1: An .rc file can #include header files just like .c files can. I have an auto

Extract Assembly Version from DLL using Python

孤街浪徒 提交于 2019-12-07 15:37:32
问题 I'm trying to extract some version information from a DLL using python. I read this question: Python windows File Version attribute It was helpful, but I also need to get the 'Assembly version' from the DLL. It's there when I right click and look on the versions tab, but not sure how I extract this with python. On this page: http://timgolden.me.uk/python/win32_how_do_i/get_dll_version.html Tim Golden says: You can use the slightly more messy language-dependent code in the demos which come

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

一个人想着一个人 提交于 2019-12-06 02:30:01
问题 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 coding question.) The scenario: Running the following powershell command: (get-item C:\windows\system32\rdpcorekmts.dll).VersionInfo.ProductVersion This returns the following: 6.1.7600.16385 However, this version number is incorrect. When examining

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

让人想犯罪 __ 提交于 2019-12-04 08:52:24
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 coding question.) The scenario: Running the following powershell command: (get-item C:\windows\system32\rdpcorekmts.dll).VersionInfo.ProductVersion This returns the following: 6.1.7600.16385 However, this version number is incorrect. When examining the version information from Windows Explorer, you see the following version (sorry, I tried posting a