tis-adobereader 2017.9.20044-3

  • package : tis-adobereader
  • version : 2017.9.20044-3
  • description : Lecteur PDF Adobe, ne fonctionne pas avec XP. Supression des services et tâches planifiés adobe
  • maintainer : TIS, Simon Fonteneau
  • date : 2018-02-27 18:57:00

setup.py

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

uninstallkey = []



def install():
    # 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='17.009.20044',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/readme.txt", "2f4c979d659bf34388d36fc56a1238d06365f86c078d862c9aa0e10e413557ca"], ["WAPT/icon.png", "bd7190e4ccdf4da2084b88af8cfb4d82ffa1085467f47dcad796ae36cdc709ad"], ["WAPT/certificate.crt", "79e5388683c0b6cb03f4f81e4e58e3a11463b2b6cf169dd9c453098027dcfaa4"], ["WAPT/wapt.psproj", "602f837dd2593d9ce4b1fd8e26f485eae6f5fe53f38129fed2c09062247e9a22"], ["package/Data1.cab", "6298cc2ea034167ade1ce2391940575dbb3a002aa902908817f8bb3c26432d89"], ["package/AcroRead.msi", "19c22b1b76ab8d3f9cbd53351b47f208875627025a7918f77e1a847b1ead758d"], ["package/AcroRdrDCUpd1700920044.msp", "05df15540e2eef7e1725df3ef61f88e7223bcd5b58eb2ffd56566246cbb9a797"], ["package/setup.exe", "fb9a04c976943142eccb168f02db52efc71b9a6fa6b182b5ed25bed6ac4f71e7"], ["setup.py", "cb249e382af2afb69478c5130a60d3435a983e5e550d00dda148092a5e980194"], ["package/AcroRead.mst", "022982e9043313b460b34cab05d21e65d999670872fd4dc3c8c033ce3a828282"], ["package/setup.ini", "f1ef09561415c60595a3bb046dcd5a239f5966ce071fc9e9270e007a3d41d8d5"], ["package/abcpy.ini", "9986830f6e44d24b86936851c2c0cd961ecdddbed3b34e8f6a64693f36e9429d"], ["WAPT/control", "ed78c0bc083ab520e0caac149dea4f61ddaea6065dc4306ee692bd93d69f380d"]]