<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Bonjour,
<br>
<br>
<br>
je souhaite déployer VSDC free video editor (<a href="http://www.videosoftdev.com/fr/free-video-editor" target="_blank">http://www.videosoftdev.com/fr/free-video-editor</a>) sur certains de mes postes. j'ai donc créé le paquet et editer le setup.py<br>
<br>
je me suis inspiré d'un script qui fonctionne pour Gimp et je l'ai adapté pour VSDC :<br>
<br>
<font color="993300">import platform<br>
from setuphelpers import *<br>
<br>
uninstallkey=['VSDC Free Video Editor_is1']<br>
<br>
def install():<br>
<br>
softname = 'VideoEditor'<br>
versionsoft = '3.2.0.370-0'<br>
check_installed = installed_softwares(softname)<br>
# si cette liste globale n est pas vide, on check chaque logiciel<br>
if check_installed:<br>
# boucle pour chaque logiciel trouvée<br>
for uninstall in check_installed:<br>
if uninstall['version'] == versionsoft :<br>
print(u'The software is already installed' )<br>
return (0);<br>
if uninstall['version'] > versionsoft :<br>
print(u'The software is already installed and its version is newer than the version of the package' )<br>
return (0);<br>
<br>
<br>
global uninstallkey<br>
print("installing exe")<br>
print run('video_editor.exe /SUPPRESSMSGBOXES /VERYSILENT /SP-')<br>
return 0<br>
<br>
check_installed_out = installed_softwares(softname)<br>
if check_installed_out:<br>
for uninstall in check_installed_out:<br>
if uninstall['version'] == versionsoft:<br>
print(u'The software installation was successful')<br>
return (0);<br>
for uninstall in check_installed_out:<br>
if uninstall['version'] > versionsoft:<br>
print(u'The software is already installed and its version is newer than the version of the package' )<br>
return (0);<br>
for uninstall in check_installed_out:<br>
if uninstall['version'] != versionsoft:<br>
error('The output verification has found a old version of software')<br>
error('End audit did not find the software.')<br>
<br>
<br>
</font><font color="000000"><font color="000000">je <font color="000000"><font color="000000">voudrais</font> que cette installation soit
<font color="000000">complétement</font> silencieuse. <br>
Sauf qu'</font>un <font color="000000">problème</font> sur<font color="000000">vient car quand le programme vien<font color="000000">t verifier la presence d'une version deja installé et qu'il en trouve une<font color="000000">, un<font color="000000">e boite
de dialogue s'ouvre alors pour me demander si je veux <font color="000000">désinstaller</font> la v<font color="000000">ersion existante.<font color="000000"><br>
</font></font></font></font><font color="000000">Et ce <font color="000000">meme avec</font></font></font></font></font> les<font color="000000">
<font color="000000">paramètres <font color="000000">optionnels </font> /SUPPRESSMSGBOXES /VERYSILENT.
<br>
je ne vois pas comment supprimer cette boite de dialo<font color="000000">gue .<br>
<font color="000000">le reste de l'installation se passe sans <font color="000000">
problème</font> qu'on est <font color="000000">répondu</font> oui ou non a la question.<br>
<font color="000000">L<font color="000000">a <font color="000000">désinstallation</font> par wapt ne fonctionne pas du tout.<br>
<br>
<font color="000000">merci pour l<font color="000000">'aide<br>
<br>
<font color="000000">Yohann</font><br>
</font></font></font></font></font></font></font></font></font></div>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<title></title>
<style type="text/css">
.logo {
padding-right: 15px;
}
.name {
border-left: 2px solid #696969;
padding-top: 0px;
padding-left: 16px;
font-family:"Bookman Old Style", "Times New Roman", serif;
font-size: 15px;
font-weight: 400;
color: #2D2D2D;
}
.titre {
font-family: "Bookman Old Style", "Times New Roman", serif;
font-size: 14px;
font-weight: 600;
color: #696969;
}
.ident {
border-left: 2px solid #696969;
padding-top: 8px;
padding-left: 16px;
font-family:"Bookman Old Style", "Times New Roman", serif;
font-size: 13px;
font-weight: 400;
color: #2D2D2D;
}
</style>
<table cellspacing="0" height="100">
<tbody>
<tr>
<td rowspan="2" class="logo" valign="middle"><a href="http://"><img alt="Le Marsan
Agglomération" src="http://www.lemarsan.fr/logo_lemarsan.png" border="0" height="82" width="175"></a></td>
<td class="name" valign="middle"><span style="font-style:
italic; font-weight: bold;">Yohann Pla</span><br>
<span class="titre">Animateur multimédia</span> </td>
</tr>
<tr>
<td class="ident" valign="middle">Yohann.Pla@lemarsan.fr<br>
- <br>
Le Marsan Agglomération<br>
575, avenue du Maréchal FOCH - BP 70171 - 40003 Mont de Marsan cedex </td>
</tr>
</tbody>
</table>
</body>
</html>