4

I need to build an old VB6 application with a version number where the 4th digit is greater than 9999, for example, version 1.2.0.10003. VB6 won't let you do this; the build fails.

The current workaround is to build version 1.2.0.9999 and then manually edit the file in Visual Studio to insert the correct version. There must be a better way. Is there a command-line tool that allows you to modify the version number fields of an EXE or DLL? Preferably a way that allows you to edit specific version number fields individually.

4

5 回答 5

3

ChangeVersion (and others) taken from:

How do I set the version information for an existing .exe, .dll?

于 2009-03-03T19:47:01.797 回答
2

There are a number of tools for editing the version info of a windows executable but I don't think you will need them.

Look here are using resource files in vb http://visualbasic.about.com/od/usevb6/a/ResVB6.htm

And here for info on the version resource http://msdn.microsoft.com/en-us/library/aa381058.aspx

And here for info on the microsoft resource compiler http://msdn.microsoft.com/en-us/library/aa381042(VS.85).aspx

With these two you should be able to disable VB's builtin versioning and use whatever version info you want.

Nevermind, VB6 inserts its own version resource as a post build operation with no way to turn it off. Overwriting the version info in the executable is the only solution.

See http://www.darinhiggins.com/?s=%22resource+files%22

于 2009-03-03T19:52:58.273 回答
1

Resource Tuner Console

This console resource editor allows creating a reliable and repeatable process for updating Product Version Information resources during the final stage of the build process from the command prompt.

See specifically the batch manipulation of file version information page for greater details:

于 2009-07-10T00:10:47.440 回答
1

StampVer

于 2011-03-16T19:16:35.553 回答
0

I think editbin might be a better solution (installed with Visual Studio)

于 2014-08-19T19:21:56.257 回答