Difference between revisions of "Adobe Reader"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
m
m
Line 6: Line 6:
 
Download the full installer and use the following XML file:
 
Download the full installer and use the following XML file:
  
<PRE>
+
<source lang="xml">
 
<?xml version="1.0" encoding="utf-8" ?>
 
<?xml version="1.0" encoding="utf-8" ?>
 
<packages>
 
<packages>
Line 36: Line 36:
  
 
</packages>
 
</packages>
</PRE>
+
</source>
  
 
I used some additional commands to customize the installation after applying the package. Here is the code of the files.
 
I used some additional commands to customize the installation after applying the package. Here is the code of the files.
Line 81: Line 81:
 
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.
 
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.
  
 +
<source lang="xml">
 
  <package
 
  <package
 
   id="adobe-reader"
 
   id="adobe-reader"
Line 99: Line 100:
 
   
 
   
 
  </package>
 
  </package>
 +
</source>
  
 
Exit code 3010 means "reboot"; see the corresponding reboot flag.
 
Exit code 3010 means "reboot"; see the corresponding reboot flag.

Revision as of 12:56, 4 February 2008

This is a silent installer and uninstaller for Adobe Reader.


Acrobat Reader 8

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"