Adobe Reader DC

From psadt | Evergreen Application Management
Jump to navigation Jump to search

About

Adobereader.jpg

Adobe Acrobat Reader is a free application for reliably viewing, printing, and commenting on PDF documents.

Version: 20.009.20074

Assumptions

This document assumes you are familiar with the use of a Windows Administrator Command Prompt. It also assumes your copy of the PSADT is preconfigured to write logs to C:\ProgramData\Logs.

Obtain Package Source

Download the Acrobat Customization Wizard DC and install it.

Adobereader01.png

Download the Adobe Reader executable package installer.

Adobereader02.png

If there is a later patch not included in the exe bundle (as there is in this example), download the patch also.

Adobereader03.png

Notes

Vendor install is an EXE wrapper which includes an embedded MSI and MSP.

Extract Required files

Extract the contents of AcroRdrDC2000920063_en_US.exe.

Copy the patch file AcroRdrDCUpdd2000920074.msp to your package folder. This will replace the older msp file contained in the above executable you just extracted.

Customise Package

Launch the Acrobat Customization Wizard DC and open AcroRead.msi from your temp folder where you extracted the original executable.

Adobereader04.png

Generate Transform

Click Transform> Generate Transform.

Adobereader05.png

Save MST file (in this example named AcroRead.mst).

Personalization Options

Adjust settings from the defaults as required. Changes applied:

  • Suppress EULA

Adobereader06.png

Installation Options

Adjust settings from the defaults as required. Changes applied:

  • Installer will decide which product will be the default (This option is necessary for Windows 10)
  • Install Silently with no user interaction
  • Suppress Reboot

Adobereader07.png

Shortcuts

Adjust settings from the defaults as required. Changes applied:

  • Remove Desktop shortcut
  • Remove Start Menu shortcut

The Start Menu shortcut will be recreated later in the package to address a known issue with the Reader shortcut not displaying correctly.

Online Services and Features

Adjust settings from the defaults as required. Changes applied:

  • Disable Product updates
  • When opening PDFs in IE prompt for Open/Save
  • Disable all services

Adobereader08.png

Direct Editor

Suppress the installation of the Adobe Acrobat Update Service.

Go to the Feature table. Change the Level value of the ARM cell to 0.

Adobereader09.png

Save your changes and close the wizard.

Deploy Info

Adobe Acrobat Reader DC
Adobe Systems Incorporated
C:\Program Files (x86)\Adobe\Acrobat Reader DC\Reader\AcroRd32.exe

Hive: HKEY_LOCAL_MACHINE
Key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{AC76BA86-7AD7-1033-7B44-AC0F074E4100}
Value: DisplayVersion
DataType: Version
Data: 20.009.20074
Operator: Greater than or equal to
32-bit: Yes
SCCM Requirement: None

Deploy-Application.ps1

Relevant extracts from the script are as follows:

##*===============================================
##* VARIABLE DECLARATION
##*===============================================
## Variables: Application
[string]$appVendor = 'Adobe'
[string]$appName = 'Reader DC'
[string]$appVersion = '20.009.20074'
[string]$appArch = 'x86'
[string]$appLang = 'EN'
[string]$appRevision = '01'
[string]$appScriptVersion = '1.0.0'
[string]$appScriptDate = '11/08/2020'
[string]$appScriptAuthor = 'psadt.com'
[string]$appGUID = '{AC76BA86-7AD7-1033-7B44-AC0F074E4100}'
If ($appArch -eq "x86")
	{[string]$appRegPath = "HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\$appGUID"}
ElseIf ($appArch -eq "x64")
	{[string]$appRegPath = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$appGUID"}
[string]$appPath = "${env:ProgramFiles(x86)}\Adobe\Acrobat Reader DC\Reader\AcroRd32.exe"
[string]$patchVer = ($appVersion -Split '\.') -join ''
[string]$Patch = 'AcroRdrDCUpd' + $patchVer + '.msp'
##*===============================================




##*===============================================
##* INSTALLATION 
##*===============================================
[string]$installPhase = 'Installation'

<## Handle Zero-Config MSI Installations
If ($useDefaultMsi) {
	[hashtable]$ExecuteDefaultMSISplat =  @{ Action = 'Install'; Path = $defaultMsiFile }; If ($defaultMstFile) { $ExecuteDefaultMSISplat.Add('Transform', $defaultMstFile) }
	Execute-MSI @ExecuteDefaultMSISplat; If ($defaultMspFiles) { $defaultMspFiles | ForEach-Object { Execute-MSI -Action 'Patch' -Path $_ } }
}
#>

## <Perform Installation tasks here>

# Check if app version exists before running install
$uninstRegKey = Get-ItemProperty $appRegPath | Select-Object DisplayVersion
If ($uninstRegKey.DisplayVersion -lt $appVersion)
	{
	Write-Log -Message "Installing $appName $appVersion" -LogType 'CMTrace'
	[psobject]$executeMSIresult = Execute-MSI -Action 'Install' -Path 'AcroRead.msi' -Transform 'AcroRead.mst' -Patch $Patch -SkipMSIAlreadyInstalledCheck -AddParameters "ALLUSERS=1" -PassThru -ContinueOnError $true
	$appMSIResult = $executeMSIresult.ExitCode
	Write-Log -Message "MSI Exit Code: $appMSIResult" -LogType 'CMTrace'
	
	# Shortcut fix | known issue
	New-Shortcut -Path "$envCommonStartMenuPrograms\Adobe Reader DC.lnk" -TargetPath $appPath -IconLocation $appPath -Description "Adobe Reader DC"
	}
Else
	{Write-Log -Message "Application already exists and is the latest version." -LogType 'CMTrace'


# Configuration
Set-RegistryKey -Key "HKLM:\SOFTWARE\Policies\Adobe\Acrobat Reader\DC\FeatureLockdown\cIPM" -Name 'bShowMsgAtLaunch' -Type 'Dword' -Value 0

[scriptblock]$HKCURegistrySettings = {
	Set-RegistryKey -Key "HKCU:\Software\Adobe\Acrobat Reader\DC\AVAlert\cCheckbox" -Name 'iAppDoNotTakePDFOwnershipAtLaunchWin10' -Type 'Dword' -Value 1 -SID $UserProfile.SID
	}
Invoke-HKCURegistrySettingsForAllUsers -RegistrySettings $HKCURegistrySettings




##*===============================================
##* UNINSTALLATION
##*===============================================
[string]$installPhase = 'Uninstallation'

## Handle Zero-Config MSI Uninstallations
If ($useDefaultMsi) {
	[hashtable]$ExecuteDefaultMSISplat =  @{ Action = 'Uninstall'; Path = $defaultMsiFile }; If ($defaultMstFile) { $ExecuteDefaultMSISplat.Add('Transform', $defaultMstFile) }
	Execute-MSI @ExecuteDefaultMSISplat
}

# <Perform Uninstallation tasks here>

Remove-MSIApplications -Name "Adobe Acrobat Reader DC"

# Remove configuration
Remove-RegistryKey -Key "HKLM:\SOFTWARE\Policies\Adobe\Acrobat Reader\DC\FeatureLockdown\cIPM"

[scriptblock]$HKCURegistrySettings = {
	Remove-RegistryKey -Key "HKCU:\Software\Adobe\Acrobat Reader\DC\AVAlert\cCheckbox" -SID $UserProfile.SID
	}
Invoke-HKCURegistrySettingsForAllUsers -RegistrySettings $HKCURegistrySettings