7-Zip Silent Install using SCCM

0
1307

7zip is freeware. Used to compress and unzip files. The article explain silent installation of 7zip 64 bit application. Using both msi and exe version. We will try 16.04 version but should work for other version.

7-Zip EXE Silent Install.

  • Download exe.
  • Create install.cmd script.
  • Deploy install.cmd using SCCM.

Script does the following tasks:

  • Uninstalls any existing versions of 7-Zip
  • Installs 7-Zip for the operating systems architecture (32-bit or 64-bit)

Download: 7ZipSilentInstall_EXE.zip

  • Download both the 32-bit and 64-bit versions of the EXE installation files from https://www.7-zip.org/download.html
  • Create a text file called install.cmd and copy in the following information
@echo off
cls

REM Uninstall any previous version of 7-Zip
if exist "%programfiles%\7-Zip\Uninstall.exe" "%programfiles%\7-Zip\Uninstall.exe" /S
if exist "%programfiles(x86)%\7-Zip\Uninstall.exe" "%programfiles(x86)%\7-Zip\Uninstall.exe" /S

REM Silent install 7-Zip for 64-bit
if defined ProgramFiles(x86) start /wait "%~dp07z1602-x64.exe" /S /norestart"
if defined ProgramFiles(x86) exit

REM Silent install 7-Zip for 32-bit
start /wait "%~dp07z1602-x86.exe" /S /norestart"
  • Copy the two exe install files and install.cmd to your software package share
  • You can now create your SCCM package or deploy the software by using install.cmd

7-Zip MSI Silent Install.

  • Download msi.
  • Create script install.cmd.
  • Deploy install.cmd using SCCM.

Script does the following tasks:

  • Uninstalls any existing versions of 7-Zip
  • Installs 7-Zip for the operating systems architecture (32-bit or 64-bit)

Download: 7ZipSilentInstall_MSI.zip

  • Download both the 32-bit and 64-bit versions of the MSI installation files.
  • Create a cmd called install.cmd and copy in the following information
@echo off
cls

REM Uninstall any previous version of 7-Zip
if exist "%programfiles%\7-Zip\Uninstall.exe" "%programfiles%\7-Zip\Uninstall.exe" /S
if exist "%programfiles(x86)%\7-Zip\Uninstall.exe" "%programfiles(x86)%\7-Zip\Uninstall.exe" /S

REM Silent install 7-Zip for 64-bit
if defined ProgramFiles(x86) start /wait msiexec /i "%~dp07z1700-x64.msi" /qn /norestart"
if defined ProgramFiles(x86) exit

REM Silent install 7-Zip for 32-bit
start /wait msiexec /i "%~dp07z1700.msi" /qn /norestart"
  • Copy the two msi install files and install.cmd to your software package share
  • You can now create your SCCM package or deploy the software by using install.cmd