Difference between revisions of "Adobe Reader"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
(Undo revision 8296 by Ulcha (Talk) There is no 9.3.3 msi, only an exe that packages the 9.3.0 with 9.3.2 and 9.3.3 updates the same way we do it)
(Adobe Reader 9.3 Installer: Update for 9.3.4 and remove security advisory that applies to 9.3.2 and earlier)
Line 20: Line 20:
  
 
<package
 
<package
     id="adobereader93"
+
     id="adobereader"
     name="Adobe Reader 9.3"
+
     name="Adobe Reader %version%"
     revision="930"
+
     revision="%version%"
 
     priority="50">
 
     priority="50">
  
     <check type="uninstall" condition="exists" path="Adobe Reader 9.3.3" />
+
     <variable name="version" value="9.3.4" />
  
<!-- First uninstall Adobe Reader 8.1.2 -->
+
    <check type="uninstall" condition="exists" path="Adobe Reader %version%" />
     <install cmd='MsiExec.exe /x{AC76BA86-7AD7-1033-7B44-A80000000002} /qn ' >
+
 
 +
    <!-- First uninstall Adobe Reader 8.1.2 -->
 +
     <install cmd='msiexec /x{AC76BA86-7AD7-1033-7B44-A80000000002} /qn ' >
 
         <exit code="1605" />
 
         <exit code="1605" />
 
         <exit code="1618" />
 
         <exit code="1618" />
Line 43: Line 45:
 
     <install cmd='msiexec /qn /update %SOFTWARE%\AdobeReader93\AdbeRdrUpd933_all_incr.msp' >
 
     <install cmd='msiexec /qn /update %SOFTWARE%\AdobeReader93\AdbeRdrUpd933_all_incr.msp' >
 
         <exit code="0" />
 
         <exit code="0" />
 +
        <exit code="3010" reboot="false" />
 +
    </install>
 +
    <install cmd='msiexec /qn /update %SOFTWARE%\AdobeReader93\AdbeRdrUpd934_all_incr.msp' >
 
         <exit code="3010" reboot="false" />
 
         <exit code="3010" reboot="false" />
 
     </install>
 
     </install>
  
 
     <!-- First uninstall Adobe Reader 8.1.2 -->
 
     <!-- First uninstall Adobe Reader 8.1.2 -->
     <upgrade cmd='MsiExec.exe /x{AC76BA86-7AD7-1033-7B44-A80000000002} /qn ' >
+
     <upgrade cmd='msiexec /x{AC76BA86-7AD7-1033-7B44-A80000000002} /qn ' >
 
         <exit code="1605" />
 
         <exit code="1605" />
 
         <exit code="1618" />
 
         <exit code="1618" />
Line 59: Line 64:
  
 
     <!-- Later install patch with the msi, first to 9.3.2 then to 9.3.3 -->
 
     <!-- Later install patch with the msi, first to 9.3.2 then to 9.3.3 -->
     <upgrade cmd='msiexec.exe /qn /update "%SOFTWARE%\AdobeReader93\AdbeRdrUpd932_all_incr.msp"' />
+
     <upgrade cmd='msiexec /qn /update "%SOFTWARE%\AdobeReader93\AdbeRdrUpd932_all_incr.msp"' />
     <upgrade cmd='msiexec.exe /qn /update "%SOFTWARE%\AdobeReader93\AdbeRdrUpd933_all_incr.msp"' >
+
     <upgrade cmd='msiexec /qn /update "%SOFTWARE%\AdobeReader93\AdbeRdrUpd933_all_incr.msp"' >
 
         <exit code="0" />
 
         <exit code="0" />
 +
        <exit code="3010" reboot="false" />
 +
    </upgrade>
 +
    <upgrade cmd='msiexec /qn /update "%SOFTWARE%\AdobeReader93\AdbeRdrUpd934_all_incr.msp"' >
 
         <exit code="3010" reboot="false" />
 
         <exit code="3010" reboot="false" />
 
     </upgrade>
 
     </upgrade>
Line 81: Line 89:
 
</source>
 
</source>
 
Note that you should not do this if you use other adobe software. In that case, you may need to delete the other reader/acrobat folders in your Adobe folder/s
 
