Downloads of v 12.2.1:


Last Update:

13 Jul 2015

Package Maintainer(s):

Software Author(s):

  • Apple Inc.


iTunes admin


This is not the latest version of iTunes available.

12.2.1 | Updated: 13 Jul 2015



Downloads of v 12.2.1:


Software Author(s):

  • Apple Inc.


iTunes admin

iTunes 12.2.1

This is not the latest version of iTunes available.

All Checks are Unknown

2 Test of Unknown Status

Validation Testing Unknown

Verification Testing Unknown

To install iTunes, run the following command from the command line or from PowerShell:


To upgrade iTunes, run the following command from the command line or from PowerShell:


To uninstall iTunes, run the following command from the command line or from PowerShell:


NOTE: This applies to both open source and commercial editions of Chocolatey.

1. Ensure you are set for organizational deployment

Please see the organizational deployment guide

  • Open Source or Commercial:
    • Proxy Repository - Create a proxy nuget repository on Nexus, Artifactory Pro, or a proxy Chocolatey repository on ProGet. Point your upstream to Packages cache on first access automatically. Make sure your choco clients are using your proxy repository as a source and NOT the default community repository. See source command for more information.
    • You can also just download the package and push it to a repository Download

3. Enter your internal repository url

(this should look similar to

4. Choose your deployment method:

choco upgrade itunes -y --source="'STEP 3 URL'" [other options]

See options you can pass to upgrade.

See best practices for scripting.

Add this to a PowerShell script or use a Batch script with tools and in places where you are calling directly to Chocolatey. If you are integrating, keep in mind enhanced exit codes.

If you do use a PowerShell script, use the following to ensure bad exit codes are shown as failures:

choco upgrade itunes -y --source="'STEP 3 URL'"

Write-Verbose "Exit code was $exitCode"
$validExitCodes = @(0, 1605, 1614, 1641, 3010)
if ($validExitCodes -contains $exitCode) {
  Exit 0

Exit $exitCode

- name: Ensure itunes installed
    name: itunes
    state: present
    version: 12.2.1
    source: STEP 3 URL

See docs at

Coming early 2020! Central Managment Reporting available now! More information...

chocolatey_package 'itunes' do
  action    :install
  version  '12.2.1'
  source   'STEP 3 URL'

See docs at

    Name: itunes,
    Version: 12.2.1,
    Source: STEP 3 URL

Requires Otter Chocolatey Extension. See docs at

cChocoPackageInstaller itunes
   Name     = 'itunes'
   Ensure   = 'Present'
   Version  = '12.2.1'
   Source   = 'STEP 3 URL'

Requires cChoco DSC Resource. See docs at

package { 'itunes':
  provider => 'chocolatey',
  ensure   => '12.2.1',
  source   => 'STEP 3 URL',

Requires Puppet Chocolatey Provider module. See docs at

salt '*' chocolatey.install itunes version="12.2.1" source="STEP 3 URL"

See docs at

5. If applicable - Chocolatey configuration/installation

See infrastructure management matrix for Chocolatey configuration elements and examples.

This package was approved by moderator ferventcoder on 07 Oct 2015.


iTunes is a free app that lets you organize and play digital music and video on your computer. It’s also a store that has everything you need to be entertained. That makes it the perfect place to listen, watch, read, play, explore, and shop.


This package installs iTunes, the required Apple Application Support component, Apple Mobile Device Support and Bonjour, but not the Apple Software Update component. The latter is intrusive and thus probably undesirable for many user because it recommends unnecessary additional software from Apple.

$packageName = 'iTunes'
$version = '12.2.1'
$url = ''
$url64bit = ''
$fileType = 'msi'
$silentArgs = '/qn /norestart'
$validExitCodes = @(0, 3010)

$toolsDir = Split-Path -Parent $MyInvocation.MyCommand.Definition
$downloadTempDir = Join-Path $toolsDir 'download-temp'

$app = Get-WmiObject -Class Win32_Product | Where-Object {$_.Name -match 'iTunes'}

# Check if the same version of iTunes is already installed
if ($app -and ([version]$app.Version -ge [version]$version)) {
  Write-Host $(
    'iTunes ' + $version + ' or higher is already installed. ' +
    'No need to download and install again.'
} else {

  Install-ChocolateyZipPackage -packageName $packageName -url $url `
    -url64bit $url64bit -unzipLocation $downloadTempDir

  $msiFilesList = (Get-ChildItem -Path $downloadTempDir -Filter '*.msi' | Where-Object {
    $_.Name -notmatch 'AppleSoftwareUpdate*.msi'

  # Loop over each file and install it. iTunes requires all of them to be installed
  foreach ($msiFileName in $msiFilesList) {
    Install-ChocolateyInstallPackage -packageName $msiFileName -fileType $fileType `
      -silentArgs $silentArgs -file (Join-Path $downloadTempDir $msiFileName) `
      -validExitCodes $validExitCodes

  Remove-Item $downloadTempDir -Recurse

Log in or click on link to see number of positives.

In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.

Version Downloads Last Updated Status
iTunes 145912 Thursday, December 12, 2019 Approved
iTunes 235081 Wednesday, October 30, 2019 Approved
iTunes 207908 Tuesday, October 8, 2019 Approved
iTunes 18323 Thursday, September 12, 2019 Approved
iTunes 33093 Tuesday, July 23, 2019 Approved
iTunes 27133 Wednesday, June 26, 2019 Approved
iTunes 53079 Tuesday, May 28, 2019 Approved
iTunes 38511 Tuesday, March 26, 2019 Approved
iTunes 31029 Friday, January 25, 2019 Approved

This package has no dependencies.

Discussion for the iTunes Package

Ground Rules:

  • This discussion is only about iTunes and the iTunes package. If you have feedback for Chocolatey, please contact the Google Group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or iTunes, or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.
comments powered by Disqus