tis-googleearth 7.3.0.3832-1

  • package : tis-googleearth
  • version : 7.3.0.3832-1
  • description : Google Earth for Windows
  • maintainer : Tranquil it systems
  • date : 2018-02-27 19:00:43

setup.py

#!/usr/bin/python
# -*- coding: utf-8 -*-

from setuphelpers import *

uninstallkey=[]

def install():
    install_msi_if_needed('GoogleEarthSetup.msi',killbefore=['googleearth.exe'])
    remove_desktop_shortcut('Google Earth')



def update_package():

    wget('https://dl.google.com/tag/s/appguid%3D%7B74AF07D8-FB8F-4d51-8AC7-927721D56EBB%7D%26iid%3D%7B78F4DCC2-2356-1949-3E7D-CA58A34BA41F%7D%26lang%3Dfr%26browser%3D3%26usagestats%3D0%26appname%3DGoogle%2520Earth%26needsadmin%3DTrue%26brand%3DGGGE/earth/client/GoogleEarthSetup.exe','GoogleEarthSetup.exe')
    run('GoogleEarthSetup.exe')
    killalltasks('googleearth.exe')

    for uninstall in installed_softwares('Google Earth'):
        vers = uninstall['version']
        print vers

    #Search msi and copy msi file if version is good
    remove_file('GoogleEarthSetup.exe')
    with disable_file_system_redirection():
        for msi in glob.glob(r'C:\Windows\Installer\*.msi'):
            if get_msi_properties(msi)['ProductName'] == 'Google Earth Pro':
                if  Version(get_msi_properties(msi)['ProductVersion']) == Version(vers):
                        remove_file('GoogleEarthSetup.msi')
                        filecopyto(msi,'GoogleEarthSetup.msi')




    # change version of package
    from waptpackage import PackageEntry
    pe = PackageEntry()
    pe.load_control_from_wapt(os.getcwd())
    pe.version = get_msi_properties('GoogleEarthSetup.msi')['ProductVersion'] +'-0'
    pe.save_control_to_wapt(os.getcwd())




if __name__ == '__main__':
    update_package()
    

Changelog

No changelog
    

manifest.sha256

[["WAPT/icon.png", "77c7581b49eccac2e89f89eddf38d3ab25666d4c83653974b8bdb1466e0d5680"], ["WAPT/certificate.crt", "79e5388683c0b6cb03f4f81e4e58e3a11463b2b6cf169dd9c453098027dcfaa4"], ["WAPT/wapt.psproj", "c5a1697bf6e134989a9870764995725626a8f5055b640e541b569d1a927363fc"], ["GoogleEarthSetup.msi", "8781df6b1a178fe7c9828d811d81ece03283d1c10b72e4524aecdf8143459c60"], ["setup.py", "e722f9ea3ecc369cf5b8e5b4c166a0413d3e19c40c3ad77a6d0889cdcca6a757"], ["WAPT/control", "1f3064268fdb73878003daa6fc94639ca6ec991b9a5f2e30d0c54122a876cea8"]]