tis-adobereader
2019.21.20061-44
Adobe Reader permit to view and print files in Portable Document Format (PDF).
60010 downloads

Description
- package : tis-adobereader
- version : 2019.21.20061-44
- architecture : all
- categories : Office
- maintainer : Tranquil IT,Simon Fonteneau,Jimmy PELÉ
- description : Adobe Reader permit to view and print files in Portable Document Format (PDF).
- locale : all
- target_os : windows
- min_os_version : 6.1
- max_os_version :
- min_wapt_version : 1.5
- sources : https://get.adobe.com/reader/
- installed_size : 981577728
- impacted_process : AcroRd32.exe,RdrCEF.exe
- description_fr : Adobe Reader permet l'affichage et l'impression des fichiers PDF.
- description_pl :
- description_de :
- description_es :
- description_pt :
- description_it :
- description_nl :
- description_ru :
- editor : Adobe
- licence : privative
- signature_date : 2020-02-27T21:28:10.581950
- Homepage : https://adobe.com/
Setup.py
# -*- coding: utf-8 -*-
from setuphelpers import *
import time
uninstallkey = []
# Source ftp://ftp.adobe.com/pub/adobe/reader/win/AcrobatDC/
args = '/sAll /msi /norestart /quiet ALLUSERS=1 EULA_ACCEPT=YES UPDATE_MODE=0 DISABLE_ARM_SERVICE_INSTALL=1 DISABLEDESKTOPSHORTCUT=1'
def install():
if uninstall_key_exists('{AC76BA86-7AD7-1036-7B44-AC0F074E4100}'):
killalltasks(['AdobeARM.exe','AcroRd32.exe'])
run(uninstall_cmd('{AC76BA86-7AD7-1036-7B44-AC0F074E4100}'))
print('installation Adobe Reader MUI')
versionpaquet = control['version'].split('-',1)[0]
versionsoft = versionpaquet[2:]
if need_install('{AC76BA86-7AD7-FFFF-7B44-AC0F074E4100}'):
killalltasks(['AdobeARM.exe','AcroRd32.exe'])
run(r'"AcroRdrDC1901020064_MUI.exe" %s' % args,timeout=1200)
if need_install('{AC76BA86-7AD7-FFFF-7B44-AC0F074E4100}'):
error('AcroRdrDC1901020064_MUI.exe not install correctly')
filemsp = glob.glob('*.msp')[0]
if need_install('{AC76BA86-7AD7-FFFF-7B44-AC0F074E4100}',min_version=versionsoft):
run('msiexec.exe /p %s /norestart /quiet ALLUSERS=1 EULA_ACCEPT=YES' % filemsp,timeout=1200)
else:
print('%s Already install -- Skipped' % filemsp)
uninstallkey.append('{AC76BA86-7AD7-FFFF-7B44-AC0F074E4100}')
if need_install('{AC76BA86-7AD7-FFFF-7B44-AC0F074E4100}',min_version=versionsoft):
error('%s not install correctly' % filemsp)
print("desactivation des mises a jour automatiques")
if iswin64():
key=reg_openkey_noredir(HKEY_LOCAL_MACHINE,r'SOFTWARE\Wow6432Node\Adobe\Adobe ARM\1.0\ARM',sam=KEY_WRITE,create_if_missing=True)
reg_setvalue(key,'icheckReader',0,REG_DWORD)
else:
key=reg_openkey_noredir(HKEY_LOCAL_MACHINE,r'SOFTWARE\Adobe\Adobe ARM\1.0\ARM',sam=KEY_WRITE,create_if_missing=True)
reg_setvalue(key,'icheckReader',0,REG_DWORD)
key=reg_openkey_noredir(HKEY_LOCAL_MACHINE,r'SOFTWARE\Policies\Adobe\Acrobat Reader\DC\FeatureLockDown',sam=KEY_WRITE,create_if_missing=True)
reg_setvalue(key,'bUpdater',0,REG_DWORD)
#suppression des tache planifer adobe
if "Adobe Acrobat Update Task" in run('schtasks') :
run('schtasks /Delete /tn "Adobe Acrobat Update Task" /f')
#suppression du service AdobeARMservice
if service_installed('AdobeARMservice'):
if service_is_running('AdobeARMservice'):
service_stop('AdobeARMservice')
time.sleep(5)
run('sc delete AdobeARMservice')
# attention l'espace n'est pas un espace u'Acrobat Reader\xa0DC.lnk'
remove_desktop_shortcut(u'Acrobat Reader DC.lnk')
def session_setup():
registry_setstring(HKEY_CURRENT_USER, r"SOFTWARE\Adobe\Acrobat Reader\DC\JSPrefs",'bEnableGlobalSecurity',1,type=REG_DWORD)
registry_setstring(HKEY_CURRENT_USER, r"SOFTWARE\Adobe\Acrobat Reader\DC\JSPrefs",'bEnableJS',0,type=REG_DWORD)
registry_setstring(HKEY_CURRENT_USER, r"SOFTWARE\Adobe\Acrobat Reader\DC\Originals",'bAllowOpenFile',0,type=REG_DWORD)
def update_package():
proxies = {}
if isfile(makepath(application_data(),'waptconsole','waptconsole.ini')):
proxywapt = inifile_readstring(makepath(user_local_appdata(),'waptconsole','waptconsole.ini'),'global','http_proxy')
if proxywapt :
proxies = {'http':proxywapt,'https':proxywapt}
if not isfile('AcroRdrDC1901020064_MUI.exe'):
wget('http://ardownload.adobe.com/pub/adobe/reader/win/AcrobatDC/1901020064/AcroRdrDC1901020064_MUI.exe','AcroRdrDC1901020064_MUI.exe',proxies=proxies)
# Recover the last msp file
for line in readftp("ftp://ftp.adobe.com/pub/adobe/reader/win/AcrobatDC/"):
if 'ftp' in line :
if not 'misc' in line :
realversion = line.rsplit(' ')[-1].replace('\r\n','')
if 'misc' in line :
break
for line in readftp("ftp://ftp.adobe.com/pub/adobe/reader/win/AcrobatDC/%s/" % realversion):
if line.split('\r')[0].endswith('_MUI.msp'):
filemsp = line.split('\r')[0].rsplit(' ')[-1]
# Delete old msp file
for f in glob.glob('*.msp') :
if f != filemsp :
remove_file(f)
# Download the last msp file if not present
if not isfile(filemsp):
wget("http://ftp.adobe.com/pub/adobe/reader/win/AcrobatDC/%s/%s" % (realversion,filemsp),filemsp,proxies=proxies)
## #installation for recovery of the exact version
## print('Run install setup.exe')
## if uninstall_key_exists('{AC76BA86-7AD7-1036-7B44-AC0F074E4100}'):
## killalltasks(['AdobeARM.exe','AcroRd32.exe'])
## run(uninstall_cmd('{AC76BA86-7AD7-1036-7B44-AC0F074E4100}'))
## if need_install('{AC76BA86-7AD7-FFFF-7B44-AC0F074E4100}'):
## run(r'"AcroRdrDC1901020064_MUI.exe" %s' % args,timeout=1200)
## run('msiexec.exe /p %s /norestart /quiet ALLUSERS=1 EULA_ACCEPT=YES' % filemsp,timeout=1200)
## vers = installed_softwares('{AC76BA86-7AD7-FFFF-7B44-AC0F074E4100}')[0]['version']
vers = realversion[:2] + '.' + realversion[2:-5] + '.' + realversion[-5:]
#registration of the version in the file control
os.chdir(os.path.dirname(__file__))
pe = PackageEntry()
pe.load_control_from_wapt(os.getcwd())
old_wapt_version = pe.version.split('-')[1]
pe.version = '20' + vers + '-' + old_wapt_version
pe.save_control_to_wapt(os.getcwd())
def readftp(url):
import urllib2
sock = urllib2.urlopen(url,timeout=60)
htmlSource = sock.readlines()
sock.close()
return htmlSource
if __name__ == '__main__':
update_package()
[["AcroRdrDCUpd1902120061_MUI.msp","fc14bf84ada5c52c0025a77edf8cb6466dc24b3f25ea1bedd5c02e61d4fddef6"],["WAPT/icon.png","148f0369973acde33bf77ee7a57e4ef5c007bb4fe79c5b3bf81b66982d3d5f83"],["WAPT/certificate.crt","a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf"],["WAPT/wapt.psproj","510d3af6fcf8f2eae5db684bb830ea9845576e76872b9b10854efaea6e4a4cd8"],["WAPT/control","2bd6d24c4853233e42cf53ba4396e1c16c0aa18f95da5bcd5fea3c6e43942437"],["setup.py","d027e44d91af6af92af1f5c0a76edd94b38a4ffdf232346000d1dd7fc443b9a4"],["Jenkinsfile","54e5f5b903f9666bc53163cb7db7928f52d116f868371bcc52bcce9f74ee3acc"],["AcroRdrDC1901020064_MUI.exe","81953f3cf426cbe9e6702d1af7f727c59514c012d8d90bacfb012079c7da6d23"],["README.md","0533fcbeb6ddcb5c21f1cd3be8cc9dc65fef8f6cb183a94847aa17b318fddf1e"],["WAPT/changelog.txt","c2e49939c00501d83a8c9af04c6f4455b2b425cbd90f62a77e28ad30217839e0"]]