- Sistema operativo del server (Linux) e versione (Stretch)
- Sistema operativo della macchina di amministrazione/creazione dei pacchetti (Windows 10)
Buongiorno,
Ho problemi con iTunes. Ho seguito il metodo di installazione silenziosa di Apple, ma il software non funziona correttamente. Quando accedo alle impostazioni, iTunes si blocca e non funziona con il mio iPhone, anche se ho installato tutti i componenti di iTunes.
Volevo sapere se qualcuno di voi è riuscito a far funzionare correttamente iTunes.
Ecco il mio copione:
Codice: Seleziona tutto
# -*- coding: utf-8 -*-
from setuphelpers import *
uninstallkey = ['{5881B877-CB42-4317-9411-96BA3CA39715}']
Property = get_file_properties('iTunes64Setup.exe')['ProductVersion']
waptdev = 'c:/waptdev/futur-Itunes_x64_PROD-wapt/Setup'
def install():
print('installing futur-Itunes')
install_msi_if_needed('AppleApplicationSupport64.msi', min_version='7.2')
install_msi_if_needed('Bonjour64.msi', min_version='3.1.0.1')
install_msi_if_needed('AppleMobileDeviceSupport64.msi', min_version='12.1.0.25')
install_msi_if_needed('AppleSoftwareUpdate.msi')
## install_msi_if_needed('iTunes64.msi',uninstallkeylist='{A9921EE9-86E5-402C-A934-4A8DBAD99E24}')
## install_exe_if_needed('iTunes64Setup.exe', silentflags='/qn /norestart', key='{5881B877-CB42-4317-9411-96BA3CA39715}',min_version='12.9.2.6',killbefore=['iTunes.exe'])
run('start /wait /i iTunes64Setup.exe /qn /norestart')
def uninstall():
print('Uninstalling Itunes')
print('Apple Application Support (64 bits)')
run('MsiExec.exe /X {466D00D0-E7DE-47C2-8FE5-54A8009F5850} /quiet')
print('iTunes')
run('MsiExec.exe /X {5881B877-CB42-4317-9411-96BA3CA39715} /quiet')
print('Apple Mobile Device Support')
run('MsiExec.exe /X {5FA8C4BE-8C74-4B9C-9B49-EBF759230189} /quiet')
print('Apple Application Support (32 bits)')
run('MsiExec.exe /X {80B42CAA-28C0-4FBD-A46E-D61F45E2F9FC} /quiet')
print('Apple Software Update')
run('MsiExec.exe /X {A30EA700-5515-48F0-88B0-9E99DC356B88} /quiet')
def update_package():
""" You can do a CTRL F9 in pyscripter to update the package """
import re,requests,urlparse,glob
url = requests.head('https://www.apple.com/itunes/download/win64',proxies={}).headers['Location']
filename = urlparse.unquote(url.rsplit('/',1)[1])
if not isfile(filename):
print('Downloading %s from %s'%(filename,url))
wget(url,filename)
exes = glob.glob('*.exe')
for fn in exes:
if fn != filename:
remove_file(fn)
# change version of package
from waptpackage import PackageEntry
pe = PackageEntry()
pe.load_control_from_wapt(os.getcwd())
pe.version = get_file_properties('iTunes64Setup.exe')['ProductVersion']+'-0'
pe.save_control_to_wapt(os.getcwd())
#Extraction fichier install
run('iTunes64Setup.exe /extract')
if __name__ == '__main__':
update_package()