UnauthorizedAccessException in ExtractAll stops extraction


Hello and due to some really impolite "Issues" some people seem to have (primarily and usually with themselves ;-) ) I first wish to thank the creator of this project.

Thank You.

Way better than the on-board C# API, sure, not perfect, but it's simple and works for me.

Now for the issue:
Whe using ExtractAll in conjunction with ExtractExistingFileAction.OverwriteSilently and one of the Entries is locked by the OS due to write access, user rights or similar circumstances, the procedure crashes with a System.UnauthorizedAccessException and complains that it couldn't rename the protected file:

Additional information: Access to the path 'X:\somepath\somefile.dllgvzqe1ca.rcq.PendingOverwrite' is denied.

It would be nice to get informed through the regular channels (events) but I would prefer if the copy process would go on. Or maybe an additional config property could be possible.


xankunc wrote Sep 16, 2016 at 8:37 PM

Workaround: The obvious workaround is the extract all files individually and catch the situation.