Tools Needed
Winzip (www.winzip.com)
7-Zip (www.7-zip.org)
Startx (http://www.naughter.com/startx.html)
Solution
1. Execute the Winzip application to install into the default directory (C:\Program Files\Winzip).
2. Create a batch file using a text editor and place in the Winzip installation directory, i.e. SetupWinZip.cmd.
[ SetupWinZip.cmd ]
:: Make Folder MD "%PROGRAMFILES%\Winzip" :: Copy Files to Installation Folder copy /y EXAMPLE.ZIP "%PROGRAMFILES%\Winzip" copy /y FILE_ID.DIZ "%PROGRAMFILES%\Winzip" copy /y LICENSE.TXT "%PROGRAMFILES%\Winzip" copy /y ORDER.TXT "%PROGRAMFILES%\Winzip" copy /y README.TXT "%PROGRAMFILES%\Winzip" copy /y VENDOR.TXT "%PROGRAMFILES%\Winzip" copy /y WHATSNEW.TXT "%PROGRAMFILES%\Winzip" copy /y WINZIP.CHM "%PROGRAMFILES%\Winzip" copy /y WINZIP.TXT "%PROGRAMFILES%\Winzip" copy /y WINZIP32.EXE "%PROGRAMFILES%\Winzip" copy /y WZ.COM "%PROGRAMFILES%\Winzip" copy /y WZ.PIF "%PROGRAMFILES%\Winzip" copy /y WZ32.DLL "%PROGRAMFILES%\Winzip" copy /y WZCAB.DLL "%PROGRAMFILES%\Winzip" copy /y WZCAB3.DLL "%PROGRAMFILES%\Winzip" copy /y WZINST.CHM "%PROGRAMFILES%\Winzip" copy /y WZPOPUP.HLP "%PROGRAMFILES%\Winzip" copy /y WZQKPICK.EXE "%PROGRAMFILES%\Winzip" copy /y WZQKSTRT.RTF "%PROGRAMFILES%\Winzip" copy /y WZSEPE32.EXE "%PROGRAMFILES%\Winzip" copy /y WZSHLEX1.DLL "%PROGRAMFILES%\Winzip" copy /y WZSHLSTB.DLL "%PROGRAMFILES%\Winzip" copy /y WZTUTOR.HLP "%PROGRAMFILES%\Winzip" copy /y WZVINFO.DLL "%PROGRAMFILES%\Winzip" copy /y WZWIZARD.CHM "%PROGRAMFILES%\Winzip" copy /y WZZPMAIL.DLL "%PROGRAMFILES%\Winzip" :: Install Winzip "%PROGRAMFILES%\winzip\winzip32.exe" /noqp /notip /autoinstall
3. Copy StartX.exe into the default WinZip installation directory.
4. Use 7-Zip (www.7-zip.org) ultra compression to archive the contents of the default Winzip installation directory including the SetupWinzip.cmd and StartX.exe
5. Create a config.txt file.
[config.txt] ;!@Install@!UTF-8! RunProgram="StartX.exe /MIN /WAIT SetupWinZip.cmd" ;!@InstallEnd@!
6. Copy 7z.sfx to the default Winzip installation directory.
6. From a Command prompt from within the directory all the files reside, execute the following command:
copy /b 7z.sfx +config.txt +setup.7z WinZip90SR1.exe