Describes how extracted files will overwrite existing files.
[C#]
[VB.NET]
Description
OverwriteMode value specifies whether extracted files will overwrite existing files. If you need to overwrite files always set Options.OverwriteMode to Always, if you do not need to overwrite any files set it to Never. If you want to overwrite files with the newer versions set Options.OverwriteMode to IfNewer, if you wish to overwrite only files with the older versions set it to IfOlder. If you need to ask user about overwriting files or perform some custom overwriting handling set Options.OverwriteMode to Prompt 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
|
Always
|
All existing files will be replaced with extracted files
|
IfNewer
|
Older versions of files will be replaced with extracted newer files.
|
IfOlder
|
Newer versions of files will be replaced with extracted older files.
|
Never
|
Files will not be replaced
|
Prompt
|
OnConfirmOverwrite event will be triggered each time before overwriting existing file
|