PDA

View Full Version : Revision versus Build



Peter Gysegem
02-06-2015, 03:16 PM
Back on July 11, 2011 there was a thread about the functionality of extracting the Revision and Build numbers from a full version string (FUNCTION:Retrieve Build Version Number). At least according to what I have been able to find, I think you got it backwards. Most of the sources I have found define it as:

1st set of digits = Major Version
2nd set of digits = Minor Version
3rd set of digits = Release or revision number
4th set of digits = Build number

I wish that the above definition was, uh, definitive. Unfortunately it is not. Even within Microsoft some times the 3rd and 4th sets of digits are one way and, in another product, it is reversed (.NET has it reversed from my list above). SetupBuilder does it like .NET and reverses the 3rd and 4th sets of digits from my list.

I don't suggest you make any changes to SetupBuilder but you might want to address it in the online help and the manual. I had it backwards from what SetupBuilder does it and it eventually came back to bite me.

Peter

linder
02-07-2015, 04:30 AM
Hi Peter,

IIRC, in 2001/2002 Microsoft "officially" switched to the four-part major.minor.build.revision version numbering model. That is what SetupBuilder supports. The file version is stored in two 32-bit integers.

The most common software versioning scheme (major.minor.revision.build) differs from the official "standard" Microsoft version number scheme (major.minor.build.revision). In Windows, you have to use the Microsoft version number scheme. Otherwise, you might run into a situation where you replace a new file with an older one.

And for the Microsoft Certification exam, the correct answer to "The correct format for version is major.minor.revision.build" is FALSE <g>

BTW, here is an interesting link:

http://www.unthinkability.com/software-design/version-numbers-and-those-rascals-at-microsoft/

I'll add this information to the documentation. Thank you for your suggestion!!!

Friedrich