F.I.G.H.T.E.R Posted August 21, 2014 Share Posted August 21, 2014 Standalone File & Executable Updater [Class, uses XML] This is the hidden content, please Sign In or Sign Up - NOTE I know you can also use ClickOnce or any other plugin/library for this. But i just liked creating this and was for learning purposes. - Usage Define a new Updater instance. -> Parameters: local or weblink to the .xml file. UpdateCurrentExecutable() -> Forces to update the current executable with the given download link in the .xml file and executes it. UpdateCurrentExecutableIfNeeded() -> Asks the user to update the current executable, if there is a new update available. UpdateFile(string path) -> Forces to update the file to the given path, with the given download link in the .xml file. UpdateFileIfNeeded(string path) -> Asks the user to update to the given path, if there is a new update available. DownloadLatestUpdate() -> Downloads the latest update available and saves it in the temporary folder. Returns the path to the file. DownloadUpdate(Update update) -> Downloads the given update and saves it in the temporary folder. Returns the path to the file. - Requirements You will need a .xml file somewhere to read your updates from. This .xml file could be local or somewhere on the web. The Updater class uses this .xml format: This is the hidden content, please Sign In or Sign Up [HIDE-THANKS] This is the hidden content, please Sign In or Sign Up [/HIDE-THANKS] Link to comment Share on other sites More sharing options...
Recommended Posts