Tranquil IT recrute Tranquil IT recrute

tis-qgis-x64

Version : 2.18.14-9

Download
  • package : tis-qgis-x64
  • editor :
  • version : 2.18.14-9
  • licence :
  • architecture : all
  • locale :
  • description : Installateur independant QGIS x86_64 bit
  • description_fr :
  • min_os_version :
  • max_os_version :
  • min_wapt_version :
  • installed_size :
  • impacted_process :
  • signature_date : 20171113-132612
  • maintainer : TIS

setup.py

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


uninstallkey = []

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

def install():
    pe = PackageEntry().load_control_from_wapt ('.')
    software_version = pe.version.split('-',1)[0]
    if iswin64():
        print('installing qgis-osgeo4w-%s-1-setup-x86_64' % software_version)
        for soft in installed_softwares('QGIS'):
            if 'QGIS %s' % software_version not in soft['name']:
                killalltasks(exename)
                run('"QGIS-OSGeo4W-%s-1-Setup-x86_64.exe" /S' % software_version)
        for soft in installed_softwares('QGIS'):
            if 'QGIS %s' % software_version not in soft['name']:
                error('Logiciel non installe')
            else:
                print('QGIS %s already/correctly installed' % software_version)
    else:
        print("Mauvaise version de paquet, se referer a la version 32bit")

def uninstall():
    pe = PackageEntry().load_control_from_wapt ('.')
    software_version = pe.version.split('-',1)[0]
    if iswin64():
        print('uninstalling tis-qgis-osgeo4w-%s-1-setup-x86_64' % software_version)
        killalltasks(exename)
        if isdir(makepath(programfiles,'QGIS %s' % software_version,'Uninstall-QGIS.exe')):
            run('"%s" /S ' %  makepath(programfiles,'QGIS %s' % software_version,'Uninstall-QGIS.exe'))
        if isdir(targetdir):
          remove_tree(targetdir)
          #Il faut supprimer la cle de registre car cela empeche une reinstallation ou une potentielle mise a jour silencieuse
        registry_deletekey(HKEY_LOCAL_MACHINE, 'SOFTWARE','QGIS 2.18')
        unregister_uninstall('QGIS 2.18',win64app=True)
        remove_desktop_shortcut('GRASS GIS 7.0.5')
        remove_desktop_shortcut('OSGeo4W Shell')
        if isdir(r'%sprogrammes\\QGIS 2.18'%start_menu(1)):
            remove_tree(r'%s\\programmes\\QGIS 2.18'%start_menu(1))
        remove_tree(os.path.join(desktop(1),'QGIS 2.18'))




			

Changelog

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

manifest.sha256

[["WAPT/certificate.crt", "20f25d6b242159077345379865f8e0d84bdc9e4764190f1aa6cb3816bcabd341"], ["WAPT/wapt.psproj", "795d36d10109ca85357285f79090fac2be856e5830ea31fa913cc55cb825807b"], ["info.txt", "b8247ee0fbc1bbf7e5adc98017f53562ed9534545eec0d5fa9a23ff4a9804db3"], ["setup.py", "495a4d10edffc6010c9d1812573d53f4b4f78e7d836acf75a4766415212bba5c"], ["WAPT/control", "b779f973aa35a607ed7997ff9bcc0a11dacf3472b9e4f3b4d9cfa5a371a5c3c4"], ["QGIS-OSGeo4W-2.18.14-1-Setup-x86_64.exe", "8e98b50c4fd8b0a7b633e6b370a81b00670748c8bed2807f20debe93d19ad8a5"]]