Commands for installing PDFtk Server without prompts, removing it again and detecting it from deployment tools. A command is shown only when it is certain: from the manifest or the installer technology’s documented default.
Related guide: Silent install switches: MSI, NSIS, Inno Setup · Uninstall a program with the registry or PowerShell
With winget
PowerShell
winget install --id PDFLabs.PDFtk.Server -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id PDFLabs.PDFtk.Server -e --silentwinget uninstall --id PDFLabs.PDFtk.Server -e --silentBy installer
32-bit · EXE (Inno Setup) · All users
Silent install
pdftk_server-2.02-win-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Custom folder
pdftk_server-2.02-win-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\pdftk-server"- Uninstall registry key
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{E3617D29-6D71-4B5C-B9E2-C927C705E317}_is1
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-pdftk-server.ps1
$url = 'https://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/pdftk_server-2.02-win-setup.exe'
$sha256 = 'CC8F6A43FC91026BB739AD0AD9A124C24750D6127662FB3638EC1D44403AABD2'
$file = Join-Path $env:TEMP 'pdftk_server-2.02-win-setup.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait