Changes
ITunes
,complete rewrite of the page; removed old versions; added minimal itunes install method
== Apple iTunes =General Information =Apple iTunes is primarily a program to both play different types of media, but it is also required if you want to sync backup an iPhone IPhone or sync your emails, notes, bookmarks etc over USB with outlook in a corporate environmentyour PC. you can get it [[http://www.apple.com/itunes here]]. It ITunes comes bundled with multiple sub programs. Some that are desired and some are not. I will post below all automatically installed when running the minimum required ones to get a get iTunes workingregular ITunes setup wizard. It will include However depending on your use case you don't actually need all of them. Therefore this page is divided into two subparts: On the iTunes, one hand a full blown ITunes installation (excluding Apple Software Update) when you actually want to use ITunes and Quicktime as an audio and Apple Mobile Device Supportvideo player, image viewer, podcast streamer, etc and on the other hand a minimal ITunes installation if you only want to use it to snc/backup an IPhone.
== Notes ==
* Apple Mobile Device Support is only necessary if you want to connect an Ipod or IPhone. Quicktime and Apple Application Support are mandatory to be able to run ITunes.
* Each sub-application has its own version. When a new version for ITunes comes out, you will need to extract the MSI packages, right click on them and check their version under file info to see which sub programs have updated. Each sub program has its own WPKG package definition with separate install, upgrade and uninstall commands.
* If you insist on also having the latest available version of Apple Application Support you'll have to download every installer from the Apple website and check which one contains the latest version of the Apple Application Support.
* Apple is known to sometimes modify the setup packages of their programs even at minor version changes, so do not blindly assume that a new ITunes installer will work the same way as the old one did!
* The version of Quicktime that is bundled with ITunes is '''not''' necessarily the newest version available and may contain known security flaws. If this is the case, you will have to download the standalone Quicktime installer from Apple and extract the file QuickTime.msi from there.
* There is a 64bit version of ITunes available too. As of version 9.2.1.5 the 64bit installer contains 64bit versions of ITunes itself and Apple Mobile Device Support and 32bit versions of Quicktime and Apple Application Support. If you have package definition for the 64bit versions feel free to add them to the wiki.
== 9.2.1.5 =='''** NOTE **Warning:''': Each sub-application The installer of ITunes 9.2.1.5 contains Quicktime 7.66 which has it's own version. When a new version highly critical security flaw that allows for iTunes comes outremote execution of arbitrary code, you will need to install all the applications on simply by visiting a test box and see which sub-applications have updatedwebpage ([http://secunia.com/advisories/40729 secunia.com]). You will find that most of have to download the time it is just the iTunes msi that has a new revision standalone Quicktime installer instead and extract the others remain the sameversion 7. Each one also has it's own uninstall command67 of QuickTime. == XML =='''If msi. Alternatively you update this codecan use the minimal ITunes installation method below, please remember which removes the SIDs change on each new version installed''' === 9Quicktime browser plugin completely.2.1.5 ==='''NOTICE: Apple Application Support is now required for Apple QuickTime to run'''
Deploy File/Folder Structure
%SOFTWARE%\itunes\9.2.1.5\iTunes.msi %SOFTWARE%\itunes\9.2.1.5\QuickTime.msi %SOFTWARE%\itunes\9.2.1.5\AppleMobileDeviceSupport.msi %SOFTWARE%\itunes\9.2.1.5\AppleApplicationSupport.msi
<source lang="xml">
<?xml version="1.0" encoding="UTF-8"?>
<package!-- Version 1.3.0 has the same GUID --> <package id="itunes" 'appleapplicationsupport' name="'Apple iTunes" Application Support' revision="9'1.23.1.5" ' reboot="'false" ' priority="'1'> <check type='registry' condition='equals' path='HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{B2D328BE-45AD-4D92-96F9-2151490A203E}\DisplayVersion' value='1.3.1"' />
</package>
<package id="quicktime" 'applemobilesupport' name="'Apple Quicktime" Mobile Device Support' revision="7'3.66.731.0" .62' reboot="'false" ' priority="'1"'> <check type='registry' condition='equals' path='HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{85991ED2-010C-4930-96FA-53F43C2CE98A}\DisplayVersion' value='3.1.0.62' />
<install cmd='msiexec /i "%SOFTWARE%\itunes\AppleMobileDeviceSupport.msi" /passive /norestart' timeout='300'>
<exit code='0' />
<exit code='3010' reboot='postponed' />
</install>
</package>
<package id="applemobile" 'itunes' name="'Apple Mobile Device Support" iTunes' revision="3'9.12.01.62" 5' reboot="'false" ' priority="'1"'> <depends package-id='appleapplication' /> <depends package-id='quicktime' />
</package>
</source>
After ITunes is removed, it does not delete the files in ''%APPDATA%\Apple Computer\iTunes'', ''%USERPROFILE%\Local Settings\Application Data\Apple Computer\iTunes'' and ''%ALLUSERSPROFILE%\Anwendungsdaten\Apple Computer\iTunes''. If you want to remove those directories, you have to specify additional remove commands for WPKG. The same is true for the registry key ''HKCU\Software\Apple Computer, Inc.\iTunes''. The backups of IPhones, songs and applications from the Apple Store are stored outside of those directores!
== Package definitions for 9.2.1.5 ==
=== Apple Application Support and Apple Mobile Device Support ===
Copy the package definitions from the full ITunes installation above and use the original MSI files as extracted from iTunesSetup.exe. These packages don't require any modifications.
=== 8.2.1.6 ITunes ===Deploy File/Folder Structure %SOFTWARE%\itunes\8.2.1.6\iTunes.msi %SOFTWARE%\itunes\8.2.1.6\QuickTime.msi %SOFTWARE%\itunes\8.2.1.6\AppleMobileDeviceSupport.msi <source lang="xml"> <package id="iTunes" name="Apple iTunes" revision="8.2.1.6" reboot="false" priority="1"> <check type="file" condition="versiongreaterorequal" path="%PROGRAMFILES%\iTunes\iTunes.exe" value="8.2.1.6"/> <install cmd="msiexec.exe /qn /norestart /i %SOFTWARE%\iTunes\8.2.1.6\iTunes.msi" /> <upgrade cmd="msiexec.exe /qn /i %SOFTWARE%\iTunes\8.2.1.6\iTunes.msi"> <exit code="3010" reboot="true" /> <exit code="0" /> </upgrade> <remove cmd="msiexec.exe /qn /uninstall {99ECF41F-5CCA-42BD-B8B8-A8333E2E2944}" /> </package> <package id="quicktime" name="Apple Quicktime" revision="7.62.14.0" reboot="false" priority="1"> <depends package-id="iTunes"/> <check type="file" condition="versiongreaterorequal" path="%PROGRAMFILES%\QuickTime\QuickTimePlayer.exe" value="7.62.14.0"/> <install cmd="msiexec /qn /i %SOFTWARE%\iTunes\8.2.1.6\QuickTime.msi" /> <upgrade cmd="msiexec /qn /i %SOFTWARE%\iTunes\8.2.1.6\QuickTime.msi" /> <remove cmd="msiexec /qn /uninstall {C78EAC6F-7A73-452E-8134-DBB2165C5A68}" /></package> <package id="applemobile" name="Apple Mobile Device Support" revision="2.5.2.2" reboot="false" priority="1"> <depends package-id="iTunes"/> <check type="registry" condition="equals" path="HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{C337BDAF-CB4E-47E2-BE1A-CB31BB7DD0E3}\DisplayVersion" value="2.5.2.2"/> <install cmd="msiexec /qn /i %SOFTWARE%\iTunes\8.2.1.6\AppleMobileDeviceSupport.msi" /> <upgrade cmd="msiexec /qn /i %SOFTWARE%\iTunes\8.2.1.6\AppleMobileDeviceSupport.msi" /> <remove cmd="msiexec /qn /uninstall {C337BDAF-CB4E-47E2-BE1A-CB31BB7DD0E3}" /></package></source> === 8.1.0.52 ===Deploy File/Folder Structure %SOFTWARE%\itunes\8.1.0.52\iTunes.msi %SOFTWARE%\itunes\8.1.0.52\QuickTime.msi %SOFTWARE%\itunes\8.1.0.52\AppleMobileDeviceSupport.msi
<source lang="xml">
<package id?xml version="iTunes1.0" encoding="UTF-8"?> <package id='itunes' name="'Apple iTunes" ' revision="8'9.2.1.0.51" 5' reboot="'false" ' priority='1'> priority<depends package-id="198"'appleapplication' /> <depends package-id='quicktime' />
<check type="'uninstall' condition='exists' path='iTunes' /> <check type='file" ' condition="'versiongreaterorequal" ' path="'%PROGRAMFILES%\iTunes\iTunes.exe" ' value="8'9.2.1.0.52"5' /> <install cmd!-- DESKTOP_SHORTCUTS="msiexec.exe /qn /norestart /i %SOFTWARE%\iTunes\8.1.0.52\iTunes.msi">: Don't create desktop shortcuts <exit code MEDIA_DEFAULTS="3010" />0: Don't make ITunes the default program for Audio CDs and various audio filetypes SCHEDULE_ASUW=0: Don't create a scheduled task to automatically search for ITunes updates </install REENABLEAUTORUN=0: Don't try to re-enable Windows autorun feature for CDs --> <upgrade install cmd="'msiexec.exe /qn /norestart /i "%SOFTWARE%\iTunes\8.1.0.52itunes\iTunes.msi" /> <remove cmdTRANSFORMS="msiexec.exe /qn /norestart /uninstall {F4D6C3EB-304E%SOFTWARE%\itunes\itunes-4B0Ctransform-8BCEfrom-F6B9E974CD17}above.mst" DESKTOP_SHORTCUTS=0 MEDIA_DEFAULTS=0 SCHEDULE_ASUW=0 REENABLEAUTORUN=0 /passive /norestart' timeout='300'> <exit code='0' /package> <package idexit code="quicktime" name="Apple Quicktime" revision="7.60.92.0" '3010' reboot="false"'postponed' /> priority="198"</install> <depends package!-- Disable update feature in ITunes via parental controls --id="iTunes"/> <check typeinstall cmd='reg add "fileHKLM\SOFTWARE\Apple Computer, Inc.\iTunes\Parental Controls\Default" condition=/v "versiongreaterorequalAdminFlags" path=/t REG_DWORD /d "%PROGRAMFILES%\QuickTime\QuickTimePlayer.exe0x101" value/f' timeout="7.'60.92.0"' /> <install upgrade cmd="'msiexec /qn .exe /i "%SOFTWARE%\itunes\iTunes\8.1.0.52\QuickTime.msi" /> <upgrade cmdTRANSFORMS="msiexec /qn /i %SOFTWARE%\iTunesitunes\8itunes-transform-from-above.1.0.52\QuickTime.msimst" /> <remove cmdDESKTOP_SHORTCUTS="msiexec 0 MEDIA_DEFAULTS=0 SCHEDULE_ASUW=0 REENABLEAUTORUN=0 /qn /uninstall {216AB108-2AE1-4130-B3D5-20B2C4C80F8F}" passive /norestart'> <exit code='0' /package> <package idexit code="applemobile" name="Apple Mobile Device Support" revision="2.4.0.27" '3010' reboot="false" priority="198"'postponed' /> <depends package-id="iTunes"/upgrade> <check type="registry" condition="equals" pathupgrade cmd='reg add "HKLM\SOFTWARE\MicrosoftApple Computer, Inc.\WindowsiTunes\CurrentVersion\Uninstall\{162B71B8-8464-4680-A086-601D555B331D}Parental Controls\DisplayVersionDefault" value=/v "2.4.0.27AdminFlags"/t REG_DWORD /d "0x101" /f' timeout='60' /> <install remove cmd="'msiexec .exe /qn x {91F7F3F3-CE80-48C3-8327-7D24A0A5716A} /i %SOFTWARE%\iTunes\8.1.0.52\AppleMobileDeviceSupport.msi" passive /norestart' timeout='300'> <upgrade cmdexit code="msiexec /qn /i %SOFTWARE%\iTunes\8.1.'0.52\AppleMobileDeviceSupport.msi" ' /> <remove cmdexit code="msiexec '1605' /qn > <exit code='3010' reboot='postponed' /uninstall {162B71B8-8464-4680-A086-601D555B331D}" > </remove>
</package>
</source>
=== 8.0.2.20 Quicktime ===Deploy File/Folder Structure %SOFTWARE%\itunes\8.0.2.20\iTunes.msi %SOFTWARE%\itunes\8The Quicktime installer package is grouped into multiple features (categories).0For reasons that are left to the imagination of the reader, Apple prevents the user from deselecting any of those features through the GUI.2However by using the ''ADDLOCAL'' switch, it is possible to specify which features should be installed.20\QuickTimeTo use the audio and video playback capabilites of Quicktime, only the feature ''QuickTimeEssentials'' is necessary.msi %SOFTWARE%\itunes\8The other features as of version 7.067 are: QuickTimeInternet, QuickTimeImage, QuickTimeEffects, QuickTimeMusic, QuickTimeAuthoring, QuickTimeCapture, QuickTimeForJava, QuickTimeDiagnostics, QuickTimeProResDecoder.2None of them is necessary to run ITunes, therefore they are all excluded.20\AppleMobileDeviceSupportBe aware that ''QuickTimeInternet'' includes the Quicktime plugin for the Internet Explorer (see above for possible security implications when installing this feature).msi
<source lang="xml">
<package id?xml version="itunes1.0"encoding="UTF-8"?> <package id='quicktime' name="'Apple iTunes" QuickTime' revision="8'7.067.275.20" 0' reboot="'false"' priority='1'> priority<chain package-id="1"'quicktimesettings' />
<check type="'uninstall' condition='exists' path='QuickTime' /> <check type='file" ' condition="'versiongreaterorequal" ' path="'%PROGRAMFILES%\iTunesQuickTime\iTunesQuickTimePlayer.exe" ' value="8'7.067.275.20"0' /> <!-- ADDLOCAL=QuickTimeEssentials: Only install the main feature of Quicktime --> <install cmd="'msiexec.exe /qn /norestart /i "%SOFTWARE%\itunes\8QuickTime.0.2.20msi" TRANSFORMS="%SOFTWARE%\iTunesitunes\quicktime-transform-from-above.msimst" ADDLOCAL=QuickTimeEssentials DESKTOP_SHORTCUTS=0 SCHEDULE_ASUW=0 /passive /norestart' timeout='300'> <exit code='0' /> <exit code='3010' reboot='postponed' /> </install> <upgrade cmd="'msiexec.exe /qn /norestart /i "%SOFTWARE%\itunes\8.0QuickTime.2.20msi" TRANSFORMS="%SOFTWARE%\iTunesitunes\quicktime-transform-from-above.msimst" ADDLOCAL=QuickTimeEssentials DESKTOP_SHORTCUTS=0 SCHEDULE_ASUW=0 /passive /norestart' timeout='300'> <exit code='0' /> <exit code='3010' reboot='postponed' /> </upgrade> <remove cmd="'msiexec.exe /qn /uninstall x {318AB667EB900AF8-3230CC61-41B54E15-A617871B-CB3BF748D37198D1EA3E8025}" /passive /norestart' timeout='300'> <exit code='0' /> <exit code='1605' /> <exit code='3010' reboot='postponed' /> </remove>
</package>
<package id='quicktimesettings' name='Apple QuickTime settings' revision='1' notify='false' reboot='false' priority='1'>
<!-- Adapt the paths to your locale -->
<check type='registry' condition='equals' path='HKLM\SOFTWARE\Apple Computer, Inc.\QuickTime\LocalUserPreferences\FolderPath' value='C:\Documents and Settings\All Users\Application Data\Apple Computer\QuickTime\' />
<check type='file' condition='exists' path='%ALLUSERSPROFILE%\Application Data\Apple Computer\QuickTime\QuickTime.qtp' />
<depends package-idinstall cmd="itunes"'%COMSPEC% /> <check type="file" condition="versiongreaterorequal" path=C if exist "%PROGRAMFILESALLUSERSPROFILE%\QuickTime\QuickTimePlayer.exe" value="7.55.90.70Application Data"xcopy /> <install cmd=y /v "msiexec /qn /i %SOFTWARE%\itunes\8.0.2.20\QuickTime.msiqtp" /> <upgrade cmd="msiexec /qn /i %SOFTWAREALLUSERSPROFILE%\itunesApplication Data\8.0.2.20Apple Computer\QuickTime.msi" ' timeout='60' /> <remove install cmd="msiexec '%COMSPEC% /qn /uninstall {8DC42D05-680B-41B0-8878-6C14D24602DB}C if exist " /></package><package id=%ALLUSERSPROFILE%\Application Data"applemobile" name=reg.exe add "HKLM\SOFTWARE\Apple Mobile Device SupportComputer, Inc.\QuickTime\LocalUserPreferences" revision=/v "2.1.2.7FolderPath" reboot=/d "false%ALLUSERSPROFILE%\Application Data\Apple Computer\QuickTime\\" priority/f' timeout="1"'60' />
<depends package-idupgrade cmd='%COMSPEC% /C if exist "itunes%ALLUSERSPROFILE%\Application Data"xcopy /> <check type=y /v "registry" condition="equals" path="HKLM\%SOFTWARE%\Microsoftitunes\WindowsQuickTime.qtp" "%ALLUSERSPROFILE%\CurrentVersionApplication Data\UninstallApple Computer\{EC4455AB-F155-4CC1-A4C5-88F3777F9886}\DisplayVersionQuickTime" value' timeout="2.1.2.7"'60' /> <install upgrade cmd="msiexec '%COMSPEC% /qn /i C if exist "%SOFTWAREALLUSERSPROFILE%\itunes\8Application Data" reg.0.2exe add "HKLM\SOFTWARE\Apple Computer, Inc.20\AppleMobileDeviceSupport.msiQuickTime\LocalUserPreferences" /> <upgrade cmd=v "FolderPath"msiexec /qn /i d "%SOFTWAREALLUSERSPROFILE%\itunesApplication Data\Apple Computer\QuickTime\8.0.2.20\AppleMobileDeviceSupport.msi" /> <remove cmdf' timeout="msiexec /qn /uninstall {EC4455AB-F155-4CC1-A4C5-88F3777F9886}" /></package><'60' /source>
<remove cmd=== 8.0.1.11 ===Deploy File/Folder Structure '%SOFTWARECOMSPEC%\itunes\8.0.1.11\iTunes.msi /C del "%SOFTWAREALLUSERSPROFILE%\itunesApplication Data\8.0.1.11Apple Computer\QuickTime.msi %SOFTWARE%\itunes\8QuickTime.0.1.11\AppleMobileDeviceSupport.msi <source langqtp"' timeout="xml"'60'> <package idexit code="itunes" name="Apple iTunes" revision="8.'0.1.11"' /> reboot <exit code="false" priority="'1"' /> <check type="file" condition="versiongreaterorequal" path="%PROGRAMFILES%\iTunes\iTunes.exe" value="8.0.1.11"/remove> <install remove cmd="msiexec'reg.exe /qn /norestart /i %delete "HKLM\SOFTWARE%\itunes\8Apple Computer, Inc.0.1.11\iTunes.msiQuickTime\LocalUserPreferences" /f' timeout='60'> <upgrade cmdexit code="msiexec.exe '0' /qn /norestart /i %SOFTWARE%\itunes\8.0.> <exit code='1.11\iTunes.msi" ' /> </remove cmd="msiexec.exe /qn /uninstall {DDDE0BE3-0CBE-4BF6-B75A-E3F69C947843}" />
</package>
</source>
[[Category:Silent Installers]]