Novato en la creación de paquetes WAPT (y en el foro WAPT)
Todo está bien, pero durante la auditoría no funciona y me aparece el siguiente error:
AttributeError: el objeto 'PackageEntry' no tiene el atributo 'setuppy'
Puedo simplemente realizar una "impresión" en la auditoría, el error sigue apareciendo.
Aquí está la configuración del paquete:
Código: Seleccionar todo
# -*- coding: utf-8 -*-
from setuphelpers import *
def install():
# Variables
app_name="GLPI-Agent-1.5-x64.msi"
properties= {
'runnow':1,
'add_firewall_exception':1,
'execmode':1,
'Server':"https://glpi.fontenay-aux-roses.fr/plugins/glpiinventory/",
'tag':"HDV",
}
uninstallkey="{AACB13FD-6BF5-1014-8857-9DC1274EEC25}"
# Uninstalling Fusion Inventory
if installed_softwares("FusionInventory Agent 2.5.2 (x64 edition)"):
print("Désinstallation de Fusion Inventory")
run(r'"C:\Program Files\FusionInventory-Agent\Uninstall.exe" /S')
remove_tree("C:\Program Files\FusionInventory-Agent")
else:
print("Fusion Inventory n'est pas installé sur le poste.")
install_msi_if_needed(
app_name,
properties=properties,
key=uninstallkey,
remove_old_version="true",
)
def audit():
if isfile("C:\Program Files\GLPI-Agent\glpi-inventory.bat"):
return "OK"
else:
return "ERROR"Melanie
