Difference between revisions of "Adobe Reader"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
(Update for version 10.1.0)
(Adobe Reader 9.4: Update to 9.4.5 using Adobe's recommended patch sequence, and include error code 1638 as OK (already installed))
Line 94: Line 94:
 
   priority="50">
 
   priority="50">
  
   <variable name="version" value="9.4.4" />
+
   <variable name="version" value="9.4.5" />
  
 
   <check type="uninstall" condition="exists" path="Adobe Reader %version%" />
 
   <check type="uninstall" condition="exists" path="Adobe Reader %version%" />
Line 107: Line 107:
 
   <install cmd='msiexec /qn /i "%SOFTWARE%\adobereader\AdbeRdr940_en_US.msi" TRANSFORMS="%SOFTWARE%\adobereader\AdbeRdr940_en_US.mst"' >
 
   <install cmd='msiexec /qn /i "%SOFTWARE%\adobereader\AdbeRdr940_en_US.msi" TRANSFORMS="%SOFTWARE%\adobereader\AdbeRdr940_en_US.mst"' >
 
     <exit code="0" />
 
     <exit code="0" />
 +
    <exit code="1638" />
 
     <exit code="3010" reboot="false" />
 
     <exit code="3010" reboot="false" />
 
   </install>
 
   </install>
Line 113: Line 114:
 
     <exit code="3010" reboot="false" />
 
     <exit code="3010" reboot="false" />
 
   </install>
 
   </install>
   <install cmd='msiexec /qn /update "%SOFTWARE%\adobereader\AdbeRdrUpd943_all_incr.msp"' >
+
   <install cmd='msiexec /qn /update "%SOFTWARE%\adobereader\AdbeRdrUpd945_all_incr.msp"' >
    <exit code="0" />
+
    <exit code="3010" reboot="false" />
+
  </install>
+
  <install cmd='msiexec /qn /update "%SOFTWARE%\adobereader\AdbeRdrUpd944_all_incr.msp"' >
+
 
     <exit code="0" />
 
     <exit code="0" />
 
     <exit code="3010" reboot="false" />
 
     <exit code="3010" reboot="false" />
Line 125: Line 122:
 
   <upgrade cmd='msiexec /qn /i "%SOFTWARE%\adobereader\AdbeRdr940_en_US.msi" TRANSFORMS="%SOFTWARE%\adobereader\AdbeRdr940_en_US.mst"' >
 
   <upgrade cmd='msiexec /qn /i "%SOFTWARE%\adobereader\AdbeRdr940_en_US.msi" TRANSFORMS="%SOFTWARE%\adobereader\AdbeRdr940_en_US.mst"' >
 
     <exit code="0" />
 
     <exit code="0" />
 +
    <exit code="1638" />
 
     <exit code="3010" reboot="false" />
 
     <exit code="3010" reboot="false" />
 
   </upgrade>
 
   </upgrade>
Line 131: Line 129:
 
     <exit code="3010" reboot="false" />
 
     <exit code="3010" reboot="false" />
 
   </upgrade>
 
   </upgrade>
   <upgrade cmd='msiexec /qn /update "%SOFTWARE%\adobereader\AdbeRdrUpd943_all_incr.msp"' >
+
   <upgrade cmd='msiexec /qn /update "%SOFTWARE%\adobereader\AdbeRdrUpd945_all_incr.msp"' >
    <exit code="0" />
+
    <exit code="3010" reboot="false" />
+
  </upgrade>
+
  <upgrade cmd='msiexec /qn /update "%SOFTWARE%\adobereader\AdbeRdrUpd944_all_incr.msp"' >
+
 
     <exit code="0" />
 
     <exit code="0" />
 
     <exit code="3010" reboot="false" />
 
     <exit code="3010" reboot="false" />

Revision as of 14:39, 15 June 2011

Adobe Reader is a PDF viewer, similar to Foxit_Reader.

Downloading the Software

Adobe offer 2 general flavors of install file (both free to use). The standard one for normal users and an enterprise package for system administrators. There are NO third party (or Adobe) add-ons if you download the enterprise version from their distribution center.

Which ever installation file you use, please note that you need permission in order to redistribute Adobe Reader, even inside a corporate network.

Normal Version

All the files are downloaded from ftp://ftp.adobe.com/pub/adobe/reader/win/. The English version is in the directory "en_US", or "enu" for older versions.

Enterprise Version

You can apply for a license here: http://www.adobe.com/products/reader/rdr_distribution1.html?readstep

Don't worry this doesn't cost anything and only takes a few minutes to fill out the form and receive your agreement certificate.

Once you have the distribution agreement, you can download the enterprise distribution version from here: http://get.adobe.com/reader/enterprise

This package generally comes as an exe file but you can open it with a using an archival utility like 7-zip to pull out any files you need.

Usually you'll only need the following files:

  • AcroRead.msi (equivalent to the AdbeRdrxxxx_en_US.msi)
  • Data1.cab

If you get stuck, Adobe provides loads of help and resources for enterprise deployment.

Customization Wizard

The .mst file is made with Adobe Customization Wizard, available here for Adobe Reader 9.x. You will need to follow Adobe's instructions and recreate the MST each time you apply a new patch. For more info see: http://www.adobe.com/go/reader_wizard_info

For Reader X --> Adobe Customization Wizard X

Versions

Please refer to Adobe's guide for the recommended order to install updates: http://kb2.adobe.com/cps/498/cpsid_49880.html

Adobe Reader X

You can download version 10 from ftp://ftp.adobe.com/pub/adobe/reader/win/10.x/. The Tier 1, 2, 3 and 4 .msp packages which are available are for specific language versions. The Tier 1 version is for English, French, German & Japanese.

Adobe Customization Wizard 10 is available here. You can also deploy it without a transform but you won't be able to customize the installer. There are command line switches available in section 3 of the Adobe Enterprise Administration Guide.

<package
  id="adobereader"
  name="Adobe Reader"
  revision="%version%"
  priority="50">
	
  <variable name="version" value="10.1.0" />
  <variable name="fileversion" value="1010" />
  <variable name="locale" value="en_US" />

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

  <!-- Install with the MSI -->
  <install cmd='msiexec /qn /i "%SOFTWARE%\adobereader\AdbeRdr%fileversion%_%locale%.msi" EULA_ACCEPT=YES' >
    <exit code="0" />
    <exit code="3010" reboot="false" />
  </install>
  <install cmd='%COMSPEC% /c del /q "%AllUsersProfile%\Desktop\Adobe Reader X.lnk"' ><exit code="any" /></install>
  <install cmd='%COMSPEC% /c del /q "%Public%\Desktop\Adobe Reader X.lnk"' ><exit code="any" /></install>
  <install cmd='%COMSPEC% /c REG ADD "HKLM\SOFTWARE\Adobe\Adobe ARM\1.0\ARM" /v "iCheck" /d "0" /t REG_DWORD /f' /> <!-- Disable auto-update -->
  <install cmd='%COMSPEC% /c REG ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /v "Adobe ARM" /d "" /f' /> <!-- Disable misc auto-run stuff -->
  <install cmd='%COMSPEC% /c REG ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /v "Adobe Reader Speed Launcher" /d "" /f' /> <!-- Disable misc auto-run stuff -->
  <install cmd='%COMSPEC% /c REG ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /v "AdobeAAMUpdater-1.0" /d "" /f' /> <!-- Disable misc auto-run stuff -->

  <!-- Upgrade with the MSI -->
  <upgrade cmd='msiexec /qn /i "%SOFTWARE%\adobereader\AdbeRdr%fileversion%_%locale%.msi" EULA_ACCEPT=YES' >
    <exit code="0" />
    <exit code="3010" reboot="false" />
  </upgrade>
  <upgrade cmd='%COMSPEC% /c del /q "%AllUsersProfile%\Desktop\Adobe Reader X.lnk"' ><exit code="any" /></upgrade>
  <upgrade cmd='%COMSPEC% /c del /q "%Public%\Desktop\Adobe Reader X.lnk"' ><exit code="any" /></upgrade>
  <upgrade cmd='%COMSPEC% /c REG ADD "HKLM\SOFTWARE\Adobe\Adobe ARM\1.0\ARM" /v "iCheck" /d "0" /t REG_DWORD /f' /> <!-- Disable auto-update -->
  <upgrade cmd='%COMSPEC% /c REG ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /v "Adobe ARM" /d "" /f' /> <!-- Disable misc auto-run stuff -->
  <upgrade cmd='%COMSPEC% /c REG ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /v "Adobe Reader Speed Launcher" /d "" /f' /> <!-- Disable misc auto-run stuff -->
  <upgrade cmd='%COMSPEC% /c REG ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /v "AdobeAAMUpdater-1.0" /d "" /f' /> <!-- Disable misc auto-run stuff -->

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

Adobe Reader 9.4

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

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

  <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%\adobereader\AdbeRdr940_en_US.msi" TRANSFORMS="%SOFTWARE%\adobereader\AdbeRdr940_en_US.mst"' >
    <exit code="0" />
    <exit code="1638" />
    <exit code="3010" reboot="false" />
  </install>
  <install cmd='msiexec /qn /update "%SOFTWARE%\adobereader\AdbeRdrUpd942_all_incr.msp"' >
    <exit code="0" />
    <exit code="3010" reboot="false" />
  </install>
  <install cmd='msiexec /qn /update "%SOFTWARE%\adobereader\AdbeRdrUpd945_all_incr.msp"' >
    <exit code="0" />
    <exit code="3010" reboot="false" />
  </install>

  <!-- Upgrade with the msi -->
  <upgrade cmd='msiexec /qn /i "%SOFTWARE%\adobereader\AdbeRdr940_en_US.msi" TRANSFORMS="%SOFTWARE%\adobereader\AdbeRdr940_en_US.mst"' >
    <exit code="0" />
    <exit code="1638" />
    <exit code="3010" reboot="false" />
  </upgrade>
  <upgrade cmd='msiexec /qn /update "%SOFTWARE%\adobereader\AdbeRdrUpd942_all_incr.msp"' >
    <exit code="0" />
    <exit code="3010" reboot="false" />
  </upgrade>
  <upgrade cmd='msiexec /qn /update "%SOFTWARE%\adobereader\AdbeRdrUpd945_all_incr.msp"' >
    <exit code="0" />
    <exit code="3010" reboot="false" />
  </upgrade>

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

Adobe Reader 9.3

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

<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

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

(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"