NANY 2011 Entry Information
|Short Description||Command line tool to update some program update files by the version of the respective program.|
|Web Page||this page currently|
I'm afraid I'm too lacy this year to do much spare time coding. Nevertheless, I've made a tool last year which might or might not proof useful for one or the other fellow coder and which I'd like to offer for this year's NANY. Some remarks: First, it's a tool made for programmers, i.e. SW end users probably won't have much use for it. Second, it's a tool that solves a problem which probably most programmers have already solved for themselves, one way or the other. And finally, I could well imagine that some other (and better) tool already exists to solve this same problem.
So here I present UpdateVersion!
UpdateVersion is a command line tool that can update some target files containing version information with the actual version information extracted from some source file. It is implemented with some flexibility and extensibility in mind.
Currently supported sources are:
- EXEs containing a version information resource
- FARR plugins
- text files (via regular expressions)
Currently supported targets are:
- PAD files
- .dcupdate files
- versioninfo.xml files
- InnoSetup .iss files
The way I use the tool is in combination with a batch file:
SET SevenZipPath="C:\Program Files\7-Zip\7z.exe"
SET InnoSetupPath="C:\Program Files\Inno Setup 5\ISCC.exe"
%SevenZipPath% a Output\FarrMilk.zip %PHI_PROJECTS%\FarrMilk\Deploy\*.* -r -xr!.svn -tzip
Executing that batch file will first update the two files required by DCUpdater using version information extracted directly from the plugin. It will then zip everything up ready to be uploaded to the web site.
While updating these two files is not very difficult, the advantage of the tool comes when you either do it very often (saves time), or when you do it very rarely (and have forgotten what you actually have to change).
Description says it all really.
I'm open for suggestions.
Will come but will be very boring!
No installation required, just copy the .EXE and .XML to some directory.
Using the Application
See Closing remarks.
Delete the directory where the .EXE and .XML file are.
None that I know of.
I understand that this tool is of very limited value to most of the donationcoder community. Nevertheless, I'll make the following pledge:
If a single person states here that he might maybe have use for the tool, I'll actually add some documentation to it And of course I'm also open for feature requests if anyone should have some similar requirements.