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

Description
- package : tis-adobereader
- version : 2020.12.20043-43
- architecture : all
- categories : Office,Utilities
- maintainer : WAPT Team,Tranquil IT,Jimmy PELÉ,Simon Fonteneau
- 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 :
- impacted_process : AcroRd32,RdrCEF,RdrServicesUpdater,AcroRd32Info
- 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 : Proprietary
- signature_date : 2020-08-19T16:29:56.279791
- Homepage : https://adobe.com/
Setup.py
# -*- coding: utf-8 -*-
from setuphelpers import *
import time
import platform
import requests
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_notfatal('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_notfatal('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 update_package():
import re
# Initializing variables
proxy = get_proxies_from_wapt()
if not isfile('AcroRdrDC1901020064_MUI.exe'):
wget('http://ardownload.adobe.com/pub/adobe/reader/win/AcrobatDC/1901020064/AcroRdrDC1901020064_MUI.exe','AcroRdrDC1901020064_MUI.exe',proxies=proxy)
# Recover the last msp file
realversion = re.findall('class="filename"><a href="(.*)/">',ftp_read("ftp://ftp.adobe.com/pub/adobe/reader/win/AcrobatDC/"))[-2]
filemsp = "AcroRdrDCUpd%s_MUI.msp" % realversion
# 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=proxy)
vers = realversion[:2] + '.' + realversion[2:-5] + '.' + realversion[-5:]
# Changing version of the package
control.version = '%s-%s'%('20' + vers,int(control.version.split('-')[-1])+1)
control.save_control_to_wapt()
print('Changing version to: %s in WAPT\\control' % control.version)
def ftp_read(url):
from urllib.request import urlopen
import os
if get_proxies_from_wapt() :
os.environ['ftp_proxy'] = get_proxies_from_wapt()['http']
sock = urlopen(url)
htmlSource = sock.read()
sock.close()
return ensure_unicode(htmlSource)
def get_proxies_from_wapt():
import platform
proxies = {}
if platform.system() == 'Windows':
waptconsole_ini_path = makepath(user_local_appdata(), 'waptconsole', 'waptconsole.ini')
else:
waptconsole_ini_path = makepath(user_home_directory(), '.config', 'waptconsole', 'waptconsole.ini')
if isfile(waptconsole_ini_path):
proxy_wapt = inifile_readstring(waptconsole_ini_path, 'global', 'http_proxy')
if proxy_wapt:
proxies = {'http': proxy_wapt, 'https': proxy_wapt}
return proxies
Changelog
Changelog software url : https://helpx.adobe.com/fr/acrobat/release-note/release-notes-acrobat-reader.html
No changelog
[["AcroRdrDC1901020064_MUI.exe","81953f3cf426cbe9e6702d1af7f727c59514c012d8d90bacfb012079c7da6d23"],["AcroRdrDCUpd2001220043_MUI.msp","ab643b2cb6bc8adc0f241ac5519990c5a6d1ddd8765d2856ab2f76c305fa31ce"],["setup.py","6c437d0d6214a4233e2dd5ca7c164d8b5a88b2c0433f943c3ebc20b3c68953cb"],["WAPT/icon.png","148f0369973acde33bf77ee7a57e4ef5c007bb4fe79c5b3bf81b66982d3d5f83"],["WAPT/certificate.crt","a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf"],["WAPT/control","2c77e28d8f2e8656e4085bddf6be9c3829cf3240e23f19b6697c01f514987465"]]