Wireshark is a free and open-source packet analyzer. This article will serve as an informative guide and give you a clear understanding of how to perform a silent installation of Wireshark from the command line using the EXE installer.
The information above provides a quick overview of the software title, vendor, silent install, and silent uninstall switches. The download links provided take you directly to the vendors website. Continue reading if you are interested in additional details and configurations.
Download the nmap-7.12-setup.exe to a folder created at (C:\Downloads)
Extract the contents of the nmap-7.12-setup.exe using 7-zip
Copy the winpcap-nmap-4.13.exe to C:\Downloads
Open an Elevated Command Prompt by Right-Clicking on Command Prompt and select Run as Administrator
Navigate to the C:\Downloads folder
Enter the following command: winpcap-nmap-4.13.exe /S
Press Enter
Change the Wireshark Default Installation Directory
You can change the default installation directory by using the following command line parameters. In this example, I’m installing Wireshark to “C:\Wireshark”
Wireshark-x.y.z.exe /S /D=C:\Wireshark
Include Wireshark Desktop Shortcut During Install
The Wireshark installer does not include a desktop shortcut by default. If you want the desktop shortcut included during installation, then you can run the following command line switch.
Wireshark-x.y.z.exe /S /desktopicon=yes
Exclude Wireshark Quick Launch Shortcut During Install
Open an Elevated Command Prompt by Right-Clicking on Command Prompt and select Run as Administrator
Enter one of the following commands:
Wireshark 32-bit Silent Uninstall (EXE) on 32-bit System
"%ProgramFiles%\Wireshark\uninstall.exe" /S
Wireshark 32-bit Silent Uninstall (EXE) on 64-bit System
"%ProgramFiles(x86)%\Wireshark\uninstall.exe" /S
Wireshark 64-bit Silent Uninstall (EXE) on 64-bit System
"%ProgramFiles%\Wireshark\uninstall.exe" /S
Always make sure to test everything in a development environment prior to implementing anything into production. The information in this article is provided “As Is” without warranty of any kind.