<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    j'ajoute une precision et une piste :<br>
    <br>
    chocolatey utilise 7zip pour gerer cela :<br>
    <br>
    <i>"</i>
    <meta charset="utf-8">
    <i>This unzips files using the 7-zip standalone command line tool
      7za.exe.</i><i><br>
    </i><i>Supported archive formats are: 7z, lzma, cab, zip, gzip,
      bzip2, Z and tar."</i><i><br>
      <br>
    </i>y'a t'il un moyen d'utiliser une telle lib avec wapt<i>.<br>
      <br>
      <br>
    </i><br>
    <div class="moz-cite-prefix">Le 31/03/2016 18:55, Phil markham a
      écrit :<br>
    </div>
    <blockquote cite="mid:56FD567E.9050706@hotmail.com" type="cite">
      <meta http-equiv="content-type" content="text/html; charset=utf-8">
      Bonjour,<br>
      <br>
      Je suis en train de crée un paquet itunes en me basant sur les
      script chocolatey en très simplifié et je souhaiterais   faciliter
      sa mise a jour en intégrant dans la fonctionne update_package,<br>
      la possibilité d'extraire itunesetup.exe pour en récupérer les msi
      (chez chocolatey il ont une option unzip-location)<br>
      existe t'il une fonction équivalent chez wapt <br>
      <br>
      en attendant mon script itunes ressemble a ça, il requiere de
      copier a la mains tout les msi extrait par itunes setup  dans le
      dossier temp, même chose pour quicktime, et de changer la version
      dans le fichier control :<br>
      <br>
      <!--?xml version="1.0" encoding="UTF-8" standalone="no"?-->
      <div style="font-family:'Helvetica Neue';font-size:14px;"># -*-
        coding: utf-8 -*- </div>
      <div style="font-family:'Helvetica Neue';font-size:14px;">from
        setuphelpers import * </div>
      <div style="font-family:'Helvetica Neue';font-size:14px;"><br>
      </div>
      <div style="font-family:'Helvetica Neue';font-size:14px;">uninstallkey

        = [] </div>
      <div style="font-family:'Helvetica Neue';font-size:14px;"><br>
      </div>
      <div style="font-family:'Helvetica Neue';font-size:14px;"><br>
      </div>
      <div style="font-family:'Helvetica Neue';font-size:14px;">def
        find_msis(): </div>
      <div style="font-family:'Helvetica Neue';font-size:14px;">   
        """Returns msi filename and properties""" </div>
      <div style="font-family:'Helvetica Neue';font-size:14px;">   
        allmsi = glob.glob('*.msi') </div>
      <div style="font-family:'Helvetica Neue';font-size:14px;">   
        result = [] </div>
      <div style="font-family:'Helvetica Neue';font-size:14px;">    for
        msi in allmsi: </div>
      <div style="font-family:'Helvetica Neue';font-size:14px;">       
        # uninstallkey is in msi db </div>
      <div style="font-family:'Helvetica Neue';font-size:14px;">       
        props = get_msi_properties(msi) </div>
      <div style="font-family:'Helvetica Neue';font-size:14px;">       
        result.append((msi,props)) </div>
      <div style="font-family:'Helvetica Neue';font-size:14px;">   
        return result </div>
      <div style="font-family:'Helvetica Neue';font-size:14px;"><br>
      </div>
      <div style="font-family:'Helvetica Neue';font-size:14px;">def
        install(): </div>
      <div style="font-family:'Helvetica Neue';font-size:14px;">   
        print('installing iep-itunes64') </div>
      <div style="font-family:'Helvetica Neue';font-size:14px;">   
        killalltasks('iTunes.exe') </div>
      <div style="font-family:'Helvetica Neue';font-size:14px;">    msis
        = find_msis() </div>
      <div style="font-family:'Helvetica Neue';font-size:14px;">    for
        (msi,props) in msis: </div>
      <div style="font-family:'Helvetica Neue';font-size:14px;">       
        if msi != "AppleSoftwareUpdate.msi": </div>
      <div style="font-family:'Helvetica Neue';font-size:14px;">       
            msikey = props['ProductCode'] </div>
      <div style="font-family:'Helvetica Neue';font-size:14px;">       
            print('Adding uninstall key : %s'%msikey) </div>
      <div style="font-family:'Helvetica Neue';font-size:14px;">       
            uninstallkey.append(msikey) </div>
      <div style="font-family:'Helvetica Neue';font-size:14px;">       
            print('Adding : %s'%msi) </div>
      <div style="font-family:'Helvetica Neue';font-size:14px;">       
            run(r'"%s" /qn /norestart'%msi) </div>
      <title></title>
      <br>
      <br>
      <br>
      <br>
      en vous remerciant,<br>
      <br>
      <br>
      <br>
      <br>
    </blockquote>
    <br>
  </body>
</html>