Silent Installation & Uninstallation scripts

What is Silent Installation & Uninstallation? Silent software installation is a process where the software will be installed without any manual interaction or input from the user or IT person during the entire installation process, which means no action buttons need to be attended i.e. Next, Finish. This saves time and ensures consistent setups across devices. It’s important to use silent installation responsibly, following licensing agreements and prioritizing user safety.

What are the benefits of Silent installation & Uninstallation?

This technique is particularly beneficial in enterprise environments where they deploy multiple software to a large number of computers. It saves plenty of time and ensures consistency of installation method across because it can be automated using configuration management tools like Microsoft SCCM (MECM), Intune, Endpoint Central, or similar. Software may have different extensions i.e. MSI or EXE, we will provide you flags for silent installation.

Use the mentioned flags to silently install or uninstall the software

Here I have provided a list of software commands you can use in your deployment tools to install the software in your organization. The list is quite big but if I have not added what you are looking for add a comment and I will add it to the list.

Foxit Reader

Foxit Reader enables users to create, edit, and secure reliable PDF documents quickly, easily, and economically. In addition to the basic PDF viewing functions, Foxit Reader also includes various advanced features, such as RMS Protection, GPO Control, and XML Control.

  • Installation:
    • msiexec /i “Foxit Reader.msi” /quiet AUTO_UPDATE=”1″ INSTALLLOCATION=”C:\Program Files\ Foxit Software”
    • /quite = used for silently installing software
    • Auto_Update = 1 = allow auto-update
  • Uninstallation:
    • msiexec /x “Foxit Reader.msi” /quiet CLEAN=”1″

    • Clean = Clean the installation directory and cache.

PDFSam

PDFsam Basic or PDF Split and Merge is a free and open-source cross-platform desktop application to split, merge, extract pages, rotate and mix PDF documents.

  • Installation:
    • msiexec /i “pdfsam-5.2.3.msi” /qb /norestart CHECK_FOR_UPDATES=false DONATE_NOTIFICATION=false SKIPTHANKSPAGE=Yes
    • /qb = used for silently installing software
    • CHECK_FOR_UPDATES= True = allow auto-update
    • SKIPTHANKSPAGE=Yes= Dont redirect to thanks page on web-browser
  • Uninstallation:
    • MsiExec.exe /X {FDF8C6E1-FB2E-4B05-A9BD-D8EF067DF4A1}

    • X = Uninstallation.

Firefox Browser

Mozilla Firefox, or simply Firefox, is a free and open-source web browser developed by the Mozilla Foundation and its subsidiary, the Mozilla Corporation

  • Installation:
    • cmd /c “Firefox Setup 115.10.0esr.exe” /S
    • Run the command from the same directory where the setup file is available
    • /S = used for silently installing software
    • Change the setup file name
  • Uninstallation:
    • IF EXIST “%ProgramFiles(x86)%\Mozilla Firefox\uninstall\helper.exe” “%ProgramFiles(x86)%\Mozilla Firefox\uninstall\helper.exe” -ms

    • -ms = used for silently uninstall software

ZOOM

TeamViewer is a remote access and remote control computer software, that allows maintenance of computers and other devices. It was first released in 2005, and its functionality has expanded step by step. TeamViewer is proprietary software that requires registration and is free of charge for non-commercial use.

  • Installation:
    • msiexec /i ZoomInstallerFull.msi /qn /norestart /log install.log
    • /i = Install the software
    • /qn= used for silently installing software
    • /log = provide the path for log (if required)
  • Uninstallation:
    • MsiExec.exe /qn /norestart /X{89B9DBB8-998C-9C9E-B208-E7723F5FAD12}
    • /x = used for uninstallation software
    • /qn = used for silently uninstalling software

TeamViewer

TeamViewer is a remote access and remote control computer software, that allows maintenance of computers and other devices. It was first released in 2005, and its functionality has expanded step by step. TeamViewer is proprietary software that requires registration and is free of charge for non-commercial use.

  • Installation:
    • start /wait MSIEXEC.EXE /i “PATH_TO_MSI_FILE\TeamViewer_Full.msi” /qn
      timeout /t 30 /nobreak
    • /i = install the software
    • MSIRMSHUTDOWN was used to suppress the killing of explorer.exe but it’s not mandatory
    • /qn= used for silently installing software
    • /t = allow time to hold installation
  • Uninstallation:
    • Start-Process msiexec.exe -Wait -ArgumentList ‘/x “TeamViewer_Full.msi” /quiet’
    • /x = used for uninstallation software
    • /quite = used for silently uninstalling software

