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

Description

The SfxDefaultPassword property lets you specify the password that the self-extracting zip file will use whenever it tries to unzip an encrypted file. If this property is left empty, or the password specified is incorrect for any of the encrypted files, then the self-extractor's Password Prompt dialog will be displayed (if it has not been disabled by clearing the password prompt entry in the SfxMessages property).

This property can be useful for developers that want to create self-extracting zip files that cannot be unzipped by programs such as WinZip™ without the appropriate decryption password.

The maximum length string allowed for this property is 79 characters.

Data type

String

Default value

Empty

Declaration (DLL API)  

UINT XzGetSfxDefaultPassword(HXCEEDZIP hZip, TCHAR* pszBuffer, UINT uMaxLength)

void XzSetSfxDefaultPassword(HXCEEDZIP hZip, const TCHAR* pszValue)

Browsable

Yes

Applicable methods

Zip, Convert

See Also

Creating secure passwords