|
|
|
|
Describes how extracted files will overwrite existing files.
Unit
ZipForge
type TZFOverwriteMode = (omPrompt, omAlways, omNever, omIfNewer, omIfOlder);
Description
TZFOverwriteMode value specifies whether extracted files will overwrite existing files. If you need to overwrite files always set Options.OverwriteMode to omAlways, if you do not need to overwrite any files set it to omNever. If you want to overwrite files with the newer versions set Options.OverwriteMode to omIfNewer, if you wish to overwrite only files with the older versions set it to omIfOlder. If you need to ask user about overwriting files or perform some custom overwriting handling set Options.OverwriteMode to omPrompt and OnConfirmOverwrite event will be triggered each time before overwriting existing file.
Options.OverwriteMode can be set to any of the following values:
Value
|
Meaning
|
omAlways
|
All existing files will be replaced with extracted files
|
omNever
|
Files will not be replaced
|
omIfNewer
|
Older versions of files will be replaced with extracted newer files.
|
omIfOlder
|
Newer versions of files will be replaced with extracted older files.
|
omPrompt
|
OnConfirmOverwrite event will be triggered each time before overwriting existing file
|
|
|