Made a very simple script that you can use as part of the build process of your app, if it uses DcUpdater.
Purpose: Generate the DcUpdater's versioninfo.xml ready for uploading. You probably already store the product version somewhere, so just pass the product version to the app:
Call it as follows (example if your product version is 1.2.3.4):
make_versioninfo.ahk 1.2.3.4
this will generate a
_versioninfo.xml with today's date:
<?xml version="1.0"?>
<root>
<Program_Version>1.2.3.4</Program_Version>
<Program_Release_Month>05</Program_Release_Month>
<Program_Release_Day>30</Program_Release_Day>
<Program_Release_Year>2011</Program_Release_Year>
</root>
Save the following text as
versioninfo.xml:
<?xml version="1.0"?>
<root>
<Program_Version>$ProgramVersion$</Program_Version>
<Program_Release_Month>$ProgramReleaseMonth$</Program_Release_Month>
<Program_Release_Day>$ProgramReleaseDay$</Program_Release_Day>
<Program_Release_Year>$ProgramReleaseYear$</Program_Release_Year>
</root>
Save the following code as
make_versioninfo.ahk:
if 0 < 1
{
MsgBox This script requires at least
1 incoming parameter
(s
) but it only received %0%
. }
StringReplace, vf
, vf
, $ProgramReleaseMonth$
, %ProgramReleaseMonth% StringReplace, vf
, vf
, $ProgramReleaseYear$
, %ProgramReleaseYear%