Note that you should not do this if you use other adobe software. In that case, you may need to delete the other reader/acrobat folders in your Adobe folder/s
 
 
=== Mitigation for critical vulnerability APSA10-01 ===
 
 
This critical vulnerability http://www.adobe.com/support/security/advisories/apsa10-01.html has been reported on June, 04 for Flash and Adobe Reader.
 
 
Patch is scheduled for June, 29 so Adobe in the meanwhile suggests deleting or renaming the authplay.dll inside the Adobe Reader 9 program directory.
 
Add this line to the upgrade section, and increase the revision number:
 
 
<source lang="xml">
 
 
  <upgrade cmd='%COMSPEC% /c del "%PROGRAMFILES%\Adobe\Reader 9.0\Reader\authplay.dll"' />
 
 
</source>
 
  
 
== Adobe Reader 9.1 Installer ==
 
== Adobe Reader 9.1 Installer ==

Revision as of 20:49, 19 August 2010

Adobe Reader is a PDF viewer, similar to Foxit_Reader.

For 9.1.x versions of Adobe Reader, see also Adobe Reader 9.

Adobe Reader 9.3 Installer

All the files are downloaded from ftp://ftp.adobe.com/pub/adobe/reader/win/9.x/. The English version is in the directory "enu".

Patch 9.3.3 can be downloaded from ftp://ftp.adobe.com/pub/adobe/reader/win/9.x/9.3.3/misc/AdbeRdrUpd933_all_incr.msp. However in order to update from 9.3.0 to 9.3.3, first 9.3.2 must be installed. This can be downloaded from ftp://ftp.adobe.com/pub/adobe/reader/win/9.x/9.3.2/misc/AdbeRdrUpd932_all_incr.msp

Please note that you need permission in order to redistribute Adobe Reader, even inside a corporate network. You can apply for a licence here: http://www.adobe.com/products/reader/rdr_distribution1.html?readstep

The .mst file is made with Adobe Customization Wizard 9, available here. You will need to follow Adobe's instructions.

More info:

<package
    id="adobereader"
    name="Adobe Reader %version%"
    revision="%version%"
    priority="50">

    <variable name="version" value="9.3.4" />

    <check type="uninstall" condition="exists" path="Adobe Reader %version%" />

    <!-- First uninstall Adobe Reader 8.1.2 -->
    <install cmd='msiexec /x{AC76BA86-7AD7-1033-7B44-A80000000002} /qn ' >
        <exit code="1605" />
        <exit code="1618" />
    </install>

    <!-- install with the msi -->
    <install cmd='msiexec /qn /i %SOFTWARE%\adobereader93\AdbeRdr930_en_US.msi TRANSFORMS=%SOFTWARE%\adobereader93\AdbeRdr930_en_US.mst' >
        <exit code="0" />
        <exit code="3010" reboot="false" />
    </install>

    <!-- Later install patch with the msi, first to 9.3.2 then to 9.3.3 -->
    <install cmd='msiexec /qn /update %SOFTWARE%\AdobeReader93\AdbeRdrUpd932_all_incr.msp' />
    <install cmd='msiexec /qn /update %SOFTWARE%\AdobeReader93\AdbeRdrUpd933_all_incr.msp' >
        <exit code="0" />
        <exit code="3010" reboot="false" />
    </install>
    <install cmd='msiexec /qn /update %SOFTWARE%\AdobeReader93\AdbeRdrUpd934_all_incr.msp' >
        <exit code="3010" reboot="false" />
    </install>

    <!-- First uninstall Adobe Reader 8.1.2 -->
    <upgrade cmd='msiexec /x{AC76BA86-7AD7-1033-7B44-A80000000002} /qn ' >
        <exit code="1605" />
        <exit code="1618" />
    </upgrade>

    <!-- install with the msi -->
    <upgrade cmd='msiexec /qn /i %SOFTWARE%\adobereader93\AdbeRdr930_en_US.msi TRANSFORMS=%SOFTWARE%\adobereader93\AdbeRdr930_en_US.mst' >
        <exit code="0" />
        <exit code="3010" reboot="false" />
    </upgrade>

    <!-- Later install patch with the msi, first to 9.3.2 then to 9.3.3 -->
    <upgrade cmd='msiexec /qn /update "%SOFTWARE%\AdobeReader93\AdbeRdrUpd932_all_incr.msp"' />
    <upgrade cmd='msiexec /qn /update "%SOFTWARE%\AdobeReader93\AdbeRdrUpd933_all_incr.msp"' >
        <exit code="0" />
        <exit code="3010" reboot="false" />
    </upgrade>
    <upgrade cmd='msiexec /qn /update "%SOFTWARE%\AdobeReader93\AdbeRdrUpd934_all_incr.msp"' >
        <exit code="3010" reboot="false" />
    </upgrade>

    <remove cmd='msiexec /qn /x{AC76BA86-7AD7-1033-7B44-A93000000001}' >
        <exit code="0" />
    </remove>

