I’m using VCLZip 2.21 to unzip a zip file. I can make TVCLUnzip overwrite readonly files by setting ReplaceReadOnly to True. But how do I implement a confirmation by the user? I already added an OnSkippingFile handler setting Retry to True but this doesn’t result in an additional try. (AFAICT the Retry variable is never read.) Do you have any advice?
Share
It seems to me that you shouldn’t change
ReplaceReadOnly. Instead, setOverwriteModetoPrompt, and then handle theOnPromptForOverwriteevent. In that event, check whether the file is read-only, and only prompt if it is.Otherwise, you could try changing the read-only flag of a file in the
OnSkippingFileevent handler before settingRetry, but the documentation doesn’t say theRetryparameter is used in that situation. It only talks about retrying during zipping operations where it couldn’t open the to-be-zipped file, not during unzipping operations.