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

Description

The SfxInstallMode property is a special mode you can put a self-extracting zip file in. When a self-extracting zip file was created with the SfxInstallMode property set to True, the self-extracting zip file will wait until the all the external programs or executables run by the self-extractor (as a result of specifying programs to run in the SfxExecuteAfter property) have terminated, and then it will delete all the files that it extracted and any new directories that were created.

When SfxInstallMode is True and nothing is specified in the SfxDefaultUnzipToFolder property (recommended), the self-extractor will extract files in a random folder in the systems temporary folder (the equivalent of putting %t\%r in the SfxDefaultUnzipToFolder property). Also, the self-extractor's "Select Unzip Folder" dialog box is not displayed when SfxInstallMode is True.

This property is particularly useful when the self-extractor is being used in order to extract and run an install or setup program. Once the setup program has finished copying all the files to the appropriate locations, and has terminated, setting the SfxInstallMode property to True allows you to ensure that the (now unneeded) setup files are erased from the system.

Data type

Boolean

Default value

False

Declaration (DLL API)  

BOOL XzGetSfxInstallMode(HXCEEDZIP hZip)

void XzSetSfxInstallMode(HXCEEDZIP hZip, BOOL bValue)

Browsable

Yes

Applicable methods

Zip, Convert

Related topics

None