Détails du package smp-infrarecorder_0.53-8_all.wapt
retour Revenir à la liste des packages

smp-infrarecorder

ATTENTION CE DÉPÔT n'est plus compatible 1.3 vous devez migrer en 1.5.1.21 !

Fichier control :

package           : smp-infrarecorder
version           : 0.53-8
architecture      : all
section           : base
priority          : optional
maintainer        : TIS <technique@tranquil-it-systems.fr>
description       : logiciel de gravure infrarecorder
depends           : 
conflicts         : 
maturity          : 
locale            : 
min_os_version    : 
max_os_version    : 
min_wapt_version  : 
sources           : 
installed_size    : 
signer            : wapt.lesfourmisduweb.org
signer_fingerprint: 8da83ebdac1a25e820b186510d049f47407b11835b0664fdc5bacd3595b1671d
signature         : Vbzjs31RMGoIjr7hOAqbOzGVujmckboWAOUBOwr0ZbX8ThMx1S6YqKoa0k2R1joOkgbdpzl8bnGV36LXsozxqeZ03JcHsSD5f+acnTbkWeoKc0zRKetnvUFdCdk65mv5bumAjFv18+KWton30RPxsBOFov0YCfcPOfxBXkoheIVgqk8LnMXLTd2gz+pzH9dMLFFfEhwBWQoprpWfNSBYF3W+womZtKellQm+XSQiyTIL9d88UYwsXkdmuwNYuaZWhzcaiA92dehxtlSasvkSHv80QUqZM2xYn7Ur45ZghirHThWSMyN/4zkXPvtl/Z+Ul5ve+G4Im+RqRW3xJS2lJQ==
signature_date    : 20171122-013613
signed_attributes : package,version,architecture,section,priority,maintainer,description,depends,conflicts,maturity,locale,min_os_version,max_os_version,min_wapt_version,sources,installed_size,signer,signer_fingerprint,signature_date,signed_attributes






Fichier setup.py :

#!/usr/bin/python
# -*- coding: utf-8 -*-
# -----------------------------------------------------------------------
#    This file is part of WAPT
#    Copyright (C) 2013  Tranquil IT Systems http://www.tranquil.it
#    WAPT aims to help Windows systems administrators to deploy
#    setup and update applications on users PC.
#
#    WAPT is free software: you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation, either version 3 of the License, or
#    (at your option) any later version.
#
#    WAPT is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.
#
#    You should have received a copy of the GNU General Public License
#    along with WAPT.  If not, see <http://www.gnu.org/licenses/>.
#
# -----------------------------------------------------------------------
import platform
from setuphelpers import *

required_params = []
uninstallstring=['taskkill /im infrarecorder.exe /f',r'"%s\InfraRecorder\uninstall.exe" /S' % programfiles32]
uninstallkey=['InfraRecorder']

def install():

  softname = 'InfraRecorder'
  versionsoft = '0.53.0.0'
  remove_desktop_shortcut('InfraRecorder')

  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,'InfraRecorder','infrarecorder.exe')):
           exefilename = makepath(programfiles32,'InfraRecorder','infrarecorder.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 "closing infrarecorder"
  print run_notfatal("taskkill /im infrarecorder.exe /f")
  print"installing exe"
  print run("ir053.exe /S /LANGUAGE=french")


  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,'InfraRecorder','infrarecorder.exe')):
           exefilename = makepath(programfiles32,'InfraRecorder','infrarecorder.exe')
           versionexe = get_file_properties(exefilename)['FileVersion']
           remove_desktop_shortcut('InfraRecorder')
           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.')