For IT administrators and managed service providers rolling Better PDF out to more than a few computers. Applies to version 0.7.0 and later.
The short version. Run "Better PDF-<version>-setup.exe" /S /allusers /LICENSE=<your key> as an administrator, or from your RMM as SYSTEM. Better PDF installs for everyone on the computer with no windows or prompts, and activates the licence the first time someone opens it.
Download the installer (Better PDF-<version>-setup.exe) from the download section. It accepts these switches:
| Switch | What it does |
|---|---|
/S | Silent: no windows, no questions. On its own it installs for the current user, to %LOCALAPPDATA%\Programs\Better PDF. |
/allusers | Installs for everyone on the computer, under Program Files. Needs administrator rights, so run it elevated or as SYSTEM. |
/LICENSE=<key> | Licences the computer. See section 2. |
/BROWSERPDF | PDFs opened in Chrome and Edge open in Better PDF instead of the browser. See section 4. |
/D=<folder> | Installs to a folder of your choice. It must be the last switch, and the path must not be in quotes, even if it contains spaces. |
Everyone on the computer, licensed, from an RMM or an elevated prompt:
"Better PDF-0.7.0-setup.exe" /S /allusers /LICENSE=BPDF1.xxxxxxxx.yyyyyyyy
Just the signed-in user, no administrator rights needed:
"Better PDF-0.7.0-setup.exe" /S /LICENSE=BPDF1.xxxxxxxx.yyyyyyyy
A custom folder:
"Better PDF-0.7.0-setup.exe" /S /allusers /D=C:\Apps\Better PDF
The installer exits with code 0 when it succeeds. In PowerShell, use Start-Process -Wait so your script waits for it to finish:
Start-Process -FilePath ".\Better PDF-0.7.0-setup.exe" -ArgumentList '/S','/allusers','/LICENSE=BPDF1.xxxxxxxx.yyyyyyyy' -Wait
"%ProgramFiles%\Better PDF\Uninstall Better PDF.exe" /S
For a per-user install, the uninstaller is in %LOCALAPPDATA%\Programs\Better PDF. Uninstalling does not free the licence seat. To move a seat to another computer, open Better PDF on the old one first and choose Deactivate in the licence window, or choose Release next to the old computer in the licence window on any computer using the licence.
Each computer needs to be activated once. You can hand it the key in either of two ways, and Better PDF activates it the first time it starts. Nobody has to type it in.
Add /LICENSE=<key> to the install command, as in section 1. The installer leaves the key in a file named license-key.txt in the install folder, where Better PDF picks it up.
Useful when Better PDF is already installed, or when you manage settings through Group Policy, Intune or your RMM rather than the installer. Create this string value:
| Key | Value name | Type | Data |
|---|---|---|---|
HKEY_LOCAL_MACHINE\Software\Policies\Better PDF | LicenseKey | REG_SZ | your licence key |
From an elevated prompt:
reg add "HKLM\Software\Policies\Better PDF" /v LicenseKey /t REG_SZ /d BPDF1.xxxxxxxx.yyyyyyyy /f
The same value under HKEY_CURRENT_USER works for a single user. If both are set, the computer-wide value wins.
Need a Teams licence with enough seats for your rollout? See pricing.
Better PDF checks for updates and installs them itself, including on computers that were installed silently. On an all-users install, Windows may ask for administrator approval when an update is applied. If your users do not have administrator rights, push each new installer from your RMM with the same command you used to install. Running it over an existing install upgrades it in place and keeps the licence.
Chrome and Edge show PDFs in their own viewer. Add /BROWSERPDF to the install command and they download PDFs and open them straight away in the default PDF app instead:
"Better PDF-0.7.12-setup.exe" /S /allusers /BROWSERPDF /LICENSE=BPDF1.xxxxxxxx.yyyyyyyy
It needs /allusers (run elevated or as SYSTEM), because only an administrator can set browser policies, and it applies to everyone on the computer. Without /allusers the switch does nothing. It sets two browser policies, AlwaysOpenPdfExternally and a pdf entry in AutoOpenFileTypes, under Software\Policies\Google\Chrome and Software\Policies\Microsoft\Edge. While any policy is set, the browsers say they are managed by your organisation. Each PDF opened this way is also saved in the user's Downloads folder. Uninstalling Better PDF removes what the switch added; anything you set yourself is left alone.
To set the same policies through Group Policy or your RMM instead, a PowerShell script run as SYSTEM:
foreach ($b in 'HKLM:\SOFTWARE\Policies\Google\Chrome','HKLM:\SOFTWARE\Policies\Microsoft\Edge') {
$list = "$b\AutoOpenFileTypes"
if (-not (Test-Path $list)) { New-Item -Path $list -Force | Out-Null }
Set-ItemProperty -Path $b -Name AlwaysOpenPdfExternally -Type DWord -Value 1
# Add pdf to the list without replacing anything already in it.
$have = (Get-Item $list).Property | ForEach-Object { (Get-ItemProperty $list).$_ }
if ($have -notcontains 'pdf') {
$n = 1; while ((Get-Item $list).Property -contains "$n") { $n++ }
Set-ItemProperty -Path $list -Name "$n" -Value 'pdf'
}
}
This only lands in Better PDF when Better PDF is the default PDF app. Windows does not let an installer choose that silently. Users can set it in Settings > Apps > Default apps, or you can set it for every computer with the Group Policy setting Set a default associations configuration file, pointing .pdf at the ProgId BetterPDF.pdf.
Users who install it themselves can switch this on or off in the app, under Help > Open PDFs from Chrome and Edge in Better PDF. Windows asks for administrator permission, and the setting applies to everyone on the computer.
Better PDF sends one anonymous count a day, described in the privacy policy. To switch it off on every computer before anyone opens the app, set the system environment variable BPDF_NO_TELEMETRY=1 (or the standard DO_NOT_TRACK=1):
setx BPDF_NO_TELEMETRY 1 /M
The .deb package installs without prompts:
sudo apt-get install -y ./"Better PDF-0.7.0-amd64.deb"
On Linux the licence is entered once in the app, under the Upgrade button.
Stuck on a rollout? Email [email protected] with the command you ran and what happened.