<source lang="xml">
<package
id="adobereader" name="Adobe Reader" revision="%version%" priority="50">
<variable name="version" value="10.0.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\adobereader1000\AdbeRdr1000_en_USAdbeRdr%fileversion%_%locale%.msi" EULA_ACCEPT=YES' > <exit code="0" /> <exit code="3010" reboot="false" /> </install> <install cmd='msiexec /qn /update "%SOFTWARE%\adobereader\AdbeRdrUpd1001_Tier1.msp"' > <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\adobereader1000\AdbeRdr1000_en_USAdbeRdr%fileversion%_%locale%.msi" EULA_ACCEPT=YES' > <exit code="0" /> <exit code="3010" reboot="false" /> </upgrade> <upgrade cmd='msiexec /qn /update "%SOFTWARE%\adobereader\AdbeRdrUpd1001_Tier1.msp"' > <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-AA0000000001AA1000000001}' > <exit code="0" /> </remove>
</package>
</source>