</package>

The remnants of some older versions of Adobe Reader/Acrobat can cause 9.3 to fail to install the plugin correctly, causing a "The Adobe Acrobat/Reader that is running cannot be used to view PDF files in a web browser..." error. The solution that worked for me was to get wpkg to delete the "Program Files/Adobe' directory after uninstalling version 8. To do this, add the following xml snippet after the uninstall of 8.1.2.

  <!-- Delete the adobe folder -->
    <install cmd='%COMSPEC% /C del /Q "%PROGRAMFILES%\Adobe" ' >
        <exit code="0" />
    </install>

Note that you should not do this if you use other adobe software. In that case, you may need to delete the other reader/acrobat folders in your Adobe folder/s

Adobe Reader 9.1 Installer

All the files are downloaded from ftp://ftp.adobe.com/pub/adobe/reader/win/9.x/9.1/

Please note that you need permission in order to redistribute Adobe Reader, even inside a corporate network. You can apply for a licence here: http://www.adobe.com/products/reader/rdr_distribution1.html?readstep

The .mst file is made with Adobe Customization Wizard 9, available here: http://www.adobe.com/go/reader_wizard

More info:

<package
	id="adobe_reader9.1"
	name="Adobe Reader 9.1 Customized"
	revision="6"
	priority="1">
	<check type="uninstall" condition="exists" path="Adobe Reader 9.1.3" />
	<install cmd='msiexec /qn /i %SOFTWARE%\ar9.1\AdbeRdr910_en_US.msi TRANSFORMS=%SOFTWARE%\AdbeRdr910_en_US.mst' >
		<exit code="0" />
		<exit code="3010" reboot="false" />
	</install>
	<install cmd='msiexec /qn /update %SOFTWARE%\ar9.1\AdbeRdrUpd911_all_incr.msp' />
	<install cmd='msiexec /qn /update %SOFTWARE%\ar9.1\AdbeRdrUpd912_all_incr.msp' />
	<install cmd='msiexec /qn /update %SOFTWARE%\ar9.1\AdbeRdrUpd913_all_incr.msp' />
	
	<!-- Removing 9.1.1 -->
	<upgrade cmd='msiexec /qn /x{AC76BA86-7AD7-1044-7B44-A91000000001}'>
	<exit code="0" />
		<exit code="3010" reboot="false" />
		<exit code="1605" /> <!-- Ignore errors if already removed -->
	</upgrade>
	<upgrade cmd='msiexec /qn /i %SOFTWARE%\ar9.1\AdbeRdr910_en_US.msi TRANSFORMS=%SOFTWARE%\AdbeRdr910_en_US.mst' >
		<exit code="0" />
		<exit code="3010" reboot="false" />
	</upgrade>
	<upgrade cmd='msiexec /qn /update %SOFTWARE%\ar9.1\AdbeRdrUpd911_all_incr.msp' />
	<upgrade cmd='msiexec /qn /update %SOFTWARE%\ar9.1\AdbeRdrUpd912_all_incr.msp' />
	<upgrade cmd='msiexec /qn /update %SOFTWARE%\ar9.1\AdbeRdrUpd913_all_incr.msp' />
	<!-- Removing 9.1.3 -->
	<remove cmd='msiexec /qn /x{AC76BA86-7AD7-1033-7B44-A91000000001}' >
		<exit code="0" />
		<exit code="3010" reboot="false" />
		<exit code="1605" /> <!-- Ignore errors if already removed -->
	</remove>

Adobe Reader 9.0 Installer

(There is also another page just for Adobe Reader 9)

