tis-oracle-java8-jre-free icon

Java SE JRE 8 Update 201

Paquet d’installation silencieuse pour Java SE JRE 8 Update 201

8.0.201-28

  • package: tis-oracle-java8-jre-free
  • name: Java SE JRE 8 Update 201
  • version: 8.0.201-28
  • categories: System and network
  • maintainer: WAPT Team, Tranquil IT, Jimmy PELÉ
  • editor: Oracle
  • licence: BCL
  • locale: all
  • target_os: windows
  • impacted_process: java,javaw,javaws,javacpl,jusched
  • architecture: all
  • signature_date:
  • size: 136.70 Mo
  • installed_size: 687.58 Mo
  • homepage : https://www.oracle.com/java/
  • conflicts :

package           : tis-oracle-java8-jre-free
version           : 8.0.201-28
architecture      : all
section           : base
priority          : optional
name              : Java SE JRE 8 Update 201
categories        : System and network
maintainer        : WAPT Team, Tranquil IT, Jimmy PELÉ
description       : Last "free" version provide by Oracle for Java Standard Edition Runtime Environment 8 Update 201
depends           : 
conflicts         : tis-oracle-java8-jre-nonfree
maturity          : PROD
locale            : all
target_os         : windows
min_os_version    : 5.1
max_os_version    : 
min_wapt_version  : 1.7
sources           : https://www.java.com/download/
installed_size    : 687579136
impacted_process  : java,javaw,javaws,javacpl,jusched
description_fr    : Dernière version "gratuite" fournie par Oracle pour Java Standard Edition Runtime Environment 8 Update 201
description_pl    : 
description_de    : 
description_es    : 
description_pt    : 
description_it    : 
description_nl    : 
description_ru    : 
audit_schedule    : 
editor            : Oracle
keywords          : oracle,java,jre,runtime,environment,8
licence           : BCL
homepage          : https://www.oracle.com/java/
package_uuid      : 865b79ee-a6ec-4ef0-a35c-116f816d8d91
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : https://www.oracle.com/java/technologies/javase/8u201-relnotes.html
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature         : QExRFDubBjRv7YcRQCGzbRP+SLdiFF6Gu9bFT4BsX8nlJQkIzFNT15/0RJxPs9eazB9PtuAjQ5kqqA/Q/VF41tjGff+eaU09Lfd0T8vjNqv85vdTag/Sf/JZBSxflUpTuCV+d8mm6pYidsHwN7TagbH9+L3PFayVDsnel5fOEif3rvFrUTSKkdsKuEF+Co72/WRCaUUcA/I+V3l0pyqmRLNMjnKk/pditfx5ZGRD7DYWQk1/t9loWG09om951e50sKYh8+56GVBaLQMusrn4PZE4vugVYQVJLAAjSgyz4sWSVrUlGqnVqK/Xk3uyuTAdKI28N1CPPuO2FdWYeb2mgQ==
signature_date    : 2020-09-28T10:03:45.232936
signed_attributes : package,version,architecture,section,priority,name,categories,maintainer,description,depends,conflicts,maturity,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,audit_schedule,editor,keywords,licence,homepage,package_uuid,valid_from,valid_until,forced_install_on,changelog,signer,signer_fingerprint,signature_date,signed_attributes

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

uninstallkey = []

# Please note that this is the last version of Java Runtime Environment (JRE) CPU edition under BCL License (for commercial use and rest)
# More info here : https://blogs.oracle.com/java-platform-group/oracle-java-se-releases-faq
# Installation procedure: https://docs.oracle.com/javase/8/docs/technotes/guides/install/windows_installer_options.html
'''
UninstallKey                           Software                                                              Version             Uninstallstring
------------------------------------------------------------------------------------------------------------------------------------------------
{26A24AE4-039D-4CA4-87B4-2F64180201F0} Java 8 Update 201 (64-bit)                                            8.0.2010.9          MsiExec.exe /X{26A24AE4-039D-4CA4-87B4-2F64180201F0}
{26A24AE4-039D-4CA4-87B4-2F32180201F0} Java 8 Update 201                                                     8.0.2010.9          MsiExec.exe /X{26A24AE4-039D-4CA4-87B4-2F32180201F0}
{4A03706F-666A-4037-7777-5F2748764D10} Java Auto Updater                                                     2.8.201.9
'''

