<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
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>
</body>
</html>