This is the installation script for PDFGear (Version 2.1.12). A free (Currently) PDF editing + conversion software.
Website: PDFGear.com
I would highly suggest you to donate to them, they make such a great job with this software for everyone to use, available for free!
Update 2025-04-29:
Click to reveal
Click to hide
Script now grabs latest version.
Resolved slow downloads.
Faster cleanup when installed.
Update 2025-03-21:
Click to reveal
Click to hide
Shortened alot! By about 80-85% to better follow the script style of the rest of the scripts.
Fixed the cleanup line to be correct.
Here we go:
$ProgressPreference = 'SilentlyContinue'
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
$tp = "C:\TempPath"
mkdir $tp
$htmlContent = Invoke-WebRequest -Uri "https://www.pdfgear.com/download/"
$downloadUrl = $htmlContent.Content | Select-String -Pattern 'https://downloadfiles\.pdfgear\.com/releases/windows/.*?\.exe' | ForEach-Object { $_.Matches.Groups[0].Value }
$installerPath = "$tp\PDFGearInstaller.exe"
Invoke-WebRequest -Uri $downloadUrl -OutFile $installerPath
Start-Process -FilePath $installerPath -ArgumentList "/silent /suppressmsgboxes /norestart" -Wait
Start-Sleep -Seconds 10
del $installerPath