tis-java6 6.30-0

  • package : tis-java6
  • version : 6.30-0
  • architecture : all
  • locale :
  • description : Java JRE 6 32 et 64 bits, ferme IE, FF, TB avant install, D√©sactive mises √† jour auto
  • maintainer : TIS <technique@tranquil-it-systems.fr>
  • date : 2018-02-27 19:01:09
  • min_wapt_version :
  • min_os_version :
  • max_os_version :
  • impacted_process :

setup.py

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

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

# command(s) to launch to remove the application(s)
uninstallstring = []

# list of required parameters names (string) which canb be used during install
required_params = []

version = '6u30'

def install():
    # if you want to modify the keys depending on environment (win32/win64... params..)
    print("installation de Java (JRE)")
    if not installed_softwares('{26A24AE4-039D-4CA4-87B4-2F8321%sFF}'%version.replace('u','0')) 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('{26A24AE4-039D-4CA4-87B4-2F8321%sFF}'%version.replace('u','0'))

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

        if not installed_softwares('{26A24AE4-039D-4CA4-87B4-2F8641%sFF}'%version.replace('u','0')) 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('{26A24AE4-039D-4CA4-87B4-2F8641%sFF}'%version.replace('u','0'))

    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 79e5388683c0b6cb03f4f81e4e58e3a11463b2b6cf169dd9c453098027dcfaa4
WAPT/wapt.psproj bc34bb5f85d78dffc7effd37bd0639580a0e140c155973c04d79eb9aa31eb57a
jre-6u30-windows-x64.exe 318dc94c5ad6f803f782310012ab39b195cdf60fd786e1d2701df6c5a140f93f
jre-6u30-windows-i586.exe ddbdf55ecc8fe8b7a025df20b8344b746dc325276fd4ac0ee211bf2944e0e673
setup.py 425b2ceabc5f521c87049f7d07fc2672dc375a6f8627cc51c4637346150d8107
WAPT/control e84472f1f9cecda958b90d8b9e825918ca6da7fd407f2068d1edc1857c19ec35