Jump to content
YOUR-AD-HERE
HOSTING
TOOLS
992Proxy

Locked Standalone File & Executable Updater [Class, uses XML]


F.I.G.H.T.E.R

Recommended Posts

Standalone File & Executable Updater [Class, uses XML]

 

This is the hidden content, please

 

- 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

 

[HIDE-THANKS]

This is the hidden content, please

[/HIDE-THANKS]

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.