ÛÛÛÛÛÛ» ÛÛÛÛÛ» ÛÛÛÛÛÛ» RAR version 2.00 ÛÛÉÍÍÛÛ» ÛÛÉÍÍÛÛ» ÛÛÉÍÍÛÛ» ~~~~~~~~~~~~~~~~ ÛÛÛÛÛÛɼ ÛÛÛÛÛÛÛº ÛÛÛÛÛÛɼ Multifunctional Integrated Archive Manager ÛÛÉÍÍÛÛ» ÛÛÉÍÍÛÛº ÛÛÉÍÍÛÛ» ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ÛÛº ÛÛº ÛÛº ÛÛº ÛÛº ÛÛº The Installation SFX for DOS User's Manual Èͼ Èͼ Èͼ Èͼ Èͼ Èͼ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1. SFX functionality overview. The SFX (SelF-eXtracting module) is the archive module used to extract files when executed. It is in the form of a normal executable file. The RAR Archiver offers SFX-functionality which is significantly enhanced over common SFX, as well as the possibility to create an SFX archive, with an alternate SFX module from an external file. The alternate SFX module can be created by using the switch '-sfx[]' or the command 's[]' when, in the optional parameter , you indicate the required SFX executable module. Several RAR SFX executable modules are currently available: - the common SFX for DOS (default in the DOS version, file dos.sfx); - the Installation SFX for DOS (file idos.sfx); - the common SFX for OS/2 (default in the OS/2 version, file os2.sfx). In fact you may add your own RAR SFX executable module using unRAR sources (e.g. for your particular OS or special needs). 2. The Installation SFX. As an alternative to the default SFX you may build an Installation SFX which uses a powerful script language, providing original features: - fully configurable, friendly, menu-driven interface; - check for free disk space before installation; - request destination path to which to install files; - installation status - file extraction progress bar, completed percentage and other features. The Installation Script is a plain ASCII text file, which may be prepared using your favorite text editor. The script is placed in the SFX archive comment to be processed by the Installation SFX module when it is executed. For example, you may use the following command line to create such an SFX archive: rar a -sfxidos.sfx -zmyinst.s minstall Where 'idos.sfx' is the pathname of Installation SFX module and the file myinst.s is the text file containing your installation script. The Installation SFX contains build-in interpreter of the Script Language. 2.1 Installation Script Language As a program language the script contains the following objects: Command statement initiating an action; Procedure commands defined apparently to be called from the main script code; Function built-in procedure which returns a value; Constant character string or a numeric value (4 bytes length); Variable name defining a storage place for a value. Variables may be assigned a numeric value or a character string. All variables are global, meaning once defined the variable is the same within the main code and all procedures. Variable and procedure names are case-sensitive. Command statements are case-insensitive. Command and built-in procedures may be called with parameters - constants and variables. Expressions may not be used as parameters. 2.1.1. Control commands CALL Initiate a procedure call: CALL is the procedure name (defined with PROC). DELAY Suspend script execution: DELAY [] is the delay interval (milliseconds). If the interval is ommitted, an infinite interval will be set. Execution continues following a key press or mouse click. EXCLUDE Define the list of files NOT to be extracted from the archive while installing: EXCLUDE [ [, ..] ] , .. are variables or character strings containing the names of files to be excluded. Wildcards are permitted. The initial value of this file list is "", meaning "no files to exclude". EXCLUDE without any parameters would restore the initial value of the file list. EXIT Terminate the Installation SFX: EXIT SFX exits with errorlevel = . GOTO Transfer control to a string in the script, identified by a label: GOTO