Tranquil IT recrute Tranquil IT recrute

tis-qgis-x64

Version : 2.18.15-7

Download
  • package : tis-qgis-x64
  • editor :
  • version : 2.18.15-7
  • licence :
  • architecture : all
  • locale :
  • description : QGIS - SIG Libre et Open Source - x64
  • description_fr :
  • min_os_version :
  • max_os_version :
  • min_wapt_version :
  • installed_size :
  • impacted_process :
  • signature_date : 20180227-190702
  • maintainer : TIS

setup.py

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

uninstallkey = []

short_version = "2.18"
targetdir = makepath(programfiles,'QGIS %s' % short_version)
exename = 'qgis-bin.exe'
uninstall = ('Uninstall-QGIS.exe /S')


def get_qgis_version():
    qgis_reg_version = registry_readstring(HKEY_LOCAL_MACHINE,"SOFTWARE\\QGIS %s" % short_version,"VersionNumber")
    return qgis_reg_version

def remove_qgis():
    print('Uninstalling every previous version of QGIS')
    for items in glob.glob(makepath(programfiles,'QGIS*')):
        run_notfatal('"%s" /S ' %  makepath(programfiles,items,'Uninstall-QGIS.exe'))
        run_notfatal('"%s" /S ' %  makepath(programfiles,items,'uninstall.exe'))
        #remove_tree(makepath(programfiles,items))

    for items in glob.glob(makepath(programfiles32,'QGIS*')):
        run_notfatal('"%s" /S ' %  makepath(programfiles32,items,'Uninstall-QGIS.exe'))
        run_notfatal('"%s" /S ' %  makepath(programfiles,items,'uninstall.exe'))
        #remove_tree(makepath(programfiles,items))

    registry_deletekey(HKEY_LOCAL_MACHINE,'SOFTWARE','QGIS %s' % short_version)
    unregister_uninstall('QGIS %s' % short_version,win64app=True)

    for icons in glob.glob(makepath(common_desktop,"QGIS*")):
        remove_tree(icons)

    for items_startmenu in glob.glob(makepath(start_menu(1),"Programs","QGIS*")):
        if isdir(makepath(start_menu(1),"Programs",items_startmenu)):
            remove_tree(makepath(start_menu(1),"Programs",items_startmenu))


def install():
    versionsoft = control['version'].split('-')[0]
    current_qgis_version = get_qgis_version()
    print("Installed version : %s" % current_qgis_version)
    print("Package version : %s" % versionsoft)
    if Version(versionsoft) != Version(current_qgis_version):
        print("QGIS %s needs to be updated" % current_qgis_version)
        remove_qgis()
        killalltasks(exename)
        time.sleep(20)
        print('installing tis-qgis-osgeo4w-%s' % versionsoft)
        run('"QGIS-OSGeo4W-%s-1-Setup-x86_64.exe" /S' % versionsoft)
        print('Installation finished, waiting for shortcuts to populate')
        time.sleep(20)
    else:
        print("QGIS %s already up-to-date, skipping install" % current_qgis_version)


def uninstall():
    versionsoft = control['version'].split('-')[0]
    print('uninstalling tis-qgis-osgeo4w-%s-1-setup-x86_64' % versionsoft)
    killalltasks(exename)
    remove_qgis()






			

Changelog

"""{% trans %}No changelog.{% endtrans %}"""
			

manifest.sha256

[["QGIS-OSGeo4W-2.18.15-1-Setup-x86_64.exe", "f60555c69e21ead03acb63d35cf1ab5e546bad61676d88d8956c95e0c36d70bb"], ["WAPT/icon.png", "e18db709c36dd19c4815b7832587119de232543c42c32133926d5d36eebbf00a"], ["WAPT/certificate.crt", "79e5388683c0b6cb03f4f81e4e58e3a11463b2b6cf169dd9c453098027dcfaa4"], ["WAPT/wapt.psproj", "af0bfb79cfa2e2f1cecd14449c2360511f9c4d7bd9898cdf4789512f062955d4"], ["info.txt", "b8247ee0fbc1bbf7e5adc98017f53562ed9534545eec0d5fa9a23ff4a9804db3"], ["setup.py", "f4f31da19cd767380761c3b199956e5f5d36155897ac65a8ffc145462ce8657c"], ["WAPT/control", "23388c791c4daf7f34fca03f8711d9c8b82f51863c4e314d493c7e159608dfa5"]]