# Declaring specific app values
bin_name_x86 = 'jre-8u201-windows-i586.exe'
bin_name_x64 = 'jre-8u201-windows-x64.exe'
silent_inst_args_string = 'INSTALLCFG="%s" /s'
uninstall_key_x86 = '{26A24AE4-039D-4CA4-87B4-2F32180201F0}'
uninstall_key_x64 = '{26A24AE4-039D-4CA4-87B4-2F64180201F0}'


def install():
    # Specific app values
    package_version = control.version.split('-')[0]
    short_version = package_version.split('8.0.')[1]
    java_cfg = makepath(basedir,'java.cfg')
    processes_to_kill = control.impacted_process.split(',')
    install_dir_x86 = makepath(programfiles32,'Java','jre1.8.0_%s' % short_version)
    install_dir_x64 = makepath(programfiles64,'Java','jre1.8.0_%s' % short_version)

    # Uninstalling Olders / Others Java 8 versions
    check_installed = installed_softwares(name='Java 8')
    for uninstall_java in check_installed:
        if 'Oracle' in uninstall_java['publisher']:
            if uninstall_java['version'] < package_version:
                print('Removing: %s'% uninstall_java['name'])
                run(uninstall_cmd(uninstall_java['key']))

    # Removing remaining folders to avoid errors
    if need_install(uninstall_key_x86):
        if isdir(install_dir_x86):
            killalltasks(processes_to_kill)
            remove_tree(install_dir_x86)
    if iswin64():
        if need_install(uninstall_key_x64):
            if isdir(install_dir_x64):
                killalltasks(processes_to_kill)
                remove_tree(install_dir_x64)    

    # Installing Java 8
    print('Installing: %s' % bin_name_x86)
    install_exe_if_needed(bin_name_x86
        ,silentflags=silent_inst_args_string % java_cfg
        ,key=uninstall_key_x86)

    if iswin64():
        print('Installing: %s' % bin_name_x64)
        install_exe_if_needed(bin_name_x64
            ,silentflags=silent_inst_args_string % java_cfg
            ,key=uninstall_key_x64)

    # Uninstalling Java Updater
    check_installed_updater = installed_softwares(name='Java Auto Updater')
    for uninstall_updater in check_installed_updater:
        print('Removing: %s'% uninstall_updater['name'])
        run(uninstall_cmd(uninstall_updater['key']))

    # Disabling Automatic Updates and removing SunJavaUpdateSched startup key
    print("Disabling: Automatic Java Updates")
    if iswin64():
        registry_delete(HKEY_LOCAL_MACHINE,r'SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Run','SunJavaUpdateSched')
        registry_setstring(HKEY_LOCAL_MACHINE,r'SOFTWARE\Wow6432Node\JavaSoft\Java Update\Policy','EnableJavaUpdate',0,type=REG_DWORD)
    registry_delete(HKEY_LOCAL_MACHINE,r'SOFTWARE\Microsoft\Windows\CurrentVersion\Run','SunJavaUpdateSched')
    registry_setstring(HKEY_LOCAL_MACHINE,r'SOFTWARE\JavaSoft\Java Update\Policy','EnableJavaUpdate',0,type=REG_DWORD)


def session_setup():
    print("Disabling: out-dated Java pop-up")
    registry_set(HKEY_CURRENT_USER,r'Software\AppDataLow\Software\JavaSoft\DeploymentProperties','deployment.expiration.check.enabled','false')


def update_package():
    # Incrementing version of the package
    control.version = '%s-%s'%(control.get_software_version(),int(control.version.split('-')[-1])+1)
    control.save_control_to_wapt()
    print('Changing version to: %s in WAPT\\control' % control.version)

8255c49b2ea48f0e91d949b2805c75d2c6d05cf701ce4796f4beed5c1a534c5d : java.cfg
2caa55f2a9bffb6be596fb34f8ce14a554a60008b2764734b41a28ae15a21ea4 : jre-8u201-windows-i586.exe
a2fe774dd9a8b57b3c2f7fa1a4eea64cce06ae642348455f8b6d888a2d5422d0 : jre-8u201-windows-x64.exe
52d364b57073a1c238fc8131f89c9f63b5f0172e39949705c8093a549af89ef5 : setup.py
0a52b3abe6be5984135a8f9b65637051520957f7d6b12253a4063c768a07a461 : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
c021075424c44a797b3e2e4daa8aed801322feeaa06b19d73f5dec1ec16d74a9 : WAPT/control