You simply need to install an XML file (and optionally an icon) with your application, and then host the same XML file online with your CAB file.
First things first, what does the XML look like?
Here's my 'CamerAware' XML:
<application> <name>CamerAware</name> <version>3.08.03.29</version> <description>CamerAware Safety Camera alerting from MoDaCo</description> <versionurl>http://www.cameraware.net/apptodate/cameraware.xml</versionurl> <caburl>http://www.cameraware.net/apptodate/cameraware.cab</caburl> </application>
Simple eh? I think it's all quite self explanatory!
You see, you install this with your app (details of location below), and then host it online. When your version changes, the online XML shows a newer version number. AppToDate compares the two, and if the online one is newer, downloads and installs the CAB linked in the 'caburl' node. Beautiful simplicity!
So where do you put the file?
You install the file (e.g. cameraware.xml) to '\Application Data\AppToDate'. Optionally, you also install an icon file containing 16x16 and 32x32 icons named the same (e.g. cameraware.ico) to the same place, as that'll be used in future apptodate versions.
What about non free upgrades or other instances where a downloadable CAB isn't appropriate?
I appreciate that sometimes major upgrades for your applications won't be free and you need to provide for that, so you have the option of a 'Notification'. This is a text message that you show instead of making a download available. For ROM developers, you would make use of apptodate this way too. To create a notification, you just omit the
<application> <name>My ROM</name> <version>2.0</version> <description>Version 2 of My ROM is now available, and has lots of new features you are gonna love! Visit http://www.me.com/myrom to download! </description> <versionurl>http://www.me.com/myrom/myromversion1.xml</versionurl> </application>
or, if you have a major version upgrade on your application perhaps...
<application> <name>My Application</name> <version>2.0</version> <description>Version 2 of My Application is now available, however you are running version 1.0, and the upgrade isn't free! We do have special upgrade deals though, so come and check them out at http://www.me.com/myapp!</description> <versionurl>http://www.me.com/myapp/myappversion1.xml</versionurl> </application>
Easy! You can see what it looks like in the application in the screenshots in this post.
Feedback welcomed!
P