<package
		id="adobe-reader"
		name="Adobe Reader"
		revision="1"
		reboot="false"
		priority="2">

		<check
			type="uninstall"
			condition="exists"
		    path="Adobe Reader 9" />

		<install
				cmd='msiexec /qb /package "%SOFTWARE%\adobe-reader\AcroRead.msi" TRANSFORMS="%SOFTWARE%\adobe-reader\AcroRead.mst"'>
			<exit
                 code="3010" /></install>


		<upgrade
			cmd='msiexec /qb /package "%SOFTWARE%\adobe-reader\AcroRead.msi" TRANSFORMS="%SOFTWARE%\adobe-reader\AcroRead.mst"'>
			<exit
				code="3010" /></upgrade>
		
		<remove
            cmd='msiexec /qb /uninstall "%SOFTWARE%\adobe-reader\AcroRead.msi"' />


Uninstaller wouldn't work using this:

<remove cmd='msiexec.exe /uninstall {AC76BA86-7AD7-1033-7B44-A90000000001} /qn /norestart'/>

Uninstaller would work using this:

<remove cmd='msiexec /qb /uninstall "%SOFTWARE%\adobe-reader\AcroRead.msi'/>

Adobe Reader 8, MSI installer

(There is also another page just for Adobe Reader 8)

Download the MSI installer package. Beware that some MSI packages are broken; i.e. AdbeRdr812_it_IT.msi (size 21664 KB, timestamp 12/01/2008 7.07.00) fails even when double clicked interactively by an Administrator.

You can customize your MSI package deployment by creating a "Microsoft Windows Installer Transform File" .MST file with the "Adobe Customization Wizard 8" tool: http://www.adobe.com/support/downloads/detail.jsp?ftpID=3564

The install command installs version 8.1.2 and then Security Update 1 for version 8.1.2 at the same time.

The upgrade command only installs the Security Update 1, under the assumption that version 8.1.2 is already there and you just increment the revision number.

<?xml version="1.0" encoding="utf-8" ?>
<packages>
 <package id="AcrobatReader_en" name="Adobe Acrobat Reader 8.1.2 with SU1" revision="812" priority="50">
  <check type="uninstall" condition="exists" path="Adobe Reader 8.1.2" />
  <install cmd='msiexec /q /i "%SOFTWARE%\Adobe Acrobat Reader v.8.1.2\AdbeRdr812_en_US.msi" allusers=1 TRANSFORMS=%SOFTWARE%\Adobe Acrobat Reader v.8.1.2\AdbeRdr812_en_US.mst'>
   <exit code="0" />
   <exit code="3010" reboot="false" />
  </install>
  <install cmd='msiexec /q /i "%SOFTWARE%\Adobe Acrobat Reader v.8.1.2\AcrobatReaderUpd812_SU1_all.msi"' />
  <upgrade cmd='msiexec /q /i "%SOFTWARE%\Adobe Acrobat Reader v.8.1.2\AcrobatReaderUpd812_SU1_all.msi"' />
  <remove  cmd='MsiExec.exe /qn /x{AC76BA86-7AD7-1033-7B44-A81200000003}'>
   <exit code="0" />
   <exit code="3010" reboot="false" />
  </remove>
 </package>
</packages>

Adobe Reader 8, EXE installer

Download the full installer and use the following XML file:

<?xml version="1.0" encoding="utf-8" ?>
<packages>

