tis-adobereader 2018.11.20035-3

  • package : tis-adobereader
  • version : 2018.11.20035-3
  • description : Adobe PDF reader, not work with XP. Schedule tasks and services Adobe are delete
  • maintainer : TIS, Simon Fonteneau, Kevin Guerineau
  • date : 2018-03-07 17:44:21

setup.py

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

uninstallkey = []



def install():
    versionpaquet = control['version'].split('-',1)[0]
    versionsoft = versionpaquet[2:]
    # si xp installation du package adobereader-xp
    if windows_version()<Version('6.0'):
        prefixpkg = control.package.split('-',1)[0]
        WAPT.install('%s-adobereader11'% prefixpkg)

    # Sinon install adobereader DC      ftp://ftp.adobe.com/pub/adobe/reader/win/AcrobatDC/

    else:
        print('installation Adobe Reader')
        #silent flag neutre pour eviter que le passage dans "not silentflags"
        install_exe_if_needed(r'package\setup.exe',silentflags=' ',key='{AC76BA86-7AD7-1036-7B44-AC0F074E4100}',min_version=versionsoft,killbefore=['AdobeARM.exe','AcroRd32.exe'],timeout=700)

        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)

    

Changelog

No changelog
    

manifest.sha256

[["package/Data1.cab", "6298cc2ea034167ade1ce2391940575dbb3a002aa902908817f8bb3c26432d89"], ["WAPT/icon.png", "bd7190e4ccdf4da2084b88af8cfb4d82ffa1085467f47dcad796ae36cdc709ad"], ["WAPT/certificate.crt", "79e5388683c0b6cb03f4f81e4e58e3a11463b2b6cf169dd9c453098027dcfaa4"], ["WAPT/wapt.psproj", "79adab7ad1d3821b05c9d018c5c1a8949b4400aa9ddb54bfb62d829484739d1a"], ["package/AcroRdrDCUpd1801120035.msp", "264e829523db31e63529de066f3be6ecb142898985a0df389f9f0d14a5c4bb58"], ["package/AcroRead.msi", "19c22b1b76ab8d3f9cbd53351b47f208875627025a7918f77e1a847b1ead758d"], ["package/setup.ini", "7071710bc232f8bed2e09f5d01a1d3e974e236268ace20c99f644445d3c9ce6e"], ["package/setup.exe", "608c5265075bacf05353a4d816fe815ec1ba2e95bb88313d5cf38655274841be"], ["package/AcroRead.mst", "ede592fec140692a345f1db244941fd78233a47c8c54e8767c1a1e0446673e33"], ["setup.py", "a3302d076972bc2d4eb9632ee2c4625deb2a5e8aec57f212648c151da0df54ca"], ["package/abcpy.ini", "9986830f6e44d24b86936851c2c0cd961ecdddbed3b34e8f6a64693f36e9429d"], ["WAPT/control", "64cba979d99fed520a170aaa8791e0288189b89e3b9d1a90eb8fafd12be02941"]]