Back to product page

Update method


Updates downloaded files.

Type

None

Syntax

  • Basic
object.Update 
The Update(object) syntax has these parts:
objectAn expression evaluating to an object of type wodAppUpdate.

Remarks

This is the last, 3rd step in the update process (after Check and Download methods). Update method will try to replace files without closing your application. If it succeeds doing so, it will fire UpdateDone event.

Usually, it will not succeed to replace files since they will be locked by your application. In those cases, it will start external program that doesn't lock any files and is capable of replacing files, will fire CloseApp event for you so you can close your application gracefully, but it will also post WM_CLOSE message to your application in case you ignore the event.

When your application is closed, external application will perform file update and then start your application again - but now with new version previously downloaded. If you make wodUpdS2 service available, UAC prompts usually shown on Vista OS can be completely avoided.

If you want to see what's happening with wodAppUpdate and how it decides whether update will be performed, you can set DebugFile property to get some debugging information.

Platforms

Windows