tis-adobereader icon

Adobe Acrobat Reader DC

Paquet d’installation silencieuse pour Adobe Acrobat Reader DC

2023.003.20215-55

  • package: tis-adobereader
  • name: Adobe Acrobat Reader DC
  • version: 2023.003.20215-55
  • categories: Office,Utilities
  • maintainer: WAPT Team,Tranquil IT,Jimmy PELÉ,Simon Fonteneau,Gaëtan SEGAT
  • editor: Adobe
  • licence: Proprietary
  • locale: all
  • target_os: windows
  • impacted_process: AcroRd32,RdrCEF,RdrServicesUpdater,AcroRd32Info
  • architecture: x86
  • signature_date:
  • size: 482.63 Mo
  • homepage : https://adobe.com/

package           : tis-adobereader
version           : 2023.003.20215-55
architecture      : x86
section           : base
priority          : optional
name              : Adobe Acrobat Reader DC
categories        : Office,Utilities
maintainer        : WAPT Team,Tranquil IT,Jimmy PELÉ,Simon Fonteneau,Gaëtan SEGAT
description       : Adobe Reader permit to view and print files in Portable Document Format (PDF).
depends           : 
conflicts         : 
maturity          : PROD
locale            : all
target_os         : windows
min_wapt_version  : 2.0
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    : Pozwolenie Adobe Reader na przeglądanie i drukowanie plików w formacie Portable Document Format (PDF)
description_de    : Adobe Reader ermöglicht das Anzeigen und Drucken von Dateien im Portable Document Format (PDF)
description_es    : Adobe Reader permite ver e imprimir archivos en formato de documento portátil (PDF)
description_pt    : Licença do Adobe Reader para visualizar e imprimir ficheiros em formato Portable Document Format (PDF)
description_it    : Adobe Reader permette di visualizzare e stampare i file in formato PDF (Portable Document Format)
description_nl    : Met Adobe Reader kunt u bestanden in Portable Document Format (PDF) bekijken en afdrukken
description_ru    : Разрешение Adobe Reader для просмотра и печати файлов в формате Portable Document Format (PDF)
audit_schedule    : 
editor            : Adobe
keywords          : adobe,reader,acrobat,dc,pdf,portable,document,format,print,view
licence           : Proprietary
homepage          : https://adobe.com/
package_uuid      : 62212b57-113d-43bc-a65b-521b8126a1de
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : https://helpx.adobe.com/acrobat/release-note/release-notes-acrobat-reader.html
min_os_version    : 6.2
max_os_version    : 
icon_sha256sum    : 148f0369973acde33bf77ee7a57e4ef5c007bb4fe79c5b3bf81b66982d3d5f83
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature         : AlpvYCxHU2JM9wiT/1RO9qn9FG3w9K7/iwIYBt7ll8p0BeJUrZ9/kA2rLI/FGHXyu/ticwpcTnotNtYsu8FO8KwDw2rXHDcffOfJoBYNQ8xWlGDkXG2YaDcsrhzh2CtjVVzNm85hg3UXC6VvDIDc1OadYs8ahBXhFs4HuHll42G37K9kC+jdWEhjf1I+YRT9FbMjNnm1GEZBjamB2kAsVA0gDj4ObSYGVEVIO3jWH6h5hB5YIFbX19jFO3SYtWuV2Q120qBkEosiMwxEitH/aFHlsretdPC2QAEXuRM4Hk6QIIpzcFp7QGwRZasLVESVTgj4qmdntBymJW8+QdGnRw==
signature_date    : 2023-06-26T18:04:08.478857
signed_attributes : package,version,architecture,section,priority,name,categories,maintainer,description,depends,conflicts,maturity,locale,target_os,min_wapt_version,sources,installed_size,impacted_process,description_fr,description_pl,description_de,description_es,description_pt,description_it,description_nl,description_ru,audit_schedule,editor,keywords,licence,homepage,package_uuid,valid_from,valid_until,forced_install_on,changelog,min_os_version,max_os_version,icon_sha256sum,signer,signer_fingerprint,signature_date,signed_attributes

# -*- coding: utf-8 -*-
from setuphelpers import *
import time


