<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<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 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);">
La commande suivante ne fonctionne pas<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
install_exe_if_needed("fusioninventory-agent_windows-x64_%s.exe" % versionpaquet,parameters,key=key,min_version=versionpaque,force=True)</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);">
Mais celle-ci fonctionne :</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
install_exe_if_needed("fusioninventory-agent_windows-x64_%s.exe" % versionpaquet,parameters,key=key,min_version=versionpaque,force="True")</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 configuration du paquet peut maintenant être mise à jour.</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
Merci beaucoup<br>
</div>
<div>
<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>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size: 11pt;" face="Calibri, sans-serif" color="#000000"><b>De :</b> WAPT <wapt-bounces@lists.tranquil.it> de la part de Simon FONTENEAU <sfonteneau@tranquil.it><br>
<b>Envoyé :</b> mardi 24 novembre 2020 18:45<br>
<b>À :</b> wapt@lists.tranquil.it <wapt@lists.tranquil.it><br>
<b>Objet :</b> Re: [Wapt] Forcer une installation pour mettre à jour la configuration</font>
<div> </div>
</div>
<div>
<p style="margin-top: 0px; margin-bottom: 0px;margin-top: 0px; margin-bottom: 0px;">
Oui en gros normalement c'est ça:</p>
<p style="margin-top: 0px; margin-bottom: 0px;margin-top: 0px; margin-bottom: 0px;">
<br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;margin-top: 0px; margin-bottom: 0px;">
install_exe_if_needed("fusioninventory-agent_windows-x64_%s.exe" % versionpaquet,parameters,key=key,min_version=versionpaque,force=True)</p>
<p style="margin-top: 0px; margin-bottom: 0px;margin-top: 0px; margin-bottom: 0px;">
<br>
ça force la réinstallation.<br>
<br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;margin-top: 0px; margin-bottom: 0px;">
si vraiment ça ne fonctionne pas il faut peu être désinstaller avant l'installation avec :</p>
<p style="margin-top: 0px; margin-bottom: 0px;margin-top: 0px; margin-bottom: 0px;">
<br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;margin-top: 0px; margin-bottom: 0px;">
for soft in installed_softwares('FusionInventory'):<br>
        run(uninstall_cmd(soft['key']))</p>
<p style="margin-top: 0px; margin-bottom: 0px;margin-top: 0px; margin-bottom: 0px;">
<br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;margin-top: 0px; margin-bottom: 0px;">
puis refaire l'installation<br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;margin-top: 0px; margin-bottom: 0px;">
<br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;margin-top: 0px; margin-bottom: 0px;">
Simon</p>
<p style="margin-top: 0px; margin-bottom: 0px;margin-top: 0px; margin-bottom: 0px;">
<br>
</p>
<div class="x_moz-cite-prefix">Le 24/11/2020 à 17:28, SILLÉ Thomas a écrit :<br>
</div>
<blockquote type="cite">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
Simon, je viens de tester et la configuration n'est pas mise à jour.</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
Voici la partie def install :<br>
</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);">
def install():
<div><br>
</div>
<div>    Force = True</div>
<div>    print('installing Fusion inventory agent')</div>
<div>    versionpaquet = control['version'].split('-',1)[0]</div>
<div>    install_exe_if_needed("fusioninventory-agent_windows-x64_%s.exe" % versionpaquet,parameters,key=key,min_version=versionpaquet)</div>
<br>
J'avais essayé dans un premier temps d'ajouter Force=True dans le install_exe_if_needed mais ça produit une erreur.<br>
</div>
<div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<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>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font style="font-size: 11pt;" face="Calibri, sans-serif" color="#000000"><b>De :</b> WAPT
<a class="x_moz-txt-link-rfc2396E" href="mailto:wapt-bounces@lists.tranquil.it"><wapt-bounces@lists.tranquil.it></a> de la part de SILLÉ Thomas
<a class="x_moz-txt-link-rfc2396E" href="mailto:tsille@ste-maxime.fr"><tsille@ste-maxime.fr></a><br>
<b>Envoyé :</b> mardi 24 novembre 2020 17:00<br>
<b>À :</b> <a class="x_moz-txt-link-abbreviated" href="mailto:wapt@lists.tranquil.it">
wapt@lists.tranquil.it</a> <a class="x_moz-txt-link-rfc2396E" href="mailto:wapt@lists.tranquil.it">
<wapt@lists.tranquil.it></a><br>
<b>Objet :</b> Re: [Wapt] Forcer une installation pour mettre à jour la configuration</font>
<div> </div>
</div>
</blockquote>
</div>
</body>
</html>