[Wapt] Refus d'installation pour un problème de uninstallkey
SILLÉ Thomas
tsille at ste-maxime.fr
Thu Nov 19 13:40:14 CET 2020
Bonjour Gaëtan,
La commande fournie par l'éditeur fonctionne
# -*- coding: utf-8 -*-
from setuphelpers import *
uninstallkey = ["Endpoint Security"]
properties = {
'GZ_PACKAGE_ID':"aHR0cHM6Ly8xNzIuMTYuMTEuMzE6ODQ0My9QYWNrYWdlcy9CU1RXSU4vMC9XTURnS3UvaW5zdGFsbGVyLnhtbD9sYW5nPWZyLUZS",
'force':True
}
def install():
install_msi_if_needed('eps_installer_signed.msi', properties = properties)
En passant par des properties, j'obtiens le même message d'erreur.
2020-11-19 13:38:19,196 CRITICAL Fatal error in install script: EWaptSetupException: Fatal error : MSI eps_installer_signed.msi has been installed but the uninstall key {B08D6524-8772-4C0D-BE2D-94BFA5F3C6EA} can not be found:
Traceback (most recent call last):
File "C:\Program Files (x86)\wapt\common.py", line 3877, in install_wapt
exitstatus = setup.install()
File "C:\waptdev\mdsm-bitdefender-endpoint-security-tools-wapt\setup.py", line 13, in install
install_msi_if_needed('eps_installer_signed.msi', properties = properties)
File "C:\Program Files (x86)\wapt\common.py", line 3831, in new_func
return func(*args,**kwargs)
File "C:\Program Files (x86)\wapt\setuphelpers_windows.py", line 1104, in install_msi_if_needed
error('MSI %s has been installed but the uninstall key %s can not be found' % (msi,key))
File "C:\Program Files (x86)\wapt\waptutils.py", line 1698, in error
raise EWaptSetupException(u'Fatal error : %s' % reason)
EWaptSetupException: Fatal error : MSI eps_installer_signed.msi has been installed but the uninstall key {B08D6524-8772-4C0D-BE2D-94BFA5F3C6EA} can not be found
Cordialement.
_________
Thomas SILLÉ
Équipe Système et Réseaux
Direction des Systèmes d’Information
Mairie de Sainte-Maxime
0494799723
________________________________
De : WAPT <wapt-bounces at lists.tranquil.it> de la part de Gaëtan SEGAT <gaetan.segat at inserm.fr>
Envoyé : jeudi 19 novembre 2020 12:45
À : wapt at lists.tranquil.it <wapt at lists.tranquil.it>
Objet : Re: [Wapt] Refus d'installation pour un problème de uninstallkey
Bonjour Thomas,
la commande fonctionne-t-elle hors WAPT ?
Pour les options peux-être essayer comme ceci :
properties = {
:
}
def install():
install_msi_if_needed('.msi', properties = properties)
Gaëtan
Le 19/11/2020 à 12:32, SILLÉ Thomas a écrit :
Bonjour,
Je rencontre un problème pour la mise à jour d'un paquet suite à l'installation d'un reverse-proxy afin de rendre accessible notre serveur WAPT depuis internet.
Ce serveur fonctionne parfaitement (merci Simon)
Néanmoins, le paquet qui nous servait pour le déploiement de l'antivirus ne fonctionne plus.
J'ai vu, après coup, que la façon dont on l'installait ne supportait pas les proxy.
Je regarde donc pour modifier ce paquet.
D'après la documentation de l'éditeur (Bitdefender), il suffit de faire : msiexec /i eps_installer_signed.msi /qn GZ_PACKAGE_ID=chaîne REBOOT_IF_NEEDED=1
Effectivement, si je lance cette commande dans un invite de commande en tant qu'administrateur, l'antivirus s'installe bien.
Si je transpose cela à un paquet WAPT, il me semble que cela donne :
# -*- coding: utf-8 -*-
from setuphelpers import *
uninstallkey = ["Endpoint Security"]
def install():
install_msi_if_needed('eps_installer_signed.msi','/quiet','GZ_PACKAGE_ID="aHR0cHM6Ly8xNzIuMTYuMTEuMzE6ODQ0My9QYWNrYWdlcy9CU1RXSU4vMC9XTURnS3UvaW5zdGFsbGVyLnhtbD9sYW5nPWZyLUZS"',force=True)
Or si j'essaye de l'installer, j'obtiens ceci en retour de la console :
2020-11-19 12:27:14,061 CRITICAL Fatal error in install script: EWaptSetupException: Fatal error : MSI eps_installer_signed.msi has been installed but the uninstall key {B08D6524-8772-4C0D-BE2D-94BFA5F3C6EA} can not be found:
Traceback (most recent call last):
File "C:\Program Files (x86)\wapt\common.py", line 3877, in install_wapt
exitstatus = setup.install()
File "C:\waptdev\mdsm-bitdefender-endpoint-security-tools-wapt\setup.py", line 7, in install
install_msi_if_needed('eps_installer_signed.msi','/quiet','GZ_PACKAGE_ID="aHR0cHM6Ly8xNzIuMTYuMTEuMzE6ODQ0My9QYWNrYWdlcy9CU1RXSU4vMC9XTURnS3UvaW5zdGFsbGVyLnhtbD9sYW5nPWZyLUZS"',force=True)
File "C:\Program Files (x86)\wapt\common.py", line 3831, in new_func
return func(*args,**kwargs)
File "C:\Program Files (x86)\wapt\setuphelpers_windows.py", line 1104, in install_msi_if_needed
error('MSI %s has been installed but the uninstall key %s can not be found' % (msi,key))
File "C:\Program Files (x86)\wapt\waptutils.py", line 1698, in error
raise EWaptSetupException(u'Fatal error : %s' % reason)
EWaptSetupException: Fatal error : MSI eps_installer_signed.msi has been installed but the uninstall key {B08D6524-8772-4C0D-BE2D-94BFA5F3C6EA} can not be found
D'après ce que j'ai pu lire, il me semblait que d'appliquer le paramètre Force=True devait me permettre de passer outre ce problème de uninstallKey.
Quelqu'un pourrait-il m'aiguiller sur ce que je n'ai pas compris ?
Vous remerciant par avance pour vos réponses.
Cordialement.
_________
Thomas SILLÉ
Équipe Système et Réseaux
Direction des Systèmes d’Information
Mairie de Sainte-Maxime
0494799723
_______________________________________________
WAPT mailing list
WAPT at lists.tranquil.it<mailto:WAPT at lists.tranquil.it>
http://lists.tranquil.it/listinfo/wapt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.tranquil.it/pipermail/wapt/attachments/20201119/70702d98/attachment.htm>
More information about the WAPT
mailing list