Download the most recent version of the Apple iTunes 12 installer. You can download the most recent installer from Apple’s website.
When extraction completes, open the directory with the extracted installer files and delete the following:
Rename “iTunes64.msi” to “iTunes64_Orig.msi”. Download and install the Microsoft Windows SDK for Windows 7 and .NET Framework 3.5 SP1 from Microsoft’s Download Center. Note that you only need to install the “Win32 Development Tools”. Navigate to C:\Program Files\Microsoft SDKs\Windows\v7.0\Bin and run the installer “Orca.msi”.
When the (Typical) installation completes, right-click on “iTunes64_Orig.msi” and select the option “Edit with Orca”.
When Orca launches, you will notice several sections in the left navigation pane; this guide is going to focus on just two of them.
- Edit Property “DONT_AUTO_SYNC_IPODS” and set Value to “#1”.
- Edit Property “IAcceptLicense” and set Value to “Yes”.
- Edit Property “REGSRCH_DESKTOP_SHORTCUTS” and set Value to “0”.
- Edit Property “SCHEDULE_ASUW ” and set Value to “0”.
- Drop Row “AboutiTunes”.
Navigate to File > Save As and save the file as “iTunes64.msi” to the directory with the extracted installer files. Launch Notepad and copy / paste the following text:
msiexec /i “%~dp0Extracted\AppleApplicationSupport64.msi” /quiet /passive /l*vx “C:\Temp\AppleApplicationSupport64.log”
msiexec /i “%~dp0Extracted\AppleMobileDeviceSupport6464.msi” /quiet /passive /l*vx “C:\Temp\AppleMobileDeviceSupport6464.log”
msiexec /i “%~dp0Extracted\Bonjour64.msi” /quiet /passive /l*vx “C:\Temp\Bonjour64.log”
msiexec /i “%~dp0Extracted\iTunes64.msi” /quiet /passive /l*vx “C:\Temp\iTunes64.log” ChkOptASU=0
Navigate to File > Save As and save the file as “Install.bat” to the directory with the extracted installer files.
Finally, copy your extracted installer files and script to a software repository to be distributed with a Systems Management Service appliance.