tis-fusioninventoryagent

2.5.2-2
FusionInventory is software for inventory and maintenance of a computer park
693 downloads
Download

  Description 

  • package : tis-fusioninventoryagent
  • version : 2.5.2-2
  • architecture : x64
  • categories :
  • maintainer : Simon Fonteneau
  • description : FusionInventory is software for inventory and maintenance of a computer park
  • locale :
  • target_os : windows
  • min_os_version :
  • max_os_version :
  • min_wapt_version : 1.5.1.20
  • sources :
  • installed_size : 48435200
  • impacted_process :
  • description_fr : FusionInventory est un logiciel servant à l'inventaire et la maintenance d'un parc informatique
  • description_pl :
  • description_de :
  • description_es :
  • description_pt :
  • description_it :
  • description_nl :
  • description_ru :
  • editor :
  • licence :
  • signature_date : 2020-02-27T21:33:00.782558

  Setup.py 

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

uninstallkey = []

parameters = '/S /acceptlicense /server="http://glpi/glpi/plugins/fusioninventory/" /execmode=service /no-ssl-check /runnow'

key='FusionInventory-Agent'

def install():

    print('installing Fusion inventory agent')
    versionpaquet = control['version'].split('-',1)[0]
    install_exe_if_needed("fusioninventory-agent_windows-x64_%s.exe" % versionpaquet,parameters,key=key,min_version=versionpaquet)



def update_package():
    import json
    proxies = {}
    if isfile(makepath(application_data(),'waptconsole','waptconsole.ini')):
        proxywapt = inifile_readstring(makepath(user_local_appdata(),'waptconsole','waptconsole.ini'),'global','http_proxy')
        if proxywapt :
            proxies = {'http':proxywapt,'https':proxywapt}

    filenamex64,url64  = [(str(p['name']),str(p['browser_download_url'])) for p in json.loads(wgets('https://api.github.com/repos/fusioninventory/fusioninventory-agent/releases/latest',proxies=proxies))['assets'] if 'windows-x64' in p['name']  if not 'portable' in p['name'] ][0]

    for fileexe in glob.glob('fusioninventory-agent_windows-x86*.exe'):
        if fileexe != filenamex64 :
            print('Delete ' + fileexe)
            remove_file(fileexe)

    if not isfile(filenamex64):
        print('Download ' + url64)
        wget(url64,filenamex64,proxies=proxies)


    from waptpackage import PackageEntry
    pe = PackageEntry()
    pe.load_control_from_wapt(os.getcwd())
    pe.version = get_file_properties(filenamex64)['ProductVersion'] + '-0'
    pe.save_control_to_wapt(os.getcwd())


if __name__ == '__main__':
    update_package()


										

  Changelog 


No changelog
  manifest.sha256 
[["WAPT/icon.png","fba3af4f79be43de12a5f9438a98831edc7a08c5761e5f216eb9d9ca5d98b3ff"],["WAPT/certificate.crt","a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf"],["WAPT/wapt.psproj","252b70e9f3a4939df417f84432ee839ac8069089be2041c45a7348db28fc2ea0"],["fusioninventory-agent_windows-x64_2.5.2.exe","d2bc50020e4947ddb2fc03256bd3b6c423541daf498a4e00925cdaf6bb79431d"],["setup.py","fad55b0563dc1b8f4deef200750097155178dab148b6474b6922933b7dff6aa0"],["WAPT/control","919791cf4b2bf5faa60aa71fcf258bfa83620372ba2d5dde7a90859967038e80"]]