tis-opera 55.0.2994.44-5

  • package : tis-opera
  • version : 55.0.2994.44-5
  • architecture : all
  • locale :
  • description : Opera est un navigateur Web gratuit et multiplate-forme développé par la société norvégienne Opera Software
  • maintainer : Kevin Guerineau, Simon Fonteneau
  • date : 2018-08-29 18:06:42
  • min_wapt_version :
  • min_os_version : 6.0
  • max_os_version :
  • impacted_process :

setup.py

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


uninstallkey = []

def install():
    if windows_version() > Version('5.2'):
        print('installing tis-opera')
        versionpaquet = control['version'].split('-',1)[0]
        if iswin64():
            install_exe_if_needed("Opera_%s_Setup_x64.exe" % versionpaquet,'/install /allusers=yes /silent /launchopera 0 /setdefaultbrowser 0 /pintotaskbar=no /installfolder="C:\Program Files\Opera Browser"',key='Opera %s' % versionpaquet,min_version=versionpaquet)

            uninstallcmd = installed_softwares("Opera %s" % versionpaquet)[0]["uninstall_string"]
            with disable_file_system_redirection():
                registry_setstring(HKEY_LOCAL_MACHINE, r"SOFTWARE\\Wow6432Node\\Microsoft\\Windows\\CurrentVersion\\Uninstall\Opera %s" % versionpaquet,'UninstallString',uninstallcmd+" /silent", type=REG_SZ)

        else:
            install_exe_if_needed("Opera_%s_Setup.exe" % versionpaquet,'/install /allusers=yes /silent /launchopera 0 /setdefaultbrowser 0 /pintotaskbar=no /installfolder="C:\Program Files\Opera Browser"',key='Opera %s' % versionpaquet,min_version=versionpaquet)

            uninstallcmd = installed_softwares("Opera %s" % versionpaquet)[0]["uninstall_string"]
            with disable_file_system_redirection():
                registry_setstring(HKEY_LOCAL_MACHINE, r"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\Opera %s" % versionpaquet,'UninstallString',uninstallcmd+" /silent", type=REG_SZ)


        remove_desktop_shortcut('Opera')
        remove_desktop_shortcut('Navigateur Opera')

        for task in run('schtasks').splitlines() :
            if 'Opera scheduled Autoupdate' in task:
                taskname = task.split('   ')[0]
                run_notfatal('schtasks /Delete /tn "%s" /f' % taskname)





def update_package():
    import re

    re_versions = re.compile('<a href="([\d\.]*)/">')
    index = wgets('https://get.geo.opera.com/pub/opera/desktop/')
    # find latest
    for version in reversed(sorted(re_versions.findall(index))):
        try:
            last_version = version

            if not isfile('Opera_%s_Setup.exe' % last_version):
                wget('https://get.geo.opera.com/pub/opera/desktop/%s/win/Opera_%s_Setup.exe' % (last_version,last_version),'Opera_%s_Setup.exe' % (last_version) )

            if not isfile('Opera_%s_Setup_x64.exe' % last_version):
                wget('https://get.geo.opera.com/pub/opera/desktop/%s/win/Opera_%s_Setup_x64.exe' % (last_version,last_version),'Opera_%s_Setup_x64.exe' % (last_version))

            vers = get_file_properties('Opera_%s_Setup.exe' % last_version)['ProductVersion']

            allexe = glob.glob('*.exe')
            for exe in allexe:
                vers = get_file_properties(exe)['ProductVersion']
                if vers != last_version :
                    remove_file(exe)

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

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

            pe.version = vers + '-0'
            pe.save_control_to_wapt(os.getcwd())
            return(0)
        except:
            if isfile('Opera_%s_Setup.exe' % last_version):
                print last_version
                return 0


if __name__ == '__main__':
    update_package()
    

Changelog

No changelog
    

manifest.sha256

WAPT/icon.png d2364fd7d7cd0ace56e569bd48b98ba0c15d94a2826ccbd2fbeececd779164ca
WAPT/certificate.crt 13fb474c5c23c135a77aba592eb8821b9ecbcc463f5b7312312b87b20eac6779
WAPT/wapt.psproj df3e2fa87fea9c7bdfcc22039b9ef7303f092898882d9f3f4233f5d92f90b3c7
Opera_55.0.2994.44_Setup.exe c58eec77bc1ccb715b96131d09d5bf8e12f3976a144dad2800a40f9557214ac3
setup.py b845c14f1c06be6e7364b325c05840667b6ea99aeaa6bde4cbf5d9002a8d6584
WAPT/control 97015acfe51fd3c42552228f83a506edd1b6ab621e05b158638b4051416f5fad
Opera_55.0.2994.44_Setup_x64.exe 2ef0e03978b314104f19871c602e724991ea34ac1eb6fb2f239796c705d033d9