I have several VB6 exe’s/dll’s that I have created, when I right click on the file and get the properties it says:
File version–4.2.0.9Product Version–4.02.0009
Is it possible to change the File Version? I want this to say 4.2.9.123
I want to change this programmatically, so where is the file would I find these values? Are they at a specific location?
Is this going to cause an issue registering the exe/dll’s with COM if I change the internal version?
(If anyone has a code solution, my language of choice is VB.NET)
You need to use Win32 API calls to do this – specifically the UpdateResource function to modify the VERSIONINFO resource.
Have a look at http://www.codeproject.com/Articles/6317/Updating-version-information-at-run-time and Replace Version Info Resource for more details.
You can probably use P/Invoke but it may be simpler to just go with C++.