ArchiveFile Property

The name of the self-extracting zip archive to create.

Syntax

ANSI (Cross Platform)
char* GetArchiveFile();
int SetArchiveFile(const char* lpszArchiveFile); Unicode (Windows) LPWSTR GetArchiveFile();
INT SetArchiveFile(LPCWSTR lpszArchiveFile);
@property (nonatomic,readwrite,assign,getter=archiveFile,setter=setArchiveFile:) NSString* archiveFile;
- (NSString*)archiveFile;
- (void)setArchiveFile:(NSString*)newArchiveFile;
#define PID_ZIPSFX_ARCHIVEFILE 1

IPWORKSZIP_EXTERNAL void* IPWORKSZIP_CALL IPWorksZip_ZipSFX_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal);
IPWORKSZIP_EXTERNAL int IPWORKSZIP_CALL IPWorksZip_ZipSFX_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal);

Default Value

""

Remarks

This property specifies the name of the archive to be written when CreateSFX is called. Any pre-existing archive file will be overwritten.

The filename may be specified with or without a path. Paths may be relative or absolute, and should be specified in the format native to the host operating system. The filename should be specified with the appropriate ".exe" extension. An extension will not automatically be appended by the class.

If the file cannot be written a trappable error will be generated.

Example (Creating a Self-Extracting Archive)


class.ArchiveFile = "c:\test.exe"
class.RecurseSubdirectories = true
class.SourceDirectory = "c:\foo\"
class.CaptionText = "Testing ZipSFX"
class.BannerText = "Press continue to decompress the archive."
class.CreateSFX()

Note: When creating a self-extracting archive which exceeds 4 GB or more of uncompressed data or which contains more than 64K files, the class will create a 64-bit Zip archive.

Data Type

String

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks ZIP 2020 C++ Edition - Version 20.0 [Build 8300]