Back to product page

Download method


Downloads update from the server.

Type

None

Remarks

Download method will download files from the Files collection that have NeedReplace property value set to True. Before the download, FileStart event will be fired. During the download, progress window will be shown (if you have set Visible property to True), and FileProgress event will fire. When file is downloaded, progress window will be removed, and FileDone event will be fired.

When all neccessary files are downloaded, wodAppUpdater will create two temporary files in same folder where your EXEcutable is stored. One file is configuration file that contains list of files that need to be replaced. Other file is actual executable that will perform the replacement. Keep in mind your application cannot do it by itself - since it locks the files it uses.

When all is prepared, DownloadDone event will be fired. You can call Update method from there to perform actual replacement.

Platforms

Windows