Paquet Builder provides an easy and global way to preserve folder structure in your Self-Extracting package, especially if you’re not using components. Follow this guide to learn how:
Compressing the Root Folder
We want to compress the entire mysql folder (shown below) as the root. Since this folder contains files and subfolders, we aim to preserve the entire directory structure.
Step 1: Open the File Manager and Add Folder
Start by opening the File Manager in Paquet Builder and selecting Add Folder.
Step 2: Select the Folder to Import
Choose the folder you want to include—in this case, the mysql folder.
Step 3: Include Files from Subfolders
Accept the option to include files from subfolders.
Step 4: Ensure Folder Structure is Maintained
Once all files are added, configure Paquet Builder to preserve the folder structure. Close the File Manager to proceed.
Step 5: Configure File Compression Settings
Go to Build and select Modify File Compression. Enable the following options:
- Store Path Information
- Use Paths Relative To
Then, specify the path to the root folder (in this case, the path to the mysql folder).
Step 6: Validate Folder Restoration
When executing the Self-Extracting package and selecting a destination directory, the files and folders will be restored, maintaining the directory structure.
Additional Features for Complex Projects
For projects with multiple folders and varying structures, Paquet Builder offers a Components feature to manage complex setups. This will be covered in a separate tutorial.