Install iTunes with Landesk

At this moment I have rights for Landesk. Not optimal but I can add software and send it to systems what I manage.

Here is a script that I use to install Itunes.

@echo off
cls
echo --------------------------------------------------------
echo .
echo .
echo .      Installing iTunes 12.5.4.42 x64
echo .         Window will close once installed

If "%PROCESSOR_ARCHITECTURE%" == "AMD64" GOTO X64
IF "%PROCESSOR_ARCHITECTURE%" == "x86" GOTO x86

GOTO EXIT


:: Wait for 20 seconds
ping -n 20 127.0.0.1 > NUL

:x86
REM Copy Installer
REM Installer is only X64

GOTO EXIT



:X64
REM Copy Installer
Copy "\\<SERVER>\iTunes 12.5.4.42 x64\AppleApplicationSupport.msi" "C:\Logs\"
Copy "\\<SERVER>\iTunes 12.5.4.42 x64\AppleApplicationSupport64.msi" "C:\Logs\"
Copy "\\<SERVER>\iTunes 12.5.4.42 x64\AppleMobileDeviceSupport6464.msi" "C:\Logs\"
Copy "\\<SERVER>\iTunes 12.5.4.42 x64\AppleSoftwareUpdate.msi" "C:\Logs\"
Copy "\\<SERVER>\iTunes 12.5.4.42 x64\Bonjour64.msi" "C:\Logs\"
Copy "\\<SERVER>\iTunes 12.5.4.42 x64\iTunes6464.msi" "C:\Logs\"

REM Run Installer
MSIEXEC.EXE /I "C:\Logs\AppleApplicationSupport.msi" /QN /norestart REBOOT=ReallySuppress
MSIEXEC.EXE /I "C:\Logs\AppleApplicationSupport64.msi" /QN /norestart REBOOT=ReallySuppress
MSIEXEC.EXE /I "C:\Logs\AppleMobileDeviceSupport6464.msi" /QN /norestart REBOOT=ReallySuppress
MSIEXEC.EXE /I "C:\Logs\AppleSoftwareUpdate.msi" /QN /norestart REBOOT=ReallySuppress
MSIEXEC.EXE /I "C:\Logs\Bonjour64.msi" /QN /norestart REBOOT=ReallySuppress
MSIEXEC.EXE /I "C:\Logs\iTunes6464.msi" /QN /norestart REBOOT=ReallySuppress

:: Wait for 20 seconds
ping -n 20 127.0.0.1 > NUL

REM Delete Installer
Del "C:\Logs\AppleApplicationSupport.msi"
Del "C:\Logs\AppleApplicationSupport64.msi"
Del "C:\Logs\AppleMobileDeviceSupport6464.msi"
Del "C:\Logs\AppleSoftwareUpdate.msi"
Del "C:\Logs\Bonjour64.msi"
Del "C:\Logs\iTunes6464.msi"

GOTO EXIT

:EXIT
REM Return exit code to Landesk
exit /B %EXIT_CODE%