tis-chrome 63.0.3239.132-3

  • package : tis-chrome
  • version : 63.0.3239.132-3
  • description : Google Chrome 32 / 64 bits (Google, Inc.)
  • maintainer : Simon Fonteneau
  • date : 2018-02-27 18:58:01

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", "c6145274a9b245c961a9d5d9887a02f3ca2f646651e534454dfe8683db7ebc16"], ["WAPT/certificate.crt", "79e5388683c0b6cb03f4f81e4e58e3a11463b2b6cf169dd9c453098027dcfaa4"], ["WAPT/wapt.psproj", "6ced6d42441ea2be5dab71026935e7cce930ae4a6c5e1cf5e03686153e435726"], ["setup.py", "94532e663063d85cffd77f33f22a75539ef4ecd100d5ae03dea47fb5fdf73440"], ["GoogleChromeStandaloneEnterprise32-fr.msi", "41cdf6a8e37a1dd6a9b5a1b92b963d907a013ba250b71c68e4d617db2874ff5b"], ["WAPT/control", "821bcc93d40d8dc72ec1a9d23197352fd8303b3eadbf113b754b55ed378a8ae3"]]