<p>People,</p>

<p>We have 4 or 5 utilities that work in conjunction with our application. These utilities are either .bat files, or VB apps, PowerBuilder, etc. I am trying to manage these utils in source control, and am trying to figure out a better way to assign versions to them. Right now, the developers use the version control's meta-data -- specifically label -- to store the version number of the tool.</p>

<p>My goal is to have individual InstallShield packages for each utility, and an easy means to manage and assign version numbers to these packages.</p>

<p>Would you recommend a separate .ini file with the info, or store the info in InstallShield .ism file itself, or just use the meta-data info from version control tool?</p>

<hr>

<p><strong>UPDATE:</strong>  </p>

<p>I like the idea Orion. I have one concern though. The script that increments the version number... it can not be intelligent enough to increment Major number etc. right. e.g. if one of the utils has version 1.2.3 and we are at a point where the new version is 2.0.0. The script may not be able to handle this. </p>

<p>I think this has to do a lot with our branching techniques -- we don't have any. The folks thought since the utils are so small, the source may not need branches.</p>

[{'answer_id': 19210, 'author': 'Orion Edwards', 'author_id': 234, 'author_profile': 'https://Stackoverflow.com/users/234', 'pm_score': 0, 'selected': False, 'text': '<p>I managed our build system at my last job, which seemed to have some parallels to what you\'re asking.</p>\n\n<p>There were ~30 C++ projects which needed compiling, and various .NET/Java things, and the odd perl script.</p>\n\n<p>This was all built on our build machine using NAnt - If I were doing it today I\'d use <a href="http://martinfowler.com/articles/rake.html" rel="nofollow noreferrer">rake</a>, but the idea is the same.</p>\n\n<p>We basically had an auto-incrementing build number which was stored in a version.txt file in the root of the repository.</p>\n\n<p>Each time we did a build (automatically done each night, or also on-demand if neccessary) the script would increment this number and check the file back into source control.</p>\n\n<p>All the other apps referenced this file for their version number, or for things which didn\'t support working like this, the script would set environment variables or perform other workarounds</p>\n\n<ul>\n<li>I\'m pretty sure that our installshield programs referenced an environment variable for their version number, but we deprecated them in favour of <a href="http://wix.sourceforge.net/" rel="nofollow noreferrer">wix</a> as installshield really did suck</li>\n<li>in the case of visual studio, grep/replace the number within the .csproj files, and check them back in</li>\n</ul>\n\n<p>Hope this gives you some ideas</p>\n'}, {'answer_id': 40417, 'author': 'Doug Porter', 'author_id': 4311, 'author_profile': 'https://Stackoverflow.com/users/4311', 'pm_score': 1, 'selected': False, 'text': '<p>PowerBuilder in particular has a nice trick you can do to incorporate the build number from an ini file into the compiled application.</p>\n\n<p>Details here: <a href="http://www.pbdr.com/pbtips/ex/autorev.htm" rel="nofollow noreferrer">http://www.pbdr.com/pbtips/ex/autorev.htm</a></p>\n\n<p>We have ini file inside source control that stores the build number and its value is used in our build scripts to determine what label to apply to the source tree after a successful build.  Works very nicely for our needs.  When we branch, we do have to manually kick the file to increment the proper number though.</p>\n'}, {'answer_id': 108688, 'author': 'Aaron Fischer', 'author_id': 5618, 'author_profile': 'https://Stackoverflow.com/users/5618', 'pm_score': 0, 'selected': False, 'text': "<p>Using the meta data from your version control system should keep things simpler.  It's how your developers already use the system.  There is no additional file to maintain.  My personal experience has taught me to version the satellite applications with the same as version as the main app. K.I.S.S</p>\n"}]
['https://Stackoverflow.com/questions/17955', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/-1/']