tis-java7

7.75-1
Java JRE 32 et 64 bits, ferme IE, FF, TB avant install, Désactive mises à jour auto
1637 downloads
Download

  Description 

  • package : tis-java7
  • version : 7.75-1
  • architecture : all
  • categories :
  • maintainer : TIS <technique@tranquil-it-systems.fr>
  • description : Java JRE 32 et 64 bits, ferme IE, FF, TB avant install, Désactive mises à jour auto
  • locale :
  • target_os :
  • min_os_version :
  • max_os_version :
  • min_wapt_version :
  • sources :
  • installed_size :
  • impacted_process :
  • description_fr :
  • description_pl :
  • description_de :
  • description_es :
  • description_pt :
  • description_it :
  • description_nl :
  • description_ru :
  • editor :
  • licence :
  • signature_date : 2020-02-27T21:33:44.959895

  Setup.py 

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

# registry key(s) where WAPT will find how to remove the application(s)
uninstallkey = []

version = '7u75'
key_32 = '{26A24AE4-039D-4CA4-87B4-2F0321%sFF}'%version.replace('u','0')
key_64 = '{26A24AE4-039D-4CA4-87B4-2F0641%sFF}'%version.replace('u','0')

def install():
    # if you want to modify the keys depending on environment (win32/win64... params..)
    print("installation de Java (JRE)")
    if not installed_softwares(uninstallkey=key_32) or WAPT.options.force:

        print ("closing firefox")
        if isrunning('firefox.exe'):
            killalltasks('firefox.exe')

        print("closing internet explorer")
        if isrunning('iexplore.exe'):
            killalltasks('iexplore.exe')

        print ("closing java updater service")
        if isrunning('jushed.exe'):
            killalltasks('jushed.exe')

        print "Installation JRE 32bits"
        run('jre-%s-windows-i586.exe /s'%version)
    else:
        print "Skipping already installed JRE 32bit"
    uninstallkey.append(key_32)

    if iswin64():
        print("closing internet explorer")
        if isrunning('iexplore.exe'):
            killalltasks('iexplore.exe')

        if not installed_softwares(uninstallkey=key_64) or WAPT.options.force:
            print "Installation JRE 64bits"
            run('jre-%s-windows-x64.exe /s'%version)
        else:
            print "Skipping already installed JRE 32bit"
        uninstallkey.append(key_64)

    print("desactivation des mises a jour automatiques")
    if iswin64():
        key=reg_openkey_noredir(HKEY_LOCAL_MACHINE,r'SOFTWARE\Wow6432Node\JavaSoft\Java Update\Policy',sam=KEY_WRITE,create_if_missing=True)
        reg_setvalue(key,'EnableJavaUpdate',0,REG_DWORD)
    else:
        key=reg_openkey_noredir(HKEY_LOCAL_MACHINE,r'SOFTWARE\JavaSoft\Java Update\Policy',sam=KEY_WRITE,create_if_missing=True)
        reg_setvalue(key,'EnableJavaUpdate',0,REG_DWORD)
										

  Changelog 


No changelog
  manifest.sha256 
[["WAPT/certificate.crt","a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf"],["WAPT/wapt.psproj","bc34bb5f85d78dffc7effd37bd0639580a0e140c155973c04d79eb9aa31eb57a"],["jre-7u75-windows-i586.exe","57c38c8589182c3ca3f5df7d5b5017e9f1b0b0c803d21cd3c35d322e72b73d7e"],["jre-7u75-windows-x64.exe","729c758a9f8a54b185e0f8f94c07f8c5e474c66286463424064b4fc207dddc99"],["setup.py","caffc6b7d860d706abf7d134bedd7c64e7cea20ce92b516af4048ed614dccb2c"],["WAPT/control","d20985adbe88337da8f767ab35aa538eb61e700c7e365ce8dbd17ce2f195bfba"]]