Back to product page

ReplaceRule property


Determines file replace rules.

Type

An ReplaceRulesEnum enumeration

Syntax

  • Basic
object.ReplaceRule [= value]
The ReplaceRule(object,value) syntax has these parts:
objectAn expression evaluating to an object of type wodAppUpdate.
valueAn ReplaceRulesEnum value.

Remarks

Settings

The settings for value are:

Constant Value Description
ReplaceNever0 Never replaces.
ReplaceIfVersion 1 Replace only if higher version.
ReplaceIfDate 2 Replace only if newer creation date.
ReplaceIfModificationDate 4 Replace only if newer creation date.
ReplaceSmart 63 Replace by version, then by creation date, then by modification date.
ReplaceAlways 255 Replace always.


ReplaceRule value determines when will wodAppUpdate set NeedReplace property to True for some file. By default, ReplaceRule is set to ReplaceSmart - it will check both Version and Date (if available) to determine if local file should be updated or not. You can, however, change this behavior to suit your needs better.

Platforms

Windows