Skip to content

Instantly share code, notes, and snippets.

@wise-io
Last active March 3, 2022 17:21
Show Gist options
  • Save wise-io/c6a0972089534b8ad3540675ab3331bc to your computer and use it in GitHub Desktop.
Save wise-io/c6a0972089534b8ad3540675ab3331bc to your computer and use it in GitHub Desktop.
Installs Adobe Acrobat Reader DC Silently
# Installs Adobe Acrobat Reader DC
# Acquire a distribution license from Adobe here: http://www.adobe.com/products/reader/rdr_distribution1.html
# Once you have a valid license, you will have download links for Adobe Installers (without bloatware) for distribution.
$Installer = "$env:temp\AdobeReader.exe"
$DownloadURL = '' # Add download URL here
try {
# Download Installer
Invoke-WebRequest -Uri $DownloadURL -OutFile $Installer
# Install Program
Start-Process -Wait -FilePath $Installer -ArgumentList '/sAll /rs /msi EULA_ACCEPT=YES'
}
catch { throw }
finally {
# Remove Installer
Remove-Item $Installer -Force -ErrorAction Ignore
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment