Questions tagged [fileversioninfo]

Use this tag for questions related to the version-information resource in Windows. Version information makes it easier for applications to install files properly and enables setup programs to analyze files currently installed. The version-information resource contains the version number of the file, its intended operating system, and the original file name.

77 questions
0
votes
1 answer

Power shell script - can we set dll Product Version when we build it?

I am new to Powershell. I am using power shell script to build VB6 dlls. $compiler = "C:\Program Files (x86)\Microsoft Visual Studio\VB98\VB6.EXE". $vbpPath= "C:\...\Desktop\ProjectFile\ProjectName.vbp" $Outputpath =…
Alden Ken
  • 142
  • 8
0
votes
0 answers

FileVersionInfo returns the wrong version when exe is changed

I have a scenario where an application update may be installed by one user, while the application is running for another logged-in user. When the other user reconnects to their session, a call to FileVersionInfo.GetVersionInfo(file) is used to check…
khargoosh
  • 1,450
  • 15
  • 40
0
votes
0 answers

How to find out what version of Pages/Numbers/Key was the file created in?

My issue is that I am not sure how to find out what was the version of apple software that a file was created in. I am not a heavy user of apple products, but I need to be able to figure out what version were files created in. I see in index.xml the…
StanM
  • 827
  • 4
  • 12
  • 33
0
votes
0 answers

Store file version in non-exe file

I often have the need to store a certain file version in a non-exe file, just the way I give a file version to an .exe, for example "1.0.392" However, I have not found a way to do that for non-exe-files (such as .db files, etc.) Is there are way to…
tmighty
  • 10,734
  • 21
  • 104
  • 218
0
votes
1 answer

Get single file version from Git

I'm trying to use Doxygen to generate documentation for my Android project and I want to use the FILE_VERSION_FILTER tag to automatically fetch the numeric version of any file. I know that Git uses hashes as id to the commits, but is there a way to…
Victor Axelsson
  • 1,420
  • 1
  • 15
  • 32
0
votes
0 answers

Windows VERSIONINFO information special chars

I wonder if there are characters that I should NOT use in the VERSIONINFO. Such that potentially will cause problems down the road. VALUE "CompanyName", "Company Name" VALUE "FileDescription", "File Description" VALUE "FileVersion",…
Rotem Varon
  • 1,597
  • 1
  • 15
  • 32
0
votes
1 answer

How to write TeamCity build counter into FILE_VERSION_INFO of dll

We have a project in git repository which is built by TeamCity into mylib.dll There is a build counter in TeamCity and we would like to label the commit being build with this counter and also to set this counter/label as FILE_VERSION_INFO in…
Tomas Kubes
  • 23,880
  • 18
  • 111
  • 148
0
votes
1 answer

How to make exe file version readable to all editions of windows system

I have 32 bit program written in c++ builder xe2, which have dynamicly linked bpl files. My program update system is based on exe file version. But in some of clients witch windows 2008 serwer 32 bit update system failed, because program see…
dlpl
  • 1
0
votes
1 answer

create a powershell script that compares file versions in a folder against the hash table

I am wondering if anyone can give me some insight as to how to setup a script that will look at a folder on your computer (say C:\Windows\System32) and be able to look at the files within the folder to compare against a predefined Hash Table. This…
learn2code
  • 19
  • 6
0
votes
1 answer

How to maintain version of file

I want to develop a document maintenance system. The problem I am facing is how to maintain version of a file? I have a one method: i.e. to create a history folder and if someone wants to update a file, he will do some changes and upload it again.…
Aditya Ekbote
  • 1,493
  • 3
  • 15
  • 29
0
votes
1 answer

Finding folders and files with same name using PowerShell

I need to extract the fileversion of certain DLL files of which I do not know the name. All I know is where the file that holds the fileversion is located and that its name is the same as the folder it is hiding beneath. In truth it's something like…
SkyRaider
  • 113
  • 3
  • 11
0
votes
0 answers

Can I change AssemblyInformationalVersion on an already compiled assembly?

We use svn revision for the ProductBuildPart of our FileVersionInfo . Because we're above revision 65536, we had to mod the number. To compensate, we stick the real number in the AssemblyInformationalVersionAttribute. This is easy enough when we…
Rob
  • 4,327
  • 6
  • 29
  • 55
0
votes
1 answer

Refreshing FileVersionInfo in Program Files directory

I have a program with a FileSystemWatcher which watches for itself to be updated to a new version by an external program (which involves renaming the current executable and copying a new one in its place). The problem is, when the file it's watching…
Bryce Wagner
  • 2,640
  • 1
  • 26
  • 43
0
votes
1 answer

Getting NSIS File Version with C#

I have scripted an installer using NSIS and added version information via VIProductVersion and VIAddVersionKey commands. When I view the properties of the compiled file, the version information is there as I expect it to be. My problem is when I…
Middas
  • 1,862
  • 1
  • 29
  • 44
0
votes
1 answer

FileVersionInfo behaves differently between a dll run from a WPF application and a command line application

I'm writing a dll which will be used in several environments, namely from our build machine. The program is responsible for getting a file's FileVersion. I'm using the following code within the .dll: public string GetVersion(string filePath) { …
Ben K.
  • 273
  • 3
  • 10