ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > DcUpdater

DcuHelper.exe v1.10 (7/12/11) - Update checking for your apps (dcupdater compat)

<< < (8/18) > >>

Deozaan:
Very nice! It's much improved and works like a charm!

skwire:
Here's an excerpt of AHK code from my post-compile script that I use to automatically generate the necessary trout.dcupdate and versioninfo.xml files for my Trout audio player.  You will need Skan's FileGetVersionInfo() function.  Obviously, change paths and other specific information to suit your app and environment.


--- ---; Get verion and define paths.
AppName           := "Trout"
Version_String    := FileGetVersionInfo( A_ScriptDir . "\" . AppName . ".exe", "FileVersion" )
Version_Info_Dir  := A_ScriptDir . "\setup"
DcUpdate_Info_Dir := A_ScriptDir . "\setup\trout"

; Generate other needed bits.
myTime := A_Now
FormatTime, Version_Month, %myTime%, M
FormatTime, Version_Day  , %myTime%, d
FormatTime, Version_Year , %myTime%, yyyy

; Generate versioninfo.xml file contents.
Version_Info =
(
<?xml version="1.0"?>
<root>
<Program_Version>%Version_String%</Program_Version>
<Program_Release_Month>%Version_Month%</Program_Release_Month>
<Program_Release_Day>%Version_Day%</Program_Release_Day>
<Program_Release_Year>%Version_Year%</Program_Release_Year>
</root>
)

; Delete and recreate Version_Info file.
FileDelete, %Version_Info_Dir%\versioninfo.xml
FileAppend, %Version_Info%, %Version_Info_Dir%\versioninfo.xml

; Generate .dcupdate file contents.
DcUpdate_Info =
(
<?xml version="1.0" ?>

<Local>

<!-- basic info to display in updater-->
<Label>%AppName%</Label>
<IconFile>%AppName%.exe</IconFile>


<!-- version info of locally installed current version, and simple remote version file -->
<Version>%Version_String%</Version>
<VersionFileRemote>http://skwire.dcmembers.com/apps/trout/versioninfo.xml</VersionFileRemote>


<!-- where to get more info about the app remotely, only queried once an update is discovered -->
<InfoFileRemote></InfoFileRemote>
<WebPage>https://www.donationcoder.com/forum/index.php?topic=16157.0</WebPage>

<!-- ok how to conduct updates; could be: "Run" (download and run program), or "Visit" (visit website), or "Unzip" (download zip and unpack over files) -->
<UpdateMethod>run</UpdateMethod>
<CloseForUpdate>trout.exe</CloseForUpdate>
<UpdateFile>http://skwire.dcmembers.com/apps/trout/trout_setup.exe</UpdateFile>

</Local>
)

; Delete and recreate DcUpdate file.
FileDelete, %DcUpdate_Info_Dir%\%AppName%.dcupdate
FileAppend, %DcUpdate_Info%, %DcUpdate_Info_Dir%\%AppName%.dcupdate

justice:
Oh nice one bookmarked.

mouser:
I had a thought.. without adding much size to dcuhelper.exe i could add a minimialist built in update check into dcuhelper.exe.

In other words, right now what dcuhelper does is if the dcupdater big utility is not installed, it opens the program web page so user can check version themself.

But it wouldnt be hard or add much size to add a really quick and dirty version check into dcuhelper.exe itself, so that it could inform the user when there is a new version and then open the program website, or do nothing if a new version is not ready.

The advantage of this is that it would be more useful to people who don't want to install the larger dcupdater tool and make it viable to use dcuhelper.exe itself as a very lightweight update checker.

skwire:
I like this idea.   :D

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version