tis-chrome 71.0.3578.80-2

  • package : tis-chrome
  • version : 71.0.3578.80-2
  • architecture : x86
  • locale : all
  • description : Google Chrome is a web browser created by Google and based on the open source project Chromium
  • maintainer : Kevin Guerineau
  • date : 2018-12-05 14:17:39
  • min_wapt_version : 1.5
  • min_os_version : 6.0
  • max_os_version :
  • impacted_process : chrome.exe

setup.py

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

from subprocess import CalledProcessError

uninstallkey = []

def install():

    waptversion = Version(__version__)

    if waptversion > Version('1.5') :

        diskfreespacebefore = get_disk_free_space(programfiles)

        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']

        install_msi_if_needed('GoogleChromeStandaloneEnterprise32-fr.msi',min_version=versionpaquet,killbefore='chrome.exe',get_version=getversionchrome)

        diskfreespaceafter = get_disk_free_space(programfiles)
        difffreespace = diskfreespacebefore - diskfreespaceafter
        print(ur"Espace disque necessaire pour l'installation : " + str(difffreespace))

    else:
        error('This package is not compatible with your WAPT version. Please upgrade to WAPT 1.5 or more.')


def update_package():

    import time
    proxy = {'http':'http://srvproxy:3128','https':'http://srvproxy:3128'}
    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',proxies=proxy)

    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

WAPT/icon.png 0c8722bf5fa47e4fb1bec44059bcdd9078a478c45f0ac3020a67df33ad5bee67
WAPT/certificate.crt 13fb474c5c23c135a77aba592eb8821b9ecbcc463f5b7312312b87b20eac6779
WAPT/wapt.psproj df3e2fa87fea9c7bdfcc22039b9ef7303f092898882d9f3f4233f5d92f90b3c7
setup.py a2e0e69b03ccbbe33a29c4cfb6d462f0bbe0b8d69832e1e5842ecc0c33eb2460
GoogleChromeStandaloneEnterprise32-fr.msi 24ac269b2140d4dad40dadd6f3e8deb294ca60ba0f9fd94935f0de9270ab4ecb
WAPT/control bbad5b23704c796f4b5bbd80941f1b5cad2ae2eab06f5cf28943699ae133428d