How to install iTunes silent with SCCM

 

How to install iTunes silent with SCCM

 

First you need to go and download the iTunes installer from Apple website:

https://www.apple.com/itunes/download/win64

Now you have two options

Option one and the easiest use the installer iTunes64Setup.exe: iTunes64Setup.exe /qn /norestart

ITunes exe command line explanation.

iTunes64Setup.exe– the msi file

/qn – Silent Installation

/norestart – Don’t restart the computer after installation

I had some issues using this option, only iTunes was installed, no AppleApplicationSupport, no AppleMobileDeviceSupport64, no Bonjour64, etc. iTunes error -45075

iTunes-app-erorr-45075

 

 

Option two

After you download the installer use 7zip or something similar and unzip .exe and to the msi files.

itunes-unziped-msi

Create a application and use a script to install all installer.

@echo off

@REM version xxxx
Set Logfilepathcmd=c:\Temp\logs\ITunes_installation.log
cls
if not exist C:\Temp\Logs\ md C:\Temp\Logs\
==================================================================
Rem   iTunes silent install >>%Logfilepathcmd%
==================================================================
@echo   iTunes msi silent install >>%Logfilepathcmd%
@echo. >>%Logfilepathcmd%
start /wait msiexec /i "%~dp0AppleApplicationSupport.msi" /qn /norestart ALLUSERS=true /l "c:\Temp\logs\AppleApplication.log"
REM Next
start /wait msiexec /i "%~dp0AppleApplicationSupport64.msi" /qn /norestart ALLUSERS=true /l "c:\Temp\logs\AppleApplicationx64.log"
REM Next
start /wait msiexec /i "%~dp0AppleMobileDeviceSupport64.msi" /qn /norestart /l "c:\Temp\logs\AppleMobileDevice.log"
REM Next
start /wait msiexec /i "%~dp0AppleSoftwareUpdate.msi" /qn /norestart /l "c:\Temp\logs\AppleSoftwareUpdate.log"
REM Next
start /wait msiexec /i "%~dp0Bonjour64.msi" /qn /norestart /l "c:\Temp\logs\Bonjour64.log"
REM Next
start /wait msiexec /i "%~dp0iTunes64.msi" /qn /norestart /l "c:\Temp\logs\iTunes64.log"
set errorcode=%errorlevel%
@echo Return code of installation = %errorcode% >>%Logfilepathcmd%
@echo. >>%Logfilepathcmd%
Rem Settings
@echo Set the parameter file >>%Logfilepathcmd%
@echo. >>%Logfilepathcmd%
:END
@echo end of sceipt >>%Logfilepathcmd%
@echo Error code script = %errorcode% >>%Logfilepathcmd%
exit %errorcode%

Save as .bat file

ITunes Msi command line explanation.

“%~dp0xxxxxx.msi” – The path for the msi file.

msiexec /i – normal installation

/qn – /q – set the UI level; n – no UI

/norestart – Don’t restart the computer

Create the SCCM iTunes app. If you want to learn how to do an application with sccm see this article: install adobe reader dc with sccm

iTunes-app-sccm1

iTunes-app-sccm

On the cient:

The logs are created on the specified location

iTunes-app-logs

SCCM log for AppEnforce.log

iTunes-app-log

Easy, happy SCCM-ing :)