Commands for installing PDFsam Basic 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 PDFsam.PDFsam -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id PDFsam.PDFsam -e --silentwinget uninstall --id PDFsam.PDFsam -e --silentBy installer
64-bit · MSI · All users
Silent install
msiexec /i pdfsam-basic-6.0.6-windows-x64.msi /qn /norestart /quiet /norestart SKIPTHANKSPAGE=YesWrite a log
msiexec /i pdfsam-basic-6.0.6-windows-x64.msi /qn /norestart /quiet /norestart SKIPTHANKSPAGE=Yes /l*v "%TEMP%\pdfsam-basic-install.log"Uninstall
msiexec /x {3712C9D8-9FE8-4DDA-B75C-E0214767B60B} /qn /norestart- MSI product code
- {3712C9D8-9FE8-4DDA-B75C-E0214767B60B}
- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{3712C9D8-9FE8-4DDA-B75C-E0214767B60B}
- UpgradeCode
- {DB40FA48-1629-11E2-9401-2F676188709B}
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-pdfsam-basic.ps1
$url = 'https://github.com/torakiki/pdfsam/releases/download/v6.0.6/pdfsam-basic-6.0.6-windows-x64.msi'
$sha256 = '210996DB06D202A30AC23E23ED3EFDF9C3396894481ABFBC97BC26945A6C6346'
$file = Join-Path $env:TEMP 'pdfsam-basic-6.0.6-windows-x64.msi'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process msiexec.exe -ArgumentList '/i', ('"{0}"' -f $file), '/qn', '/norestart', '/quiet /norestart SKIPTHANKSPAGE=Yes' -Wait