LHA/LHarc self-extracting archive

From Just Solve the File Format Problem
(Difference between revisions)
Jump to: navigation, search
(Created page with "{{FormatInfo |formattype=electronic |subcat=Archiving |extensions=special |released=≤1989 }} '''LHA/LHarc self-extracting archive''' refers to the various self-extracting ar...")
 
Line 18: Line 18:
 
LHarc v1.x can create archives in either [[DOS executable (.com)|COM]] or [[MS-DOS EXE|EXE]] format. LHA v2.x only supports EXE format.
 
LHarc v1.x can create archives in either [[DOS executable (.com)|COM]] or [[MS-DOS EXE|EXE]] format. LHA v2.x only supports EXE format.
  
Most versions can create EXE files structured in two different ways: "Small" mode (the default), or "Large" mode. Large mode is enabled by using the <code>/x</code> option.
+
Starting with v1.12, EXE files can be structured in two different ways: "Small model" (the default), or "Large model". Large model is selected by using the <code>/x</code> (v1.x) or <code>/x1</code> (v2.x) option.
  
 
== Identification ==
 
== Identification ==
 
LHarc/LHA self-extracting archives contain a text message that will be printed when the files are extracted, which could be useful for format identification. Unfortunately, the message is not consistently located or formatted.
 
LHarc/LHA self-extracting archives contain a text message that will be printed when the files are extracted, which could be useful for format identification. Unfortunately, the message is not consistently located or formatted.
  
An example of such a message is "<code>LHarc's SFX 1.13S (c) Yoshi, 1989</code>". It contains a version number (which may only be approximate), and usually an "S" or "L" suffix indicating Small or Large mode.
+
An example of such a message is "<code>LHarc's SFX 1.13S (c) Yoshi, 1989</code>". It contains a version number (which may only be approximate), and usually an "S" or "L" suffix indicating Small or Large model.
  
 
The following table summarizes most of the DOS formats.
 
The following table summarizes most of the DOS formats.
  
 
{| class="wikitable"
 
{| class="wikitable"
! Exec. format !! Versions !! Mode !! Offset !! Message begins...
+
! Exec. format !! Versions !! Model !! Offset !! Message begins...
 
|-
 
|-
 
|DOS COM    || 1.00      ||        || 6  || "<code>SFX of LHarc</code>"
 
|DOS COM    || 1.00      ||        || 6  || "<code>SFX of LHarc</code>"
Line 48: Line 48:
 
|DOS EXE    || 2.05      || S or L || 36  || "<code>LH's SFX</code>"
 
|DOS EXE    || 2.05      || S or L || 36  || "<code>LH's SFX</code>"
 
|-
 
|-
|DOS EXE    || 2.06     || S or L || 36  || "<code>LHa's SFX</code>"
+
|DOS EXE    || 2.06-2.10 || S or L || 36  || "<code>LHa's SFX</code>"
 
|-
 
|-
 
|DOS EXE    || 2.11-2.66 || S or L || 36  || "<code>LHA's SFX</code>"
 
|DOS EXE    || 2.11-2.66 || S or L || 36  || "<code>LHA's SFX</code>"

Revision as of 15:14, 26 February 2022

File Format
Name LHA/LHarc self-extracting archive
Ontology
Extension(s) special
Released ≤1989

LHA/LHarc self-extracting archive refers to the various self-extracting archive formats associated with the LHarc/LHA family of compressed archive utilities.

Refer to LHA for information about the underlying archive format.

This article primarily covers files for the DOS platform. (TODO: Other platforms.)

Note that some relatives of LHA, such as LArc and PMA, have self-extracting archive formats that are not covered here.

Discussion

The usual manner of creating a self-extracting archive is to first create a normal (.LZH/.LHA) archive, then run the software on that non-executable archive using the "s" function.

LHarc v1.x can create archives in either COM or EXE format. LHA v2.x only supports EXE format.

Starting with v1.12, EXE files can be structured in two different ways: "Small model" (the default), or "Large model". Large model is selected by using the /x (v1.x) or /x1 (v2.x) option.

Identification

LHarc/LHA self-extracting archives contain a text message that will be printed when the files are extracted, which could be useful for format identification. Unfortunately, the message is not consistently located or formatted.

An example of such a message is "LHarc's SFX 1.13S (c) Yoshi, 1989". It contains a version number (which may only be approximate), and usually an "S" or "L" suffix indicating Small or Large model.

The following table summarizes most of the DOS formats.

Exec. format Versions Model Offset Message begins...
DOS COM 1.00 6 "SFX of LHarc"
DOS COM 1.12-1.13 6 "LHarc's SFX"
DOS COM 1.14β 6 "LHARC SFX"
DOS EXE 1.00 38 "SFX of LHarc"
DOS EXE 1.12-1.13 S 38 "LHarc's SFX"
DOS EXE 1.14β S 38 "LHARC SFX"
DOS EXE 1.12-1.13 L 37 "LHarc's SFX"
DOS EXE 1.14β L 37 "LHARC SFX"
DOS EXE 2.05 S or L 36 "LH's SFX"
DOS EXE 2.06-2.10 S or L 36 "LHa's SFX"
DOS EXE 2.11-2.66 S or L 36 "LHA's SFX"

Additionally, DOS COM files start with byte 0xeb.

Software

Refer to LHA#Software, especially the main LHarc/LHA software.

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox