tis-java7 7.75-1

  • package : tis-java7
  • version : 7.75-1
  • description : Java JRE 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:10

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", "79e5388683c0b6cb03f4f81e4e58e3a11463b2b6cf169dd9c453098027dcfaa4"], ["WAPT/wapt.psproj", "bc34bb5f85d78dffc7effd37bd0639580a0e140c155973c04d79eb9aa31eb57a"], ["jre-7u75-windows-i586.exe", "57c38c8589182c3ca3f5df7d5b5017e9f1b0b0c803d21cd3c35d322e72b73d7e"], ["jre-7u75-windows-x64.exe", "729c758a9f8a54b185e0f8f94c07f8c5e474c66286463424064b4fc207dddc99"], ["setup.py", "caffc6b7d860d706abf7d134bedd7c64e7cea20ce92b516af4048ed614dccb2c"], ["WAPT/control", "45f4197f4a391fa2adb9de67b2d24cfdd87bf9ad74a1c428766d8000e0799c09"]]