Xceed .NET Libraries Documentation
Self-extractor binary error codes
Welcome to Xceed .NET, .NET Standard and Xamarin Libraries! > Basic Concepts > Zip and streaming capabilities > Self-Extracting Zip Files > Self-extractor binary error codes

Various errors can be returned by a self-extracting zip file when it is being   executed. These errors appear in a message box (if you haven't turned that off when configuring the binary) and are also returned by the "main" function, thus affect the %ERRORLEVEL% batch command variable, like traditional command-line applications do. 

The following errors and warnings can be returned: 

Error/Warning Error # Description
xcdWarningGeneral

10

The XcdWarningGeneral constant is a value indicating that some minor structural inconsistencies were detected in the archive file. If this warning occurs, files in the archive file are probably extractable. 

Among the possible problems that can trigger this return value are: Garbage or extra data at the end of the archive file, unsupported extra fields within the local file headers, different actual and expected filesizes, an extra field containing a second CRC code or unrecognized data in the header fields of the archive file.

xcdWarningFilesSkipped

40

The XcdWarningFilesSkipped constant is a value indicating that some of the files to be processed were skipped.
xcdWarningEmptyZipFile

50

The XcdWarningEmptyZipFile constant is a value indicating that the zip file contains no files.
xcdErrorZipStruct

110

The XcdErrorZipStruct constant is a value indicating that the contents of the archive file are corrupted, and cannot be accessed.  

Archive files that have been transferred by modem in ASCII mode instead of binary mode will always cause this error to occur and cannot be fixed.

xcdErrorMemory

120

The XcdErrorMemory constant is a value indicating that there is not enough memory available to successfully complete the current operation.
xcdErrorNothingToDo

140

The XcdErrorNothingToDo constant is a value indicating that no files could be processed.
xcdErrorDiskFull

150

The XcdErrorDiskFull constant is a value indicating that there was not enough space on the storage device to complete the current operation.
xcdErrorEOF

160

The XcdErrorEOF constant is a value indicating that an unexpected end-of-file occurred while reading the zip file. This error can occur when the archive file is truncated, is missing information, or is corrupted.
xcdErrorUserAbort

190

The XcdErrorUserAbort constant is a value indicating that the current operation was aborted.
xcdErrorMultiDisk

410

The XcdErrorMultidisk constant is a value indicating that an attempt was made to work with an archive that spans multiple disks.
xcdErrorWrongDisk

420

The XcdErrorWrongDisk constant is a value indicating that the wrong disk was repeatedly inserted after a request for a specific diskt. Three (3) attempts at inserting the correct disk are allowed by Xceed Zip for .NET when unzipping.
xcdErrorCantCreateDir

510

The XcdErrorCantCreateDir constant is a value indicating that a directory could not be created. This error typically occurs when the destination directory cannot be created, or when the complete path for a file to be extracted cannot be created.
 
Make sure your application has the appropriate file permissions to write on the destination storage device.