tis-chrome

109.0.5414.120-42
Google Chrome is a web browser created by Google and based on the open source project Chromium
135476 downloads
Download
See build result See VirusTotal scan
tis-chrome icon
  • package : tis-chrome
  • name : Google Chrome
  • version : 109.0.5414.120-42
  • categories : Internet
  • maintainer : WAPT Team,Tranquil IT,Jimmy PELÉ,Simon FONTENEAU
  • installed_size : 642125128
  • editor : Google
  • licence : proprietary_free
  • signature_date : 2023-09-11T22:04:57.324900
  • size : 95.91 Mo
  • locale : all
  • target_os : windows
  • impacted_process : chrome,new_chrome,chrome_proxy,chrome_pwa_launcher,chrmstp
  • architecture : x64
  • Homepage : https://www.google.com/chrome/
package           : tis-chrome
version           : 109.0.5414.120-42
architecture      : x64
section           : base
priority          : optional
name              : Google Chrome
categories        : Internet
maintainer        : WAPT Team,Tranquil IT,Jimmy PELÉ,Simon FONTENEAU
description       : Google Chrome is a web browser created by Google and based on the open source project Chromium
depends           : 
conflicts         : 
maturity          : PROD
locale            : all
target_os         : windows
min_wapt_version  : 2.1
sources           : https://cloud.google.com/chrome-enterprise/browser/download/
installed_size    : 642125128
impacted_process  : chrome,new_chrome,chrome_proxy,chrome_pwa_launcher,chrmstp
description_fr    : Google Chrome est un navigateur web créé par Google et basé sur le projet open source Chromium
description_pl    : Google Chrome to przeglądarka internetowa stworzona przez Google i oparta na projekcie open source Chromium
description_de    : Google Chrome ist ein von Google entwickelter Webbrowser, der auf dem Open-Source-Projekt Chromium basiert
description_es    : Google Chrome es un navegador web creado por Google y basado en el proyecto de código abierto Chromium
description_pt    : Google Chrome é um navegador web criado pela Google e baseado no projecto de código-fonte aberto Chromium
description_it    : Google Chrome è un browser web creato da Google e basato sul progetto open source Chromium
description_nl    : Google Chrome is een webbrowser gemaakt door Google en gebaseerd op het open source project Chromium
description_ru    : Google Chrome - это веб-браузер, созданный компанией Google и основанный на проекте Chromium с открытым исходным кодом
audit_schedule    : 
editor            : Google
keywords          : browser,navigateur,google,chrome,chromium
licence           : proprietary_free
homepage          : https://www.google.com/chrome/
package_uuid      : b7381a9c-1dc1-411a-b8cb-372c64937865
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : https://chromereleases.googleblog.com/
min_os_version    : 6.1
max_os_version    : 10.0
icon_sha256sum    : 057315a8260cf30af51ee9b8dd8fbdf10a0f0ffb9825e7409be03e3c9ae9d552
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature         : iBXNBn0aXF9S/mb38XDRNlTMtc4k3gmbW+Pfc30615FpdlsQBf10nm3f4ZOWAW2suo6vcw4Pv+4DCjJAGv0KG8DW+P/NOvame9lOfBVgGiZXx0huHxFaQhS5ZxKYLUI6a5EA65rVVltScLP5qXp1MGBPwbjHwGdOBpbu8UiN1Ev6+leRH+9YKsoVMjcl5AabTcRDByBshm3bXEPIdPGnc6Euv/9iamh6yvdTdQERc3HCta0/XCRvvf/mdfgAc4dq4ko5z0QPk1cbc7UqHJrg4NRprqB4e23lYJUbDVHixG3Czy6ZJVZPsljYU4M8YQNEwwEI+rHz8mzMjmfC8yFoUg==
signature_date    : 2023-09-11T22:04:57.324900
signed_attributes : package,version,architecture,section,priority,name,categories,maintainer,description,depends,conflicts,maturity,locale,target_os,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,min_os_version,max_os_version,icon_sha256sum,signer,signer_fingerprint,signature_date,signed_attributes
# -*- coding: utf-8 -*-
from setuphelpers import *

