User Tools

Site Tools


userspace:adobe_reader_9.x

Adobe Reader 9.5.x

Script by phimeca .

Tested with opsi 4.0.2 Tested with Windows XP Professional and Windows 7 Enterprise x64

Installation Script for Adobe Reader 9.5 with patchs until 9.5.5.
Be careful, it also uninstall version 10.0 .
Remove adobe desktop shortcut.
Disable update notification to users.
msi files can be downloaded from: ftp://ftp.adobe.com/pub/adobe/reader/win/9.x/

Uninstallation Script for Adobe Reader Versions 9.5.x

setup.ins

[Actions]
 
DefVar $ProductId$
DefVar $MinimumSpace$
DefVar $LogDir$
DefVar $ExePath$
DefVar $DisplayVersion$
DefVar $ExitCode$
 
Set $LogDir$ = "%SystemDrive%\tmp"
Set $ProductId$ = "AdobeReader"
Set $MinimumSpace$ = "150 MB"
Set $ExePath$ = "%ProgramFilesDir%\Adobe\Reader 9.0\Reader\AcroRd32.exe"
 
ShowBitmap "%ScriptPath%\"  + $ProductId$ + ".png"
 
if not(HasMinimumSpace ("%SystemDrive%", $MinimumSpace$))
  LogError "Not enough space on %SystemDrive%, " + $MinimumSpace$ + " on drive %SystemDrive% needed for " + $ProductId$
  isFatalError
else
  Message "Installing " + $ProductId$ + ". It can takes several minutes, please be patient..."
endif
 
 
; remove old version in order to apply new TRANSFORM file (remove it for the next version)
if FileExists("%ProgramFilesDir%\Adobe\Reader 10.0\Reader\AcroRd32.exe")
  Message "Uninstalling " + $ProductId$ + " ..."
  Winbatch_uninstall_v10
endif
 
 
if not(FileExists(""+$ExePath$+""))
  Winbatch_install
  Sub "%ScriptPath%\check_msi_exit_code.ins"
endif
 
 
Set $DisplayVersion$ = GetRegistrystringvalue32("[HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{AC76BA86-7AD7-1036-7B44-A95000000001}] DisplayVersion")
 
if ($DisplayVersion$ = "9.5.0")
  Winbatch_patch_install_951
  Sub "%ScriptPath%\check_msi_exit_code.ins"
endif
 
 
Set $DisplayVersion$ = GetRegistrystringvalue32("[HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{AC76BA86-7AD7-1036-7B44-A95000000001}] DisplayVersion")
 
if ($DisplayVersion$ = "9.5.1")
  Winbatch_patch_install_952
  Sub "%ScriptPath%\check_msi_exit_code.ins"
endif
 
 
Set $DisplayVersion$ = GetRegistrystringvalue32("[HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{AC76BA86-7AD7-1036-7B44-A95000000001}] DisplayVersion")
 
if ($DisplayVersion$ = "9.5.2")
  Winbatch_patch_install_953
  Sub "%ScriptPath%\check_msi_exit_code.ins"
endif
 
 
Set $DisplayVersion$ = GetRegistrystringvalue32("[HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{AC76BA86-7AD7-1036-7B44-A95000000001}] DisplayVersion")
 
if ($DisplayVersion$ = "9.5.3")
  Winbatch_patch_install_954
  Sub "%ScriptPath%\check_msi_exit_code.ins"
endif
 
 
Set $DisplayVersion$ = GetRegistrystringvalue32("[HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{AC76BA86-7AD7-1036-7B44-A95000000001}] DisplayVersion")
 
if ($DisplayVersion$ = "9.5.4")
  Winbatch_patch_install_955
  Sub "%ScriptPath%\check_msi_exit_code.ins"
endif
 
 
Files_remove_shortcut
Winbatch_disable_updater
 
if not(FileExists(""+$ExePath$+""))
  Message "Error: file " + $ExePath$ + " not found after installing " + $ProductId$ + "!"
  isFatalError
endif
 
 
 
 
[Winbatch_install]
msiexec /i "%ScriptPath%\AdbeRdr950_fr_FR.msi" /l* "$LogDir$\$ProductId$.install_log.txt" /qn ALLUSERS=2 REBOOT=ReallySuppress EULA_ACCEPT=YES SUPPRESS_APP_LAUNCH=YES
 
 
[Winbatch_disable_updater]
schtasks /delete /TN "Adobe Flash Player Updater" /F
 
 
[Files_remove_shortcut]
delete "%CommonDesktopDir%\Adobe Reader 9.lnk"
 
 
[Winbatch_patch_install_951]
msiexec /p "%ScriptPath%\AdbeRdrUpd951_all_incr.msp" /qn
 
[Winbatch_patch_install_952]
msiexec /p "%ScriptPath%\AdbeRdrUpd952_all_incr.msp" /qn
 
[Winbatch_patch_install_953]
msiexec /p "%ScriptPath%\AdbeRdrUpd953_all_incr.msp" /qn
 
[Winbatch_patch_install_954]
msiexec /p "%ScriptPath%\AdbeRdrUpd954_all_incr.msp" /qn
 
[Winbatch_patch_install_955]
msiexec /p "%ScriptPath%\AdbeRdrUpd955_all_incr.msp" /qn
 
 
[Winbatch_uninstall_v10]
msiexec /qn /x{AC76BA86-7AD7-1033-7B44-AA1000000001}
msiexec /qn /x{AC76BA86-7AD7-1036-7B44-AA1000000001}

uninstall.ins

[Actions]
DefVar $ExePath$
DefVar $ProductId$
 
Set $ProductId$ = "AdobeReader"
Set $ExePath$ = "%ProgramFilesDir%\Adobe\Reader 9.0\Reader\AcroRd32.exe"
 
ShowBitmap "%ScriptPath%\" + $ProductId$ + ".png"
KillTask "AcroRd32.exe"
 
if FileExists(""+$ExePath$+"")
  Message "Uninstalling " + $ProductId$ + " ..."
  Winbatch_uninstall_v950
  Sub "%ScriptPath%\check_msi_exit_code.ins"
endif
 
 
 
[Winbatch_uninstall_v950]
 
;msiexec /qn /x{AC76BA86-7AD7-1033-7B44-A94000000001}
;msiexec /qn /x{AC76BA86-7AD7-1036-7B44-A95000000001}
msiexec /x "%ScriptPath%\AdbeRdr950_fr_FR.msi" REBOOT=ReallySuppress /qn

check_msi_exit_code.ins

userspace/adobe_reader_9.x.txt · Last modified: 2021/08/23 08:37 (external edit)