<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <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="moz-cite-prefix">Le 19/11/2020 à 12:32, SILLÉ Thomas a
      écrit :<br>
    </div>
    <blockquote type="cite"
cite="mid:PR3PR04MB74501779033694D1B272B09191E00@PR3PR04MB7450.eurprd04.prod.outlook.com">
      <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>
      <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="��" 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="��">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="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="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
WAPT mailing list
<a class="moz-txt-link-abbreviated" href="mailto:WAPT@lists.tranquil.it">WAPT@lists.tranquil.it</a>
<a class="moz-txt-link-freetext" href="http://lists.tranquil.it/listinfo/wapt">http://lists.tranquil.it/listinfo/wapt</a>
</pre>
    </blockquote>
  </body>
</html>