silent_args_dict = {"NOGOOGLEUPDATING": 1, "NOGOOGLEUPDATEPING": 1}
app_scheduled_tasks = ["GoogleUpdateTaskMachineCore", "GoogleUpdateTaskMachineUA"]
app_services = ["GoogleChromeElevationService", "gupdate", "gupdatem"]


def install():
    # Declaring local variables
    package_version = control.version.split("-", 1)[0]
    bin_name = glob.glob("googlechromestandaloneenterprise*.msi")[0]
    skip = False
    if isdir(makepath(programfiles32, "Google", "Chrome", "Application")):
        chrome_app_path = makepath(programfiles32, "Google", "Chrome", "Application")
    else:
        chrome_app_path = makepath(programfiles, "Google", "Chrome", "Application")
    if isfile(makepath(chrome_app_path, "new_chrome.exe")):
        chrome_bin_path = makepath(chrome_app_path, "new_chrome.exe")
    else:
        chrome_bin_path = makepath(chrome_app_path, "chrome.exe")
    uninstallkey_from_file = get_msi_properties(bin_name)["ProductCode"]

    def get_version_chrome(key):
        return get_file_properties(chrome_bin_path)["ProductVersion"]

    if windows_version() < WindowsVersions.Windows10:
        # Uninstalling newer versions of the software
        for to_uninstall in installed_softwares(name="^Google Chrome$"):
            if Version(to_uninstall["version"]) > Version(control.get_software_version()) or force:
                print("Removing: %s (%s)" % (to_uninstall["name"], to_uninstall["version"]))
                try:
                    killalltasks(control.get_impacted_process_list())
                    run(uninstall_cmd(to_uninstall["key"]))
                    wait_uninstallkey_absent(to_uninstall["key"])
                except Exception as e:
                    print(e)
                    print("Remove failed: %s (%s)\nContinuing..." % (to_uninstall["name"], to_uninstall["version"]))

    # Installing the package
    if isfile(chrome_bin_path):
        if Version(get_version_chrome(None)) >= Version(package_version):
            if uninstall_key_exists(uninstallkey_from_file):
                uninstallkey.append(uninstallkey_from_file)
            skip = True

    if (not skip) or force:
        print("Installing: %s" % bin_name)
        install_msi_if_needed(
            bin_name,
            properties=silent_args_dict,
            min_version=package_version,
            get_version=get_version_chrome,
        )

    # Disabling application scheduled tasks
    for task in get_all_scheduled_tasks():
        if task.split("{")[0] in app_scheduled_tasks:
            if task_exists(task):
                try:
                    disable_task(task)
                except:
                    print("Unable to disable the task: %s" % task)

    # Changing default start mode of the application services
    for service_name in app_services:
        set_service_start_mode(service_name, "Manual")

    # Disabling Google Chrome Auto-Update and Telemetry
    registry_setstring(HKEY_LOCAL_MACHINE, r"SOFTWARE\Policies\Google\Update", "UpdateDefault", 0, type=REG_DWORD)
    registry_setstring(HKEY_LOCAL_MACHINE, r"SOFTWARE\Policies\Google\Update", "DisableAutoUpdateChecksCheckboxValue", 1, type=REG_DWORD)
    registry_setstring(HKEY_LOCAL_MACHINE, r"SOFTWARE\Policies\Google\Update", "AutoUpdateCheckPeriodMinutes", 0, type=REG_DWORD)
    registry_setstring(HKEY_LOCAL_MACHINE, r"SOFTWARE\Policies\Explorer\DisallowRun", "chrome_telemetry", "Software_Reporter_Tool.exe", type=REG_SZ)

    # # Adding master preferences file (instead, we recommend that you to create a package like tis-chrome-config)
    # filecopyto("master_preferences", chrome_app_path)


def uninstall():
    if isdir(makepath(programfiles32, "Google", "Chrome", "Application")):
        chrome_app_path = makepath(programfiles32, "Google", "Chrome", "Application")
    else:
        chrome_app_path = makepath(programfiles, "Google", "Chrome", "Application")
    chrome_bin_path = makepath(chrome_app_path, "chrome.exe")

    # Uninstalling the package
    if uninstall_key_exists("Google Chrome"):
        if not "msiexec" in " ".join(list(uninstall_cmd("Google Chrome"))).lower():
            versionsoft = get_file_properties(chrome_bin_path)["ProductVersion"]
            run(
                '"%s" --uninstall --system-level --force-uninstall --qn'
                % makepath(install_location("Google Chrome"), versionsoft, "Installer", "setup.exe"),
                accept_returncodes=[19],
            )


def session_setup():
    # Declaring local variables
    swreporter_path = makepath(user_local_appdata, "Google", "Chrome", "User Data", "SwReporter")
    if isdir(swreporter_path):
        print("Removing: %s" % swreporter_path)
        remove_tree(swreporter_path)
# -*- coding: utf-8 -*-
from setuphelpers import *


def update_package():
    # Declaring local variables
    package_updated = False
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()
    arch_dict = {
        "x64": "http://srvtemplates.ad.tranquil.it/binary_cache/googlechromestandaloneenterprise64_109.0.5414.120.msi",
        "x86": "http://srvtemplates.ad.tranquil.it/binary_cache/googlechromestandaloneenterprise_109.0.5414.120.msi",
    }
    binaries_dict = {
        "googlechromestandaloneenterprise_109.0.5414.120.msi": "d7fd246ea029c5c7ec30041a40d8831231752a98c8c1d0915218d7528d3b6f3a",
        "googlechromestandaloneenterprise64_109.0.5414.120.msi": "985a7f6edaa610ea791fe79a923e014e709ff7603f27f44d3ec8f04eca99bf6c",
    }
    download_url = arch_dict[control.architecture]
    latest_bin = download_url.split("/")[-1]
    version = "109.0.5414.120"

    bin_name = latest_bin
    download_url = "http://srvtemplates.ad.tranquil.it/binary_cache/" + bin_name
    sha256 = binaries_dict[bin_name]
    if isfile(bin_name):
        if get_sha256(bin_name) != sha256:
            remove_file(bin_name)
    print("Download URL is: %s" % download_url)
    if not isfile(bin_name):
        print("Downloading: %s" % bin_name)
        wget(download_url, bin_name, sha256=sha256, proxies=proxies)
    else:
        print("Binary is present: %s" % bin_name)

    if version:
        if Version(version, 4) > Version(control.get_software_version(), 4):
            print("Software version updated (from: %s to: %s)" % (control.get_software_version(), Version(version)))
            package_updated = True
        else:
            print("Software version up-to-date (%s)" % Version(version))
        control.set_software_version(version)
        control.save_control_to_wapt()
    return package_updated
64837d24d4dfc6dff2b4ce2d2a9dcf8ff3146278609509621a145c8f50a8b61a : setup.py
 : __pycache__
17f637ba32f941b499c1b73918ffc0386f7b0e384d71039dd7fde7e82c1023e0 : update_package.py
057315a8260cf30af51ee9b8dd8fbdf10a0f0ffb9825e7409be03e3c9ae9d552 : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
4f7bcaa3347cbf31854485bd7fa1266d1e3f77c377a2e493613176639eb01641 : WAPT/changelog.txt
aca897f33f047828cdfe8ac9715478f0d83313930e1e447977c360f2a2191dbf : luti.json
985a7f6edaa610ea791fe79a923e014e709ff7603f27f44d3ec8f04eca99bf6c : googlechromestandaloneenterprise64_109.0.5414.120.msi
240131b6f9674c00b451765fa69bfc50aa80b43d1af46f59c293c8328121a1b5 : master_preferences
a48e7919478b9edae59b6679249e04574e200e297a70a9ebfb55a014c9bcad3b : WAPT/control
0-42
===
new_chrome must be used when software is upgrading from older major versions.


0-40
===
fix disable_task
no longer add a master_preferences file (instead, we recommend creating a package like tis-chrome-config instead)