tis-oracle-java8-jre-free

8.0.201-20
Last "free" version provide by Oracle for Java Standard Edition Runtime Environment 8 Update 201
500 downloads
Download

  Description 

  • package : tis-oracle-java8-jre-free
  • version : 8.0.201-20
  • architecture : all
  • 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
  • locale : all
  • target_os : windows
  • min_os_version : 5.1
  • max_os_version :
  • min_wapt_version : 1.5
  • 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 :
  • editor : Oracle
  • licence : BCL
  • signature_date : 2020-08-11T10:50:22.173742
  • Homepage : https://www.oracle.com/java/
  • Conflicts :

  Setup.py 

# -*- 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']))

    print("Disabling Automatic Updates")
    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)
        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)
    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)


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)




										

  Changelog 


No changelog
  manifest.sha256 
[["java.cfg","90ba833c48a916d24c52f6977090ae2ec125fee83de838b8fd2cd7203f0f8420"],["jre-8u201-windows-i586.exe","2caa55f2a9bffb6be596fb34f8ce14a554a60008b2764734b41a28ae15a21ea4"],["jre-8u201-windows-x64.exe","a2fe774dd9a8b57b3c2f7fa1a4eea64cce06ae642348455f8b6d888a2d5422d0"],["setup.py","8308f00a44e3566d58cb6bd95aba018b2a2d77c597855ce58fe72ab1610ed9d2"],["WAPT/icon.png","0a52b3abe6be5984135a8f9b65637051520957f7d6b12253a4063c768a07a461"],["WAPT/certificate.crt","a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf"],["WAPT/control","35cb139089c7e324354786bb761f3b4d747196323cd83cb58957bfd2ee3130f6"]]