Self-extracting archive

From Wikipedia, the free encyclopedia

A self-extracting archive is an application which contains a compressed file archive, as well as programming to extract this information. Such file archives do not require a second executable file or program to extract from the archive, as archive files usually require. The files in an archive can thus be extracted by anyone, whether they possess the appropriate decompression program or not, as long as the program can run on their computer platform. This is handy if you don't know if the person you are giving the file to doesn't have the plugin then you can just give them an SFX, short for Self-extracting archive.

StuffIt for the Macintosh, Compact Pro, WinZip, and WinRAR all make use of self-extracting archives. There are also programs (like makeself) that create self-extracting archives on Unix as shell scripts. An early example of a self-extracting archive was the Unix shar archive, in which one or more text files were combined into a shell script that when executed recreated the original files.

Distributing and receiving files which appear to be self-extracting archives can be dangerous, as the file itself may contain malicious code, like viruses or trojan horses. For this reason, many internet users do not accept self-extracting archive files and would rather receive regular compressed file archives without any executable code. Thankfully for them, many archivers are capable of working with self-extracting archives as if they were regular archives.

[edit] See also

In other languages