7 Zip

7-Zip is a free and open-source file archiver, a utility used to place groups of files within compressed containers known as “archives”.

  • Installation:
    • msiexec.exe /i “7z1900-x64.msi” MSIRMSHUTDOWN=2 /quiet /norestart
    • /i = install the software
    • MSIRMSHUTDOWN was used to suppress the killing of explorer.exe but it’s not mandatory
    • /quite = used for silently installing software
    • /norestart = used to prevent restart after software installation
  • Uninstallation:
    • msiexec.exe /x {23170F69-40C1-2702-1900-000001000000} /quiet /norestart
    • /x = used for uninstallation software
    • /quite = used for silently uninstalling software
    • /norestart = used to prevent restart after software uninstallation

WinZip

7-Zip is a free and open-source file archiver, a utility used to place groups of files within compressed containers known as “archives”.

  • Installation:
    • msiexec /i winzipxxx.msi /qn INSTALLDIR=”C:\Program Files\WinZipXX”
    • /i = install the software
    • winzipxxx= use the correct name of the setup file
    • /qn = used for silently installing software
  • Uninstallation:
    • msiexec /x winzipxxx.msi /qn SHOW_WEBPAGE=0
    • /x = used for uninstallation software
    • /qn = used for silently installing software
    • SHOW_WEBPAGE=0 = don’t show web page after uninstall finish

TortoiseGit

TortoiseGit is a Git revision control client, implemented as a Windows shell extension and based on TortoiseSVN. It is free software released under the GNU General Public License.

  • Installation:
    • msiexec.exe TortoiseGit-2.4.0.2-64bit.msi /i /qn /norestart
    • /i = install the software
    • /qn = used for silently installing software
    • /norestart = used for prevent restart after software installation
  • Uninstallation:
    • msiexec.exe /x {48F51D96-6216-47E6-A8E8-1A4EF27AFDCC} /qn /norestart
    • /x = used for uninstallation software
    • /qn = used for silently installing software
    • /norestart = used for prevent restart after software installation

VS Code

Visual Studio Code, also commonly referred to as VS Code, is a source-code editor developed by Microsoft for Windows, Linux, macOS and web browsers. Features include support for debugging, syntax highlighting, intelligent code completion, snippets, code refactoring, and embedded version control with Git

  • Installation:
    • VSCodeSetup-x64-1.18.0.exe /VERYSILENT /NORESTART /LOADINF=setup.inf
    • With the /LOADINF argument, many settings can be put all together (like installing a directory, keeping Start Menu Shortcuts, Environment variables. etc.) in the inf file.
    • Change the setup name to your download file name
  • Uninstallation:
    • “%ProgramFiles%\Microsoft VS Code\unins000.exe” /VERYSILENT /NORESTART
    • Verify the path and make necessary changes

Google Chrome

Google Chrome is a fast web browser available at no charge. Before you download, you can check if Chrome supports your operating system and if you have all the other system requirements. Android ComputeriPhone & iPad.

  • Installation:
    • googlechromestandaloneenterprise64.msi /qn /norestart
    • /qn – silently installation
    • /norestart – no restart after installation
  • Uninstallation:
    • “C:\Program Files (x86)\Google\Chrome\Application\33.0.1750.146\Installer\setup.exe” –uninstall –multi-install –chrome –system-level
    • Check the path before you use this command.

 

Notepad++

Notepad++ is a free and open-source text and source code editor for use with Microsoft Windows. It supports tabbed editing, which allows working with multiple open files in a single window.

  • Installation:
    • npp.7.5.2.Installer.x64.exe /S /noUpdater
    • /noUpdater switch is introduced from v7.5 onwards.
    • Change the installer name
  • Uninstallation:
    • “%ProgramFiles%\Notepad++\uninstall.exe /S”

We keep updating the information so that it will be helpful to everyone. If you want a script for your program then let us know in the comments.