Xceed Zip Compression Library Documentation
SfxFilesToCopy property
Self-Extractor Module reference > Self-Extractor Module properties > SfxFilesToCopy property

Description

This property allows you to instruct the self-extracting zip file to copy files from one location to another. The format of an item to copy is "source path + filename" + "|" + "destination path + filename". Each item to copy must be separated by a CR and/or LF character. The easy way to specify values for this property is to use the SfxAddFileToCopy method.

Wildcards are not supported. Macros can be used.

An example (in VB) on how to set the property for copying file1 and file2 from the destination unzipping folder to the windows system folder:

XceedZip1.SfxFilesToCopy = "%d\file1.dat" + "|" + "%s\file1.dat" + Chr(13) + "%d\file2.dat" + "|" + "%s\file2.dat"

The total length of the values of the SfxExecuteAfter, SfxFilesToCopy, SfxFilesToRegister and SfxRegistryKeys properties cannot exceed 2000 characters.

Data type

String

Default value

Empty

Declaration (DLL API)  

UINT XzGetSfxFilesToCopy(HXCEEDZIP hZip, TCHAR* pwszBuffer, UINT uMaxLength);

void XzSetSfxFilesToCopy(HXCEEDZIP hZip, const TCHAR* pwszValue);

Browsable

Yes

Applicable methods

Zip, Convert