# 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():
    for key in ["{AC76BA86-7AD7-1036-7B44-AC0F074E4100}","{AC76BA86-1036-1033-7760-BC15014EA700}"]:
        if uninstall_key_exists(key):
            killalltasks(["AdobeARM.exe", "AcroRd32.exe"])
            run(uninstall_cmd(key))

    print("installation Adobe Reader MUI")
    versionpaquet = control["version"].split("-", 1)[0]
    versionsoft = versionpaquet[2:]

    if control.architecture == 'x64' :
        if uninstall_key_exists("{AC76BA86-7AD7-FFFF-7B44-AC0F074E4100}"):
            killalltasks(["AdobeARM.exe", "AcroRd32.exe"])
            run(uninstall_cmd("{AC76BA86-7AD7-FFFF-7B44-AC0F074E4100}"))

    if control.architecture == 'x64' :
        mui_exe = 'AcroRdrDCx642200220191_MUI.exe'
    else:
        mui_exe = 'AcroRdrDC1901020064_MUI.exe'

    if control.architecture == 'x64' :
        keytest = '{AC76BA86-1033-FF00-7760-BC15014EA700}'
    else:
        keytest = '{AC76BA86-7AD7-FFFF-7B44-AC0F074E4100}'

    if need_install(keytest):
        killalltasks(["AdobeARM.exe", "AcroRd32.exe"])
        run(r'"%s" %s' % (mui_exe,args), timeout=1200)
        wait_uninstallkey_present(keytest)



    if need_install(keytest):
        error("%s not install correctly" % mui_exe)

    filemsp = glob.glob("*.msp")[0]

    if need_install(keytest, 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(keytest)

    if need_install(keytest, 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")

    # Removing application desktop shortcut if allowed
    if params.get("remove_desktop_shortcuts"):
        remove_desktop_shortcut("Acrobat Reader DC")

# -*- coding: utf-8 -*-
from setuphelpers import *


def update_package():
    # Declaring local variables
    result = False
    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

    if control.architecture == 'x64' :
    # Downloading AARDC base installer
        if not isfile("AcroRdrDCx642200220191_MUI.exe"):
            wget(
                "https://ardownload2.adobe.com/pub/adobe/acrobat/win/AcrobatDC/2200220191/AcroRdrDCx642200220191_MUI.exe",
                "AcroRdrDCx642200220191_MUI.exe",
                proxies=proxies,
            )
    else:
        # 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):
        if not releases.text.startswith('DC ') :
                continue
        for urls in bs_find_all(releases["href"], "a", "class", "reference external", proxies=proxies):
            if urls["href"].endswith(bin_end) :
                if control.architecture == 'x64':
                    if not 'x64' in urls["href"]:
                        continue
                url_dl_msp = urls["href"]
                version = releases.text.split("(")[-1].split(")")[0]
                found = True
                break
        if found:
            break

    if "x" in version:
        for link in bs_find_all(url, "a", "disablelinktracking", "false", proxies=proxies):
            if version in link.text:
                urli = link.attrs["href"]
                xversion = wgets(urli, proxies=proxies).split(".msp")[0].rsplit(version.replace('.','').replace('x',''),1)[1].split('/')[0]
                version = version.replace('x',xversion) 

    version_adobe = version.replace(".", "")
    version = "20%s" % version

    if control.architecture == 'x64':
        filemsp = "AcroRdrDCx64Upd%s_MUI.msp" % version_adobe
    else:
        filemsp = "AcroRdrDCUpd%s_MUI.msp" % version_adobe

    # 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
    if Version(version) > Version(control.get_software_version()):
        print("Software version updated (from: %s to: %s)" % (control.get_software_version(), Version(version)))
        result = True
    else:
        print("Software version up-to-date (%s)" % Version(version))
    control.version = "%s-%s" % (Version(version), control.version.split("-", 1)[-1])
    # control.set_software_version(version)
    control.save_control_to_wapt()

    # Validating or not update-package-sources
    return result

5d92a7c93442957f458081f902988facd3da2ae94e8e05aa812d1426cf59770e : setup.py
4eeecc943ab9ab9b401b1ca9a17fac49a20ae41d63411be744a082cc7af88ee7 : AcroRdrDCUpd2300320215_MUI.msp
efe9efc55b00d52b59261f92e4d9f2ad7c24b01ef23a1271b8a81a512507e8f9 : update_package.py
148f0369973acde33bf77ee7a57e4ef5c007bb4fe79c5b3bf81b66982d3d5f83 : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
31dd2448e407fa37837040872880c4e8f4f09f50711185be29ff4d891b5a66d2 : luti.json
81953f3cf426cbe9e6702d1af7f727c59514c012d8d90bacfb012079c7da6d23 : AcroRdrDC1901020064_MUI.exe
8798e786e18c3c4bdab96a2b1856ce61c64bae5dd1eab120ce9ed911f064b90d : WAPT/control