Updater through Remote XML: Advice

A

AGP

I am implementing a very simple check routine that goes to my website and
reads an XML file.
The XML file basically contains all info for my apps and their current
status. All I need to do is just read
the version node and compare it to the current node and then advise the user
to visit the website
for the new version. Ive looked at ClickOnce and other methods but I would
like to implement
something simpler. Anyway, has anyone done this before? My XML will look
something like this:

<?xml version="1.0" encoding="utf-8"?>
<Apps>
<App id="0001" title="BigApp">
<!--This is a comment-->
<Name>Big Application</Name>
<LatestVersion>1.0.0.0</LatestVersion>
<DownloadURL>http://www.mysite/files/MyApp100.exe</DownloadURL>
<News>
Version 1.0.0
New feature

Version 0.90
-----------
* Original release.
</News>
</App>
</Apps>

Any advice or recommendations as to how to setup my XML file? I alreday have
the code that goes to the
remote server and reads the XML file. I guess im just asking if this is the
way to go with my simple checker.

AGP
 
J

Joe Fawcett

That looks reasonable, maybe splitting the version number into its
constituent parts would make comparisons easier but that could also be done
in the actual comparison code and you have no guarantee that all version
numbers follow the same format. (Or perhaps you do as it's your app.)
 
A

AGP

thanks for the input. i do the version checking in code and i will attempt
to cover all formats of version numbers. so it should work regardless
if i write 1 or 1.2 or 1.3.5.7.

AGP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top