GNU Privacy Guard silent install and uninstall

GNU Privacy Guard (GnuPG or GPG) is a free-software replacement for Symantec's PGP cryptographic software suite.

EXE x64 Updated 19 Oct 2026
Vendor
The GnuPG Project
Category
Security
Installer
NSIS (Nullsoft)
Architecture
x64
Checked version
2.5.24
winget ID
GnuPG.GnuPG
License
GPLv3
Download
Official download

Silent install

gnupg-w32-2.5.24_20260923.exe /S
  1. Download the installer from the direct download link.
  2. Open an elevated Command Prompt: right-click Command Prompt and select Run as administrator.
  3. Change to the folder with the installer, for example cd C:\Temp.
  4. Run the command above. Adjust the file name if you downloaded a different version.

Or install with winget

winget install --id GnuPG.GnuPG --exact --silent --scope machine --accept-package-agreements --accept-source-agreements

Silent uninstall

winget
winget uninstall --id GnuPG.GnuPG --exact --silent --accept-source-agreements

Run the command from an elevated Command Prompt.

About the NSIS (Nullsoft) installer

NSIS installers use /S for a silent install. Switches are case-sensitive, and /D= must come last without quotes.

SwitchWhat it does
/SSilent install (capital S).
/D=C:\PathInstall folder. Must be the last switch, no quotes.
/allusersPer-machine install, supported by many but not all NSIS setups.

Deploy GNU Privacy Guard with Microsoft Intune

Package the installer as a Win32 app (.intunewin) and use these settings:

Install commandgnupg-w32-2.5.24_20260923.exe /S
Uninstall command Use the uninstaller from the install folder; winget is not available to the SYSTEM account by default.
Install behaviorSystem

More security apps