• English
  • Italiano
  • Français
  • Deutsch
  • Español

How to use 7zip to create a self-extracting compressed archive

7zip is a powerful tool for file compression that allows you to reduce the size of files and save disk space. One of the most useful features of 7zip is the ability to create self-extracting archives, which are executable files that extract automatically without the need for third-party software.

In this article, we will see how to use 7zip to create a compressed self-extracting archive. We will learn how to select files to compress, choose compression options, and configure the self-extracting archive to suit our needs.

Before you begin, make sure you have installed 7zip on your computer. If you haven't already done so, you can download it from the official website.

Step 1: Download and install 7zip

The first step in using 7zip to create a compressed self-extracting archive is to download the software from the official website. 7zip is available for Windows, Linux, and Mac OS.

Download 7zip on Windows

  1. Open your preferred web browser and visit the official 7zip website: https://www.7-zip.org/download.html
  2. Click on the "Download" link next to the version of 7zip compatible with your version of Windows (32-bit or 64-bit).
  3. Once the download is complete, double-click on the downloaded file to start the installation.
  4. Follow the on-screen instructions to complete the installation of 7zip.

Download 7zip on Linux

The precise instructions for downloading and installing 7zip on Linux depend on the distribution you are using. In general, you can follow these steps:

  1. Open the terminal on your Linux distribution.
  2. Enter the appropriate command for your Linux distribution to download and install 7zip.

Download 7zip on Mac OS

Again, the precise instructions for downloading and installing 7zip on Mac OS depend on the version of the operating system you are using. In general, you can follow these steps:

  1. Open your preferred web browser and visit the official 7zip website: https://www.7-zip.org/download.html
  2. Click on the "Download" link next to the version of 7zip compatible with your version of Mac OS.
  3. Once the download is complete, double-click on the downloaded file to start the installation.
  4. Follow the on-screen instructions to complete the installation of 7zip.

After successfully installing 7zip, you are ready to create a compressed self-extracting archive using this software.

Step 2: Create a compressed archive

After downloading and installing 7zip, you can create your own compressed self-extracting archive. Follow these steps:

Step 1: Select the files to compress

First, select the files you wish to compress. You can select multiple files at once by holding down the Ctrl key and clicking on the desired files.

Step 2: Right-click on the selected files

After selecting the files, right-click on one of the selected files. In the drop-down menu, choose "Add to archive...".

Step 3: Configure compressed archive settings

In the "Add to Archive" dialog box, configure the following settings:

  • Format: Select "7z" as the compression format.
  • Archive type: Choose "Self-extracting" as the archive type.
  • Under the "Compression" tab:
    • Compression level: Choose a compression level between "Ultra" and "Normal".
    • Encryption: Optional, you can set a password to protect the compressed archive.

Step 4: Create self-extracting compressed archive

After configuring compressed archive settings, click on the "OK" button to create a self-extracting compressed archive. The created file will have an ".exe" extension.

That's it! Now you have a self-extracting compressed archive that can be easily shared and used by other users without requiring specific decompression software.

Step 3: Set self-extraction options

After selecting the files to compress and setting the compression level, you can set self-extraction options for the created archive. Self-extraction allows recipients of the archive to automatically decompress the files without needing to install any additional software.

Step 1: Select the "Self-extracting" tab

From the main interface of 7zip, click on the "Self-extracting" tab. Here are several options that can be customized to create a self-extracting archive.

Step 2: Set default extraction path

In the "Extraction path" section, you can specify the default path where files will be extracted once the archive is opened. This option can be useful if you want recipients of the archive to save files in a specific location.

Step 3: Customize self-extraction icon

In the "Icon" section, you can customize the self-extraction icon. Click on the "Browse" button to select a custom icon from your computer.

Step 4: Set warning message

In the "Message" section, you can set a warning message that will be displayed before file extraction. This can be useful for providing instructions or important information to recipients of the archive.

Step 5: Set the password (optional)

In the "Password" section, you can set a password for the self-extracting archive. This will prevent unauthorized access to the files contained in the archive. It is important to choose a secure password and only share it with authorized persons who need access to the files.

  • Type your desired password in the "Enter password" field.
  • Repeat the password in the "Confirm password" field.
  • Click on the "Add" button to confirm the password.

After setting all desired self-extraction options, click on the "OK" button to create the self-extracting archive.

Step 4: Customize the icon of the self-extracting archive

Now that you have created your self-extracting archive, you can customize its icon to make it more recognizable and attractive. Here's how:

Step 1: Find an image to use as an icon

First, choose an image that you want to use as the icon of your self-extracting archive. You can search online or create your own custom image using graphics software.

Remember that the icon must be in .ico format, so if you have chosen an image in another format, you will need to convert it. There are several free online tools that allow you to convert images to .ico format.

Step 2: Rename the icon with the same name as the self-extracting archive

After finding or creating the desired icon, rename it with the same name as the self-extracting archive. For example, if your archive is named "compressed_file.exe", rename the icon to "compressed_file.ico". Make sure both files are in the same folder.

Step 3: Add the icon to the self-extracting archive

Now you need to add the customized icon to your self-extracting archive. To do so, follow these steps:

  • 1. Right-click on the self-extracting archive and select "Properties".
  • 2. Select the "Customize" tab.
  • 3. Click on the "Change icon..." button.
  • 4. In the dialog box that opens, click on the "Browse..." button and select the customized icon that you renamed earlier.
  • 5. Click "OK" to confirm the changes.

You have now successfully customized the icon of your self-extracting archive!

Conclusion

In conclusion, 7zip is an extremely useful tool for creating self-extracting compressed archives. With its high-efficiency compression algorithm, it is able to reduce file sizes without compromising data quality.

By using 7zip, you can easily create self-extracting archives that can be quickly and securely sent via email or shared online. Additionally, thanks to its simple and intuitive interface, you do not need advanced technical skills to use this software.

However, it is important to remember that storing sensitive or confidential data requires an adequate level of encryption. In these cases, it is advisable to use specialized tools such as VeraCrypt or BitLocker.

Finally, if you need more information on how to use 7zip to create self-extracting compressed archives or other aspects of file management, we recommend consulting the official documentation available on the manufacturer's website.

  • Always remember to verify the integrity of your files before sending or sharing them;
  • Use strong and complex passwords to protect your sensitive data;
  • Choose carefully the compression mode that best suits your needs;
  • Don't forget to regularly back up your important data.

With these simple precautions, you can effectively and safely use 7zip to manage your compressed files. Happy compressing!

Ruggero Lecce - Consulente senior di personal branding in Italia

Michael Anderson - Software Engineer

My name is Michael Anderson, and I work as a computer engineer in Midland, Texas.

My passion is sharing my knowledge in various areas, and my purpose is to make education accessible to everyone. I believe it is essential to explain complex concepts in a simple and interesting way.

With GlobalHowTo, I aim to motivate and enrich the minds of those who want to learn.