Compress 7Zip Archive
This command compresses files and folders to create virtually any archive type available today. InstallAware uses 7Zip data compression technology which provides superior data compression rates for files of all types. Using the Compress 7Zip Archive command, you may compress any number of files and folders into an archive supported by 7Zip data compression technology, directly from within your setup.
Archive
Provide the full path to the archive to create or update. InstallAware supports all archive types and all compression algorithms that are natively supported by 7Zip data compression technology.
Password
If you wish to protect the archive to create using a password, or the archive to update has already been protected with a password; enter the password here.
Recursive File Set
Provide one or more files and folders to compress recursively (including subfolders). Wildcards must be used (such as *) to compress entire folders. When providing more than one set of items to process, delimit each individual set with the pipe character (|). If any of the items to compress recursively have spaces in their path names, enclose the entire path (including trailing wildcards) inside double-quote characters (").
Please note that some types of archives do not allow more than one file to be compressed per archive (specifically, the BZIP2, GZIP, and XZ archive formats). This field must be left empty for such archive types.
Non-Recursive File Set
Provide one or more files and folders to compress non-recursively (excluding subfolders). Wildcards must be used (such as *) to compress entire folders. When providing more than one set of items to process, delimit each individual set with the pipe character (|). If any of the items to compress non-recursively have spaces in their path names, enclose the entire path (including trailing wildcards) inside double-quote characters (").
Archive Type
Choose the type of archive to create. Compression strength and the compression algorithms that are available vary by archive type.
Compression Parameters
Choose the compression strength to apply when creating the selected archive. The suggested parameters, from first to last, correspond to the exact compression parameters utilized by InstallAware when building your setups, as explained in the compression slider featured on the Build Settings dialog of the main InstallAware IDE. These parameters are applicable only to the 7ZIP and XZ archive types.
Please consult 7Zip data compression technology documentation for more information on the compression settings available for other archive types. There are also additional compression settings available for the 7ZIP and XZ archive types which are not displayed in the suggestion list.
Folder Path Storage
Choose
to store full path information inside the archive for each of the files being packed.Choose
to store each file inside the archive with path names relative to the root path as specified in the recursive file set being packed. Non-recursive file sets are stored without any path information in this mode. This is the mode used by InstallAware when compressing your setups.Choose
to store each file inside the archive without any path information at all.Return Success State in Variable
If you enter a variable name into this field, the variable will receive the result of the compression operation. If the compression completes successfully, the variable holds SUCCESS. If the compression fails with an error, the variable holds a textual description of the error that occured.
Notes
- Be sure to switch to the full compression engine before compiling your setup project when you are invoking this command.