<package id='AcrobatReader_en' name='Adobe Acrobat Reader' revision='811' priority='50' reboot='false' >
  <!-- Adobe Acrobat Reader -->
  <check type='uninstall' condition='exists' path='Adobe Reader 8.1.1' />
  <install cmd='"%SOFTWARE%\Adobe Acrobat Reader v.8.1\AdbeRdr810_en_US.exe" /sAll /rs' >
    <exit code='3010' />
  </install>
  <install cmd='msiexec /qn /update "%SOFTWARE%\Adobe Acrobat Reader v.8.1.1\ReaderUpd811_all_incr.msp"' />
  <install cmd='cmd /C reg import "%SOFTWARE%\Adobe Acrobat Reader v.8.1\acceptEula.reg"' />
  <install cmd='cmd /C reg import "%SOFTWARE%\Adobe Acrobat Reader v.8.1\disableBeyond.reg"' />
  <install cmd='cmd /C reg import "%SOFTWARE%\Adobe Acrobat Reader v.8.1.1\disableSpeedLauncher.reg"' />
  <install cmd='"%SOFTWARE%\Adobe Acrobat Reader v.8.1\cleanup.cmd"' />
  <remove cmd='msiexec /qn /x{AC76BA86-7AD7-1033-7B44-A81100000003}' >
    <exit code='3010' />
  </remove>
  <upgrade cmd='"%SOFTWARE%\Adobe Acrobat Reader v.8.1\AdbeRdr810_en_US.exe" /sAll /rs' >
    <exit code='3010' />
  </upgrade>
  <upgrade cmd='msiexec /qn /update "%SOFTWARE%\Adobe Acrobat Reader v.8.1.1\ReaderUpd811_all_incr.msp"' />
  <upgrade cmd='cmd /C reg import "%SOFTWARE%\Adobe Acrobat Reader v.8.1\acceptEula.reg"' />
  <upgrade cmd='cmd /C reg import "%SOFTWARE%\Adobe Acrobat Reader v.8.1\disableBeyond.reg"' />
  <upgrade cmd='cmd /C reg import "%SOFTWARE%\Adobe Acrobat Reader v.8.1.1\disableSpeedLauncher.reg"' />
  <upgrade cmd='"%SOFTWARE%\Adobe Acrobat Reader v.8.1\cleanup.cmd"' />
  <conflicts package-id='AcrobatReader_de' />
</package>

</packages>

I used some additional commands to customize the installation after applying the package. Here is the code of the files.

acceptEula.reg:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Adobe\Acrobat Reader\8.0\AdobeViewer]
"EULA"=dword:00000001
"Launched"=dword:00000001

disableBeyond.reg:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Adobe\Acrobat Reader\8.0\Downtown]
"bDontShowAtLaunch"=dword:00000001

disableSpeedLauncher.reg:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]
"Adobe Reader Speed Launcher"=-

cleanup.cmd

@echo off

echo Removing unnecessary shortcuts
del /F "%ALLUSERSPROFILE%\Desktop\Adobe Reader*.*"
exit 0

Acrobat Reader 7

In, for example, %PROGRAMFILES%\Adobe\Acrobat 7.0\Setup FilesRdrBig708\ENU_ (and also ENU, though this probably comes from the Enterprise Edition installer) are Adobe Reader 7.0.8.msi and Data1.cab. Copy these files to your server and use them to deploy Adobe Reader on other workstations.

Take care of the language version, the one below is English. A package in a different language will also have a different ID for the remove command. If you previously have a package called acrobat7, increment the revision number - the upgrade command comes into effect and obsoletes 7.0 and 7.0.1 to 7.0.4 packages.

 <package
   id="adobe-reader"
   name="Adobe Reader 7.0.5"
   revision="5"
   priority="10">
 
 <check type="uninstall" condition="exists" path="Adobe Reader 7.0.5" />
 
 <install cmd='msiexec /q /i "%SOFTWARE%\Adobe Reader 7.0.5.msi" allusers=1' />
 
 <remove cmd='MsiExec.exe /q /x{AC76BA86-7AD7-1033-7B44-A70500000002}' />
 
 <upgrade cmd='msiexec /q /i "%SOFTWARE%\Adobe Reader 7.0.5.msi" allusers=1'>
  <exit code="0" />
  <exit code="3010" reboot="true" />
 </upgrade>
 
 </package>

Exit code 3010 means "reboot"; see the corresponding reboot flag.

In the 'remove' section, change the third part of the alphanumeric chain (i.e. the '1033' in 'AC76BA86-7AD7-1033-7B44-A70500000002') into the correct locale ID (LCID) / National Language Support (NLS) code, for example:

  • Chinese (Traditional): 1028
  • German: 1031
  • English (US): 1033
  • French: 1036
  • Japanese: 1041
  • Korean: 1042
  • Polish: 1045
  • Chinese (Simplified): 2052
  • Italian: 1040

There is a list of locale IDs at http://www.microsoft.com/globaldev/reference/lcid-all.mspx.


See Talk:Adobe_Reader for some more info on uninstalling.

Removing desktop shortcut

del "%ALLUSERSPROFILE%\Desktop\Adobe Reader 7.0.lnk"