Download Method
      
 

Description

Downloads update from the server.


Return Type

None  


Syntax

object.Download



The Download Method syntax has these parts:

Part Description
object An expression evaluating to an object of type wodAppUpdate.

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.