Contents
Create a WinZip 9.0 SR1 repack for silent installation.
Requirements
- Winzip (www.winzip.com)
- 7-Zip (www.7-zip.org)
- Startx (http://www.naughter.com/startx.html)
Solution
- Execute the WinZip application to install into the default directory (C:\Program Files\WinZip).
- 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
- Copy StartX.exe into the default WinZip installation directory.
- 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
- Create a config.txt file.
config.txt
;!@Install@!UTF-8! RunProgram="StartX.exe /MIN /WAIT SetupWinZip.cmd" ;!@InstallEnd@!
- Copy 7z.sfx to the default WinZip installation directory.
- 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