GLPI Agent 1.5 Package
Published: October 20, 2023 - 4:32 PM
Good morning,
Novice in creating WAPT packages (and in the WAPT forum)
), I am trying to create a package for the installation of the GLPI Inventory 1.5 agent.
Everything is fine, but during the audit, it doesn't work and I get the following error:
AttributeError: 'PackageEntry' object has no attribute 'setuppy'
I can just perform a "print" in the audit, the error still appears.
Here is the package setup:
Thank you in advance for your help!
Melanie
Novice in creating WAPT packages (and in the WAPT forum)
Everything is fine, but during the audit, it doesn't work and I get the following error:
AttributeError: 'PackageEntry' object has no attribute 'setuppy'
I can just perform a "print" in the audit, the error still appears.
Here is the package setup:
Code: Select all
# -*- 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