tis-adobereader

2020.13.20066-51
Adobe Reader permit to view and print files in Portable Document Format (PDF).
60013 downloads
Download

  Description 

  • package : tis-adobereader
  • version : 2020.13.20066-51
  • 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-11-26T17:47:12.823252
  • Homepage : https://adobe.com/

  Setup.py 

# -*- coding: utf-8 -*-
from setuphelpers import *
import time
import platform
import requests
import re
import bs4 as BeautifulSoup

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():
    # Initializing variables
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()
    bin_end = '_MUI.msp'
    url = 'https://helpx.adobe.com/acrobat/release-note/release-notes-acrobat-reader.html'
    found = False

    # Downloading AARDC base installer
    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)

    # Getting latest version from official sources
    print('URL used is: %s' % url)
    for releases in bs_find_all(url, 'a', 'disablelinktracking', 'false', proxies=proxies):
        for urls in bs_find_all(releases['href'], 'a', 'class', 'reference external', proxies=proxies):
            if urls['href'].endswith(bin_end):
                url_dl = urls['href']
                version = releases.text.split('(')[-1].split(')')[0]
                found = True
                break
        if found:
            break

    version_adobe = version.replace('.','')
    version_full = '20%s' % version

    filemsp = "AcroRdrDCUpd%s_MUI.msp" % version_adobe
    url_dl_msp = 'https://ardownload2.adobe.com/pub/adobe/reader/win/AcrobatDC/%s/%s' % (version_adobe,filemsp)

    # 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(url_dl_msp,filemsp,proxies=proxies)

    # Changing version of the package
    control.version = '%s-%s' % (version_full, int(control.version.split('-')[-1])+1)
    control.save_control_to_wapt()
    print('Changing version to: %s in WAPT\\control' % control.version)




def get_proxies():
    if platform.python_version_tuple()[0] == '3':
        from urllib.request import getproxies
    else:
        from urllib import getproxies
    return getproxies()


def get_proxies_from_wapt_console():
    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


def bs_find(url, element, attribute=None, value=None, user_agent=None, proxies=None, features='html.parser', **kwargs):
    """"You may need to use a user agent for some websites.
    Example: user_agent='Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0')
    """
    if user_agent:
        page = requests.get(url, proxies=proxies, headers={'User-Agent':'%s' % user_agent}, **kwargs).text
    else:
        page = requests.get(url, proxies=proxies, **kwargs).text
    soup = BeautifulSoup.BeautifulSoup(page, features=features)
    if value:
        return soup.find(element, {attribute: value})
    else:
        return soup.find(element)


def bs_find_all(url, element, attribute=None, value=None, user_agent=None, proxies=None, features='html.parser', **kwargs):
    """"You may need to use a user agent for some websites.
    Example: user_agent='Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0')
    """
    if user_agent:
        page = requests.get(url, proxies=proxies, headers={'User-Agent':'%s' % user_agent}, **kwargs).text
    else:
        page = requests.get(url, proxies=proxies, **kwargs).text
    soup = BeautifulSoup.BeautifulSoup(page, features=features)
    if value:
        return soup.find_all(element, {attribute:value})
    else:
        return soup.find_all(element)


										

  Changelog 


Changelog software url : https://helpx.adobe.com/acrobat/release-note/release-notes-acrobat-reader.html

No changelog
  manifest.sha256 
[["AcroRdrDC1901020064_MUI.exe","81953f3cf426cbe9e6702d1af7f727c59514c012d8d90bacfb012079c7da6d23"],["AcroRdrDCUpd2001320066_MUI.msp","708ef23ccc91c44c5efb96658c20b317c84603b42f79691754aaf3093f9d32d7"],["setup.py","1bb4e43884046ec188065f5d10d1d543baec9e9c97991e412595864085fc08ca"],["WAPT/icon.png","148f0369973acde33bf77ee7a57e4ef5c007bb4fe79c5b3bf81b66982d3d5f83"],["WAPT/certificate.crt","a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf"],["WAPT/control","a57d1ee9ca863fcafd346a1d9809d1dce14008257ca5dd1972d79eeadcaf1eb5"]]