Updated iTunes 12.1.2.27 Sequence File

email me

I used this, minus some company branding, to deploy iTunes to the enterprise. Note, this can be converted to VBScript or PowerShell.

@ECHO ON
TITLE iTunes Installation
color 0a
Setlocal EnableDelayedExpansion
Set CurDir=%CD%

CLS

rem if exist “C:\Program Files (x86)\LANDesk\LDClient\sdmcache\apps\Apple\iTunes\12.1.2.27\” (
rem SET LDPath=C:\Program Files (x86)\LANDesk\LDClient\sdmcache\apps\Apple\iTunes\12.1.2.27
rem )
rem if not exist “C:\Program Files (x86)\LANDesk\LDClient\sdmcache\apps\Apple\iTunes\12.1.2.27\” (
rem SET LDPath=%CD%
rem )

rem SET LDPath=C:\Program Files (x86)\LANDesk\LDClient\sdmcache\apps\Apple\iTunes\12.1.2.27
SET UName=LANDesk

ECHO Installing iTunes…
%windir%\system32\EVENTCREATE.exe /T INFORMATION /L Application /ID 777 /d “iTunes 12.1.2.27 package installation STARTED by %UName%”

rem kill running tasks
taskkill /f /im itunes.exe
taskkill /f /im ipodservice.exe
taskkill /f /im AppleMobileDeviceService.exe

rem uninstall
c:\windows\system32\msiexec.exe /x {B8BA155B-1E75-405F-9CB4-8A99615D09DC} /qn /norestart
c:\windows\system32\msiexec.exe /x {6E3610B2-430D-4EB0-81E3-2B57E8B9DE8D} /qn /norestart

c:\windows\system32\msiexec.exe /x {787136D2-F0F8-4625-AA3F-72D7795AC842} /qn /norestart
c:\windows\system32\msiexec.exe /x {B8BA155B-1E75-405F-9CB4-8A99615D09DC} /qn /norestart
c:\windows\system32\msiexec.exe /x {33E28B58-7BA0-47B7-AA01-9225ABA2B8A9} /qn /norestart
reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{B8BA155B-1E75-405F-9CB4-8A99615D09DC} /f /reg:64
reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{B8BA155B-1E75-405F-9CB4-8A99615D09DC} /f
ping -n 30 127.0.0.1>nul

c:\windows\system32\msiexec.exe /i “%CurDir%\AppleApplicationSupport.msi” /qn /norestart
c:\windows\system32\msiexec.exe /i “%CurDir%\AppleApplicationSupport64.msi” /qn /norestart
c:\windows\system32\msiexec.exe /i “%CurDir%\AppleMobileDeviceSupport64.msi” /qn /norestart
c:\windows\system32\msiexec.exe /i “%CurDir%\Bonjour64.msi” /qn /norestart
c:\windows\system32\msiexec.exe /i “%CurDir%\AppleSoftwareUpdate.msi” /qn /norestart
c:\windows\system32\msiexec.exe /i “%CurDir%\iTunes6464.msi” /qn /norestart IAcceptLicense=Yes ALLUSERS=1 DESKTOP_SHORTCUTS=1 INSTALL_ASUW=0 NO_ASUW=1
“%CurDir%\copytoallprofiles_7.vbs”
rem STANDALONE=1 AMDS_IS_INSTALLED=1 APPLEAPPLICATIONSUPPORT_IS_INSTALLED=1 DESKTOP_SHORTCUTS=1 FORCE_SUB_INSTALLS=0 INSTALL_ASUW=0 REENABLEAUTORUN=0 OUTLOOK_LOAD_BEHAVIOR=0 MEDIA_DEFAULTS=0 NO_ASUW=1 QUICKTIME_IS_INSTALLED=1 IAcceptLicense=Yes LaunchiTunesHelper=1 SCHEDULE_ASUW=0
rem reg add HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{B8BA155B-1E75-405F-9CB4-8A99615D09DC} /v DisplayVersion /f /reg:64
rem reg add HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{B8BA155B-1E75-405F-9CB4-8A99615D09DC} /v DisplayVersion /t REG_SZ /d 12.1.2.27 /f /reg:64

GOTO :END

:END
CLS
ECHO Installation successfull!
ECHO.
ECHO Exiting…

REM REGISTRY STAMP
%windir%\system32\REG.exe ADD “HKEY_LOCAL_MACHINE\SOFTWARE\MYSOFTWARE\Apple\iTunes\12.1.2.27” /v InstallDate /d “%date% %time%” /t REG_SZ /f
%windir%\system32\REG.exe ADD “HKEY_LOCAL_MACHINE\SOFTWARE\MYSOFTWARE\Apple\iTunes\12.1.2.27” /v InstalledBy /d “%UName%” /t REG_SZ /f

%windir%\system32\EVENTCREATE.exe /T INFORMATION /L Application /ID 777 /d “iTunes 12.1.2.27 package installation COMPLETED SUCCESSFULLY!”