How to extract WinZip Self-Extracting exe in silent mode. Ask Question Asked 4 years, 5 months ago. Active 1 month ago. Viewed 6k times 4. I have create a exe file using WinZip Self-Extractor. It extracts the file in UI mode, that is while dobule click the setup a new window opened that shows unzipping setupname.exe. I need to extract the same.
- 7 Zip Self Extracting Exe Command Line Silent
- 7zip Self Extracting Exe Silent
- 7zip Self Extracting Exe Parameters Free
- Create Self Extracting 7 Zip Exe
Learning has never been so easy!
On the rare occasion you might have the need to create a self-extracting executable file. This is an executable file that when double clicked automatically extracts the files contained within. The downside to these files are they aren't .zip they are .exe files. This means that you can't email them and some customer's systems won't be able to run them due to how their systems are configured. So if you plan on making one you need to know how you are going to get it to its destination and if the destination can run the file. If you know this information then all you need to do is follow these steps to create a self-extracting executable file.
5 Steps total
Step 1: Gather Your Files
Get all your files together and highlight the ones you want to add to the self-extracting executable file. Once you've done this right click one of the highlighted files and hover your mouse pointer over the word 7-Zip.
Step 2: Add To Archive
After you hover over 7-Zip a new menu will appear. As you can see in the image there is an Add to archive... option. Pick this option and the Add to Archive dialog box will open.
Step 3: Self-Extracting Options
In the Add to Archive dialog box there are several settings you will need/want to make sure you set. These options have been highlighted in the image and are listed here:
1. Archive: The field in the green rectangle in the image is where you need to type your file name. The button in the brown square in the image will allow you to choose where you want to save the file.
2. Archive Format: Needs to be set to 7z. (red rectangle in image)
3. Compression Method: Needs to be set to LZMA2. (orange rectangle in image)
4. SFX: You need to check the Create SFX Archive box. (yellow rectangle in image)
5. Password Fields: If you want to encrypt the files you will need to enter the same password into both the password fields. I suggest as strong a password as possible. e.g. Something that uses upper and lower case letters, numbers, and special characters. (purple rectangle in image)
6. Encryption Method: If you want to encrypt the files you will need to set this to AES-256. (blue rectangle in image)
2. Archive Format: Needs to be set to 7z. (red rectangle in image)
3. Compression Method: Needs to be set to LZMA2. (orange rectangle in image)
4. SFX: You need to check the Create SFX Archive box. (yellow rectangle in image)
5. Password Fields: If you want to encrypt the files you will need to enter the same password into both the password fields. I suggest as strong a password as possible. e.g. Something that uses upper and lower case letters, numbers, and special characters. (purple rectangle in image)
6. Encryption Method: If you want to encrypt the files you will need to set this to AES-256. (blue rectangle in image)
When you've set these options click OK and it will create your self-extracting executable file.
Step 4: Created File
When you tell 7-Zip to create the file you will end up with a file like the one pointed out in the image. If you forgot to name the file during the creation process you can rename this file to anything you'd like as long as you leave the .exe at the end.
Step 5: What It Looks Like
If you double click on the file to run the self-extracter you'll see a dialog box like the image. This dialog box asks you where you want to save the files it's going to extract. You can accept the path as is, type the path in the box (left arrow), or choose a folder via the button (right arrow). Once you've entered your path click Extract.
If you choose to encrypt the self-extracting executable then another dialog box will appear for you to enter the password.
You can not add new files to self-extracting executable files.
References
- How to Use 7-Zip to Create Self Extracting excutables
0 Comments
Active3 months ago
The Ruby Devkit is a 7-zip based self-extracting archive.
I would like to invoke it silently without having to install 7-Zip to extract the files to a folder of my choosing, so that I can script the installation. I imagine it to be something like:
But that, of course, doesn't work. What command line flags must I use to silently extract this archive into a folder of my choice?
Anthony Mastrean14.8k19 gold badges85 silver badges150 bronze badges
Jay GodseJay Godse
9,51513 gold badges73 silver badges114 bronze badges
4 Answers
florindflorind
Update 2017: The tool from 7zsfx.info is now dead and gone.
Original, old post from 08-2015:
If you are trying to extract an 7zip SFX (http://7zsfx.info/) archive:
sfx.exe -y -gm2 -InstallPath='C:yourtargetpath'
-y
hide some prompts-gm2
hides the extraction dialog completely (silent mode)-InstallPath
sets the target path (you need double backslashes)
7z SFX Guide
The official way to create a SFX package is to use
-sfx[{name}] : Create SFX archive
. And that means the created SFX packages uses two kinds of CLI options:
- official CLI options from 7zSFX, and
- the passed through options you configured in your config, before creating the package.You can think of it as parameter forwarding to the packaged executable. This parameter forwarding depends on the
SetEnvironment
andRunProgramm
configuration!
The full process:
- Create archive
Package.7z
:- containing
Installer.msi
and additionalcrap.cab
file.
- containing
- Create config file
config.txt
: - Now we generate
Test.exe
by combining sfx+config+archive into an executable.copy /b 7zS.sfx + config.txt + Package.7z SfxInstaller.exe
Note: 7zS.sfx is from the official 7zip extra package. - Now, when you run
SfxInstaller.exe
you can pass for instance/lv InstallerLog.txt
to create a install log, e.g.SfxInstaller.exe /lv InstallerLog.txt
7 Zip Self Extracting Exe Command Line Silent
Jens A. Koch28.5k8 gold badges91 silver badges104 bronze badges
7zip Self Extracting Exe Silent
Since 7-zip is used, simply create a self-extracting archive in .exe. and run it with switches -o and -y.
I use it to save space on USB drive. For instance, I run VDiskAir application infrequently. I create a self-extracting archive of the VDiskAir program folder (about 15MB):
NB: -mx9 is used here to maximise compression.
I create a DOS BAT to run the self-extracting VDiskAir.exe (about 5MB) created, save it as VDiskAir.bat containing:
I'm not worried that the VDiskAir folder (in %TMP% extracted with VDiskAir program files) is undeleted after running VDiskAir this way, since I have a BAT script to clear %TMP% on shutting down/starting up.
ADyson30.2k12 gold badges28 silver badges46 bronze badges
7zip Self Extracting Exe Parameters Free
Hon KongHon Kong
Create Self Extracting 7 Zip Exe
Rastalamm1,1121 gold badge13 silver badges26 bronze badges
Jean-Michel LemieuxJean-Michel Lemieux