<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
Bonjour Gaëtan,</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
La commande fournie par l'éditeur fonctionne<br>
</div>
<div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
</div>
<blockquote style="margin-top: 0px; margin-bottom: 0px;">
<blockquote style="margin-top: 0px; margin-bottom: 0px;">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
# -*- coding: utf-8 -*-
<div>from setuphelpers import *</div>
<div><br>
</div>
<div>uninstallkey = ["Endpoint Security"]</div>
<div><br>
</div>
<div>properties = {</div>
<div>    'GZ_PACKAGE_ID':"aHR0cHM6Ly8xNzIuMTYuMTEuMzE6ODQ0My9QYWNrYWdlcy9CU1RXSU4vMC9XTURnS3UvaW5zdGFsbGVyLnhtbD9sYW5nPWZyLUZS",</div>
<div>    'force':True</div>
<div>}</div>
<div><br>
</div>
<div>def install():</div>
    install_msi_if_needed('eps_installer_signed.msi', properties = properties)<br>
</div>
</blockquote>
</blockquote>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
En passant par des properties, j'obtiens le même message d'erreur.<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<blockquote style="margin-top: 0px; margin-bottom: 0px;">
<blockquote style="margin-top: 0px; margin-bottom: 0px;">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
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:
<div>Traceback (most recent call last):</div>
<div>  File "C:\Program Files (x86)\wapt\common.py", line 3877, in install_wapt</div>
<div>    exitstatus = setup.install()</div>
<div>  File "C:\waptdev\mdsm-bitdefender-endpoint-security-tools-wapt\setup.py", line 13, in install</div>
<div>    install_msi_if_needed('eps_installer_signed.msi', properties = properties)</div>
<div>  File "C:\Program Files (x86)\wapt\common.py", line 3831, in new_func</div>
<div>    return func(*args,**kwargs)</div>
<div>  File "C:\Program Files (x86)\wapt\setuphelpers_windows.py", line 1104, in install_msi_if_needed</div>
<div>    error('MSI %s has been installed but the uninstall key %s can not be found' % (msi,key))</div>
<div>  File "C:\Program Files (x86)\wapt\waptutils.py", line 1698, in error</div>
<div>    raise EWaptSetupException(u'Fatal error : %s' % reason)</div>
EWaptSetupException: Fatal error : MSI eps_installer_signed.msi has been installed but the uninstall key {B08D6524-8772-4C0D-BE2D-94BFA5F3C6EA} can not be found<br>
</div>
</blockquote>
</blockquote>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="Signature">
<div>
<div></div>
<div></div>
<div><span style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt">Cordialement.</span><span style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt"><br>
</span></div>
<div><span style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt">_________</span></div>
<div><span style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt">Thomas SILLÉ</span><br>
</div>
<span style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt">Équipe Système et Réseaux</span><br>
<span style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt">Direction des Systèmes d’Information</span><br>
<span style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt">Mairie de Sainte-Maxime</span><br>
<div><span style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt">0494799723</span></div>
</div>
</div>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>De :</b> WAPT <wapt-bounces@lists.tranquil.it> de la part de Gaëtan SEGAT <gaetan.segat@inserm.fr><br>
<b>Envoyé :</b> jeudi 19 novembre 2020 12:45<br>
<b>À :</b> wapt@lists.tranquil.it <wapt@lists.tranquil.it><br>
<b>Objet :</b> Re: [Wapt] Refus d'installation pour un problème de uninstallkey</font>
<div> </div>
</div>
<div>
<p>Bonjour Thomas,</p>
<p>la commande fonctionne-t-elle hors WAPT ?</p>
<p><br>
</p>
<p>Pour les options peux-être essayer comme ceci :</p>
<p><br>
</p>
<pre>properties = {
        <i>:</i>
        }

def install():

   install_msi_if_needed('.msi', properties = properties)</pre>
<p>Gaëtan</p>
<p><br>
</p>
<div class="x_moz-cite-prefix">Le 19/11/2020 à 12:32, SILLÉ Thomas a écrit :<br>
</div>
<blockquote type="cite"><style type="text/css" style="display:none">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
Bonjour,</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
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.</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
Ce serveur fonctionne parfaitement (merci Simon)</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
Néanmoins, le paquet qui nous servait pour le déploiement de l'antivirus ne fonctionne plus.</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
J'ai vu, après coup, que la façon dont on l'installait ne supportait pas les proxy.</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
Je regarde donc pour modifier ce paquet.</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
D'après la documentation de l'éditeur (Bitdefender), il suffit de faire : <code>msiexec /i eps_installer_signed.msi /qn GZ_PACKAGE_ID=<strong>chaîne</strong>
</code><code>REBOOT_IF_NEEDED=1</code></div>
<div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Effectivement, si je lance cette commande dans un invite de commande en tant qu'administrateur, l'antivirus s'installe bien.</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<code><span style="font-family:calibri,helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">Si je transpose cela à un paquet WAPT, il me semble que cela donne
</span><span style="font-family:Calibri,Helvetica,sans-serif">: </span><strong><br>
</strong></code></div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<code><strong># -*- coding: utf-8 -*-
<div>from setuphelpers import *</div>
<div><br>
</div>
<div>uninstallkey = ["Endpoint Security"]</div>
<div><br>
</div>
<div>def install():</div>
    install_msi_if_needed('eps_installer_signed.msi','/quiet','GZ_PACKAGE_ID="aHR0cHM6Ly8xNzIuMTYuMTEuMzE6ODQ0My9QYWNrYWdlcy9CU1RXSU4vMC9XTURnS3UvaW5zdGFsbGVyLnhtbD9sYW5nPWZyLUZS"',force=True)</strong></code></div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<code><strong><br>
</strong></code></div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<code><span style="font-family:calibri,helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">Or si j'essaye de l'installer, j'obtiens ceci en retour de la console
</span><span id="x_��" style="font-family:calibri,helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">:
</span><strong><span><br>
</span></strong></code></div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<code><strong><span><br>
</span></strong></code></div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<code><strong><span id="x_��">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:
<div>Traceback (most recent call last):</div>
<div>  File "C:\Program Files (x86)\wapt\common.py", line 3877, in install_wapt</div>
<div>    exitstatus = setup.install()</div>
<div>  File "C:\waptdev\mdsm-bitdefender-endpoint-security-tools-wapt\setup.py", line 7, in install</div>
<div>    install_msi_if_needed('eps_installer_signed.msi','/quiet','GZ_PACKAGE_ID="aHR0cHM6Ly8xNzIuMTYuMTEuMzE6ODQ0My9QYWNrYWdlcy9CU1RXSU4vMC9XTURnS3UvaW5zdGFsbGVyLnhtbD9sYW5nPWZyLUZS"',force=True)</div>
<div>  File "C:\Program Files (x86)\wapt\common.py", line 3831, in new_func</div>
<div>    return func(*args,**kwargs)</div>
<div>  File "C:\Program Files (x86)\wapt\setuphelpers_windows.py", line 1104, in install_msi_if_needed</div>
<div>    error('MSI %s has been installed but the uninstall key %s can not be found' % (msi,key))</div>
<div>  File "C:\Program Files (x86)\wapt\waptutils.py", line 1698, in error</div>
<div>    raise EWaptSetupException(u'Fatal error : %s' % reason)</div>
EWaptSetupException: Fatal error : MSI eps_installer_signed.msi has been installed but the uninstall key {B08D6524-8772-4C0D-BE2D-94BFA5F3C6EA} can not be found</span><br>
</strong></code></div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
<code><strong></strong></code></div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
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.</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Quelqu'un pourrait-il m'aiguiller sur ce que je n'ai pas compris ?<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Vous remerciant par avance pour vos réponses.<br>
</div>
<div id="x_Signature">
<div>
<div><span style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt">Cordialement.</span><span style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt"><br>
</span></div>
<div><span style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt">_________</span></div>
<div><span style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt">Thomas SILLÉ</span><br>
</div>
<span style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt">Équipe Système et Réseaux</span><br>
<span style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt">Direction des Systèmes d’Information</span><br>
<span style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt">Mairie de Sainte-Maxime</span><br>
<div><span style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt">0494799723</span></div>
</div>
</div>
</div>
<br>
<fieldset class="x_mimeAttachmentHeader"></fieldset>
<pre class="x_moz-quote-pre">_______________________________________________
WAPT mailing list
<a class="x_moz-txt-link-abbreviated" href="mailto:WAPT@lists.tranquil.it">WAPT@lists.tranquil.it</a>
<a class="x_moz-txt-link-freetext" href="http://lists.tranquil.it/listinfo/wapt">http://lists.tranquil.it/listinfo/wapt</a>
</pre>
</blockquote>
</div>
</body>
</html>