I have a program that reads and saves data with an xml file. Once it is released, there is a "Check for update" button that the user will click to see if there is a new version of the xml file. The file contains the version number, ex: <Root><Version><Current>0.0001</Current></Version></Root>
I need a way for the application to find the xml file that is updated on the server, check the version number, compare it to the xml within the application, and then replace that file with the new one if applicable.
My logic so far:
' Public Variable As Single = "Version/Current" Read/Declare each time application runs
' Increment Variable each time file is saved
' When Check For Updates is clicked, connect to site and download xml. Create oldVersion variable and read xml for version.
' Declare newVersion variable. If newVersion > oldVersion Then: replace old file with downloaded file.
I am searching, but I need this done soon, so any help is GREATLY appreciated!
I need a way for the application to find the xml file that is updated on the server, check the version number, compare it to the xml within the application, and then replace that file with the new one if applicable.
My logic so far:
' Public Variable As Single = "Version/Current" Read/Declare each time application runs
' Increment Variable each time file is saved
' When Check For Updates is clicked, connect to site and download xml. Create oldVersion variable and read xml for version.
' Declare newVersion variable. If newVersion > oldVersion Then: replace old file with downloaded file.
I am searching, but I need this done soon, so any help is GREATLY appreciated!