tis-adobereader 2017.12.20098-2

  • package : tis-adobereader
  • version : 2017.12.20098-2
  • description : Lecteur PDF Adobe, ne fonctionne pas avec XP. Supression des services et tâches planifiés adobe
  • maintainer : TIS, Simon Fonteneau
  • date : 2017-09-13 10:16:25
  • signer : TRANQUIL IT SYSTEMS
  • signature_date : 20170913-101618
  • min_os_version :
  • min_wapt_version :

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)

    

manifest

[["package/Data1.cab", "157e23d1b36e29111334bdc14e35642b950336bc"], ["WAPT/icon.png", "3c10bff96d11e4049917e1a4bf7ce7ba53f5e8b1"], ["WAPT/certificate.crt", "0db563dc9077b268ca07ba834322d0fc5e21f8e5"], ["WAPT/wapt.psproj", "7ccbe65afd42ee7794a86ed74eef48e3f5812c93"], ["package/setup.ini", "f0079826ee8bda424713a21f533bbd1eb61882f9"], ["package/AcroRead.msi", "3179de52be393fe68cc82ecd9b46c42861aec3c5"], ["package/setup.exe", "70244b6befd2285bbb5f974f864f815bc2b47226"], ["package/AcroRdrDCUpd1701220098.msp", "8c26a9178d3c206ff9c45dee91b071572c2cecaf"], ["package/AcroRead.mst", "a8d43f7f30cb5d07166ef7de04e992e101539fb3"], ["setup.py", "2603b28bad9a1d5766a959fd39322860a19a5496"], ["package/abcpy.ini", "4e0e04f5ca5d81661702877852fd9d059722762f"], ["WAPT/control", "93bd229883bc8b6dd3dc0b68c0060561cf0bf150"]]