Détails du package

smp-opensankore

retour Revenir à la liste des packages

smp-opensankore

Fichier control :

package           : smp-opensankore
version           : 2.5.1-1
architecture      : all
section           : base
priority          : optional
name              : 
categories        : 
maintainer        : Lesfourmisduweb
description       : Open-Sankoré offre de nombreux outils interactifs pour créer et animer des présentations numériques pour vos cours.
depends           : 
conflicts         : 
maturity          : 
locale            : 
target_os         : windows
min_os_version    : 
max_os_version    : 
min_wapt_version  : 
sources           : http://open-sankore.org/fr/
installed_size    : 
impacted_process  : 
description_fr    : 
description_pl    : 
description_de    : 
description_es    : 
description_pt    : 
description_it    : 
description_nl    : 
description_ru    : 
audit_schedule    : 
editor            : 
keywords          : 
licence           : 
homepage          : 
package_uuid      : b9f10c81-50a1-4f1e-975f-7c31f0fddf09
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
signer            : wapt.lesfourmisduweb.org
signer_fingerprint: 1e54425be03a2a3ea1a264b40d984c31f17a6a489a3b722acb993cbf6561e903
signature         : MiRjujzqQJ6eAW5qgWUdpxKcoWumCp+vIfI0qBWi56t5Qn+sDifR3e2P4tWRMstKRx++BRSpuu921ZF8kdI3D1wre9An2J8bIpr5E4uW6JGMCcKSLtDbjRcjLOJwy/tInl5JQCHPtDEDwE7B0GgOlx8qr17e8sQ1vjBa6M42TVTj+D0IoH1HBicPVA+S2jvwRYSQr+59W0GMdKn3nsUJZ7iLg3vR3VsxQiL69+8L9olvRGaoTzS14zFFIGWKker7MDlJsQ6ck1PNGfyHr3uO28O7iuH1O+KzKcoXf2wzvu4imhQSA3ciu8/w/ZoUr4KgKvkupt8ZfFMv4ixTzOBrrA==
signature_date    : 2020-07-04T01:20:58.331041
signed_attributes : package,version,architecture,section,priority,name,categories,maintainer,description,depends,conflicts,maturity,locale,target_os,min_os_version,max_os_version,min_wapt_version,sources,installed_size,impacted_process,description_fr,description_pl,description_de,description_es,description_pt,description_it,description_nl,description_ru,audit_schedule,editor,keywords,licence,homepage,package_uuid,valid_from,valid_until,forced_install_on,changelog,signer,signer_fingerprint,signature_date,signed_attributes



Fichier setup.py :

# -*- coding: utf-8 -*-
from setuphelpers import *
import os.path

# registry key(s) where WAPT will find how to remove the application(s)
uninstallkey = []

# command(s) to launch to remove the application(s)
uninstallstring = []

# list of required parameters names (string) which can be used during install
required_params = []

def install():
    # if you want to modify the keys depending on environment (win32/win64... params..)
    global uninstallkey
    global uninstallstring

    softname = 'Open-Sankor'
    versionsoft = '2.5.240.1'

    check_installed = installed_softwares(softname)
    # si cette liste globale n est pas vide, on check chaque logiciel
    if check_installed:
            # boucle pour chaque logiciel trouvée
        if os.path.isfile(makepath(programfiles32,'Open-Sankore','Open-Sankore.exe')):
           exefilename = makepath(programfiles32,'Open-Sankore','Open-Sankore.exe')
           versionexe = get_file_properties(exefilename)['FileVersion']
           if versionexe == versionsoft:
                        print(u'The software installation was successful')
                        return (0);
           if versionexe > versionsoft:
                        print(u'The software is already installed and its version is newer than the version of the package' )
                        return (0);

    print('installing opensankore')
    run(r'"Open-Sankore.exe" /VERYSILENT')



    check_installed = installed_softwares(softname)
    # si cette liste globale n est pas vide, on check chaque logiciel
    if check_installed:
            # boucle pour chaque logiciel trouvée
        if os.path.isfile(makepath(programfiles32,'Open-Sankore','Open-Sankore.exe')):
           exefilename = makepath(programfiles32,'Open-Sankore','Open-Sankore.exe')
           versionexe = get_file_properties(exefilename)['FileVersion']
           if versionexe == versionsoft:
                        print(u'The software installation was successful')
                        return (0);
           if versionexe > versionsoft:
                        print(u'The software is already installed and its version is newer than the version of the package' )
                        return (0);
           if versionexe != versionsoft:
                        error('The output verification has found a old version of software')
    error('End audit did not find the software.')