1

I have installed WinZip 9.0 SR1 in my system and I want to create a executable from a zip file in command line.

I have tried with the following command line statement

C:\Users\admin\Desktop>"C:\Program Files (x86)\WinZip 9.0 SR1\WZSEPE32.EXE" my.exe my.zip

Hoping that it would create a file my.exe with contents of my.zip under the current directory. But it throws the below error message

Error Msg

and brings up the below GUI.

GUI

How do I create a executable from a zip file in command line?

ᔕᖺᘎᕊ
  • 6,393
DDK
  • 149

3 Answers3

3

Another option is to ditch WinZip.

Using Info-Zip, the unzipper has an UnzipSfx.exe and you can use the following from a command line:

copy/b unzipsfx.exe+myfile.zip myfile.exe

If you want a GUI, Info-Zip also has WiZ. 7-Zip also supports self-extracting files, and is generally better than WinZip in every conceivable way (except that WinZip came first, back in the Windows 95 days, and so it got famous first).

TOOGAM
  • 16,486
2

WinZip inclindes the WinZip Self-Extractor Personal Edition which does not support creating Self-Extracting Archives from the command line.

The WinZip Self-Extractor (not Personal Edition) supports creating SFX archives from the command line but must be purchased separately.

All this info is here: https://kb.winzip.com/help/help_winzipse.htm

Besides this, if you are not required to use WinZip, you should use 7zip or any of the other, better, compression utilities, as TOOGAM suggests in their answer.

music2myear
  • 49,799
-1

WinZip offers a command-line add-on for this (free add-on for licensed version). But this only works with WinZip 12.1 and higher.