tis-chrome 67.0.3396.87-3

  • package : tis-chrome
  • version : 67.0.3396.87-3
  • description : Google Chrome is a web browser created by Google and based on the open source project Chromium
  • maintainer : Simon Fonteneau
  • date : 2018-06-18 17:43:29

setup.py

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

from subprocess import CalledProcessError

uninstallkey = []

def install():
    print('installing tis-chrome')
    versionpaquet = control['version'].split('-',1)[0]
    chromepath=makepath(programfiles32,'Google','Chrome','Application','chrome.exe')

    if isfile(chromepath):
        if Version(get_file_properties(chromepath)['ProductVersion']) > Version(versionpaquet):
            print('File %s version is : %s ' % (chromepath,get_file_properties(chromepath)['ProductVersion']))
            print('Paquet version is : %s ' % versionpaquet)
            print('------ SKIP ------')
            return 0

    def getversionchrome(key):
        return get_file_properties(chromepath)['ProductVersion']

    if iswin64():
        install_msi_if_needed('GoogleChromeStandaloneEnterprise64-fr.msi',min_version=versionpaquet,killbefore='chrome.exe',get_version=getversionchrome)
    else:
        install_msi_if_needed('GoogleChromeStandaloneEnterprise32-fr.msi',min_version=versionpaquet,killbefore='chrome.exe',get_version=getversionchrome)

def update_package():

    import time

    wget('https://dl.google.com/tag/s/appguid={8A69D345-D564-463C-AFF1-A69D9E530F96}&iid={00000000-0000-0000-0000-000000000000}&lang=fr&browser=3&usagestats=0&appname=Google%2520Chrome&needsadmin=prefers/edgedl/chrome/install/GoogleChromeStandaloneEnterprise.msi','GoogleChromeStandaloneEnterprise32-fr.msi')
    wget('https://dl.google.com/tag/s/appguid={00000000-0000-0000-0000-000000000000}&iid={00000000-0000-0000-0000-000000000000}&lang=fr&browser=4&usagestats=0&appname=Google Chrome&needsadmin=true/dl/chrome/install/googlechromestandaloneenterprise64.msi','GoogleChromeStandaloneEnterprise64-fr.msi')

    if iswin64():
        chrome = 'GoogleChromeStandaloneEnterprise64-fr.msi'
    else:
        chrome = 'GoogleChromeStandaloneEnterprise32-fr.msi'

    run(r'msiexec /norestart /q /i "%s" ' % chrome)

    os.chdir(os.path.dirname(__file__))

    from waptpackage import PackageEntry
    pe = PackageEntry()
    pe.load_control_from_wapt(os.getcwd())

    pe.version = get_file_properties(makepath(programfiles32,'Google','Chrome','Application','chrome.exe'))['ProductVersion'] + '-0'
    pe.save_control_to_wapt(os.getcwd())


if __name__ == '__main__':
    update_package()







    

Changelog

No changelog
    

manifest.sha256

[["GoogleChromeStandaloneEnterprise64-fr.msi", "44b856b5c2d3fb16764183944915b90f349e404ed1ac05afe609c32a8dc59d4e"], ["WAPT/certificate.crt", "13fb474c5c23c135a77aba592eb8821b9ecbcc463f5b7312312b87b20eac6779"], ["WAPT/wapt.psproj", "df3e2fa87fea9c7bdfcc22039b9ef7303f092898882d9f3f4233f5d92f90b3c7"], ["setup.py", "94532e663063d85cffd77f33f22a75539ef4ecd100d5ae03dea47fb5fdf73440"], ["GoogleChromeStandaloneEnterprise32-fr.msi", "c16d0c27eeebd2bb6c9e33b7eee53eccdc453cc207f018516f3abf1117e0db8d"], ["WAPT/control", "b1e81fdc292db4914e73f04f3bcc2529ed9f7035d61ba68f79e7509c87eaefbd"]]