[Wapt] installation silencieuse

Yohann Pla Yohann.Pla at lemarsan.fr
Wed Jul 29 16:52:22 CEST 2015


Bonjour,


je souhaite déployer VSDC free video editor (http://www.videosoftdev.com/fr/free-video-editor) sur certains de mes postes. j'ai donc créé le paquet et editer le setup.py

je me suis inspiré d'un script qui fonctionne pour Gimp et je l'ai adapté pour VSDC :

import platform
from setuphelpers import *

uninstallkey=['VSDC Free Video Editor_is1']

def install():

   softname = 'VideoEditor'
   versionsoft = '3.2.0.370-0'
   check_installed = installed_softwares(softname)
   # si cette liste globale n est pas vide, on check chaque logiciel
   if check_installed:
            # boucle pour chaque logiciel trouvée
            for uninstall in check_installed:
                  if uninstall['version'] == versionsoft :
                        print(u'The software is already installed' )
                        return (0);
                  if uninstall['version'] > versionsoft :
                        print(u'The software is already installed and its version is newer than the version of the package' )
                        return (0);


   global uninstallkey
   print("installing exe")
   print run('video_editor.exe /SUPPRESSMSGBOXES /VERYSILENT /SP-')
   return 0

   check_installed_out = installed_softwares(softname)
   if check_installed_out:
          for uninstall in check_installed_out:
                     if uninstall['version'] == versionsoft:
                               print(u'The software installation was successful')
                               return (0);
          for uninstall in check_installed_out:
                     if uninstall['version'] > versionsoft:
                        print(u'The software is already installed and its version is newer than the version of the package' )
                        return (0);
          for uninstall in check_installed_out:
                     if uninstall['version'] != versionsoft:
                               error('The output verification has found a old version of software')
   error('End audit did not find the software.')


je voudrais que cette installation soit complétement silencieuse.
Sauf qu'un problème survient car quand le programme vient verifier la presence d'une version deja installé et qu'il en trouve une, une boite de dialogue s'ouvre alors pour me demander si je veux désinstaller la version existante.
 Et ce meme avec les paramètres optionnels  /SUPPRESSMSGBOXES /VERYSILENT.
je ne vois pas comment supprimer cette boite de dialogue .
le reste de l'installation se passe sans problème qu'on est répondu oui ou non a la question.
La désinstallation par wapt ne fonctionne pas du tout.

merci pour l'aide

Yohann
[Le Marsan                  Agglomération]<http://>     Yohann Pla
Animateur multimédia
Yohann.Pla at lemarsan.fr
-
Le Marsan Agglomération
575, avenue du Maréchal FOCH - BP 70171 - 40003 Mont de Marsan cedex
-------------- section suivante --------------
Une pi?ce jointe HTML a ?t? nettoy?e...
URL: <http://lists.tranquil.it/pipermail/wapt/attachments/20150729/c8631893/attachment.html>


More information about the WAPT mailing list