7-zip

From wiki.adammorgan.org
Jump to: navigation, search

General Info

Lightweight open-source program to create/extract .zip files. Also handles many other archive formats. Can even extract some .exe files (depending on how they're constructed).

  • Packing / unpacking: 7z, XZ, BZIP2, GZIP, TAR, ZIP and WIM
  • Unpacking only: ARJ, CAB, CHM, CPIO, CramFS, DEB, DMG, FAT, HFS, ISO, LZH, LZMA, MBR, MSI, NSIS, NTFS, RAR, RPM, SquashFS, UDF, VHD, WIM, XAR and Z.
  • Download link: http://www.7-zip.org/download.html

Deployment

  • For 64-bit versions of Windows it's important to use the x64 .msi installer, otherwise 7-zip's context menu items may not be added. For 32-bit machines you can use the x86 .exe or .msi package.
  • Deployment script:
@ECHO OFF
::Installs 7-zip for xp/7/8
 
CLS
SET p_log=C:\MYORG\general.log
SET _storeserver=MYFILESERVER
 
ECHO %date% %time% %~0 Started >> %p_log%
::silent install of x86 version
IF %PROCESSOR_ARCHITECTURE% == x86 (
COPY /Y \\%_storeserver%\installers\7zip\7z920.exe %windir%\temp
%windir%\temp\7z920.exe /S /D="C:\Program Files\7-Zip"
goto 7zip_eof
)

::silent install of x64 version
COPY /Y \\%_storeserver%\installers\7zip\7z920-x64.msi %windir%\temp
START /WAIT msiexec.exe /i %windir%\temp\7z920-x64.msi /q
 
:7zip_eof
ECHO %date% %time% %~0 Finished >> %p_log%