iTunes
Post date: Dec 25, 2010 2:44:55 PM
@rem iTunes is a free application to organizes and plays your digital music and video on your computer.
@rem It keeps all your content in sync. And it's a store on your computer, iPod touch, iPhone, iPad,
@rem and Apple TV that has everything you need to be entertained.
@rem https://www.apple.com/hk/itunes/download/
if not exist "%SystemDrive%\Program Files (x86)" goto not_64bit
if exist iTunes\itunes64setup.exe goto next_64bit
start /wait "" wget.exe "https://secure-appldnld.apple.com/itunes12/091-56359-20171213-EDF2198A-E039-11E7-9A9F-D21A1E4B8CED/iTunes64Setup.exe" --directory-prefix=iTunes
:next_64bit
start /wait 7za.exe x iTunes\itunes64setup.exe -o%temp%\iTunes -aoa
for %%U in (%temp%\iTunes\*.msi) do start /wait "" msiexec /i %%U /quiet /passive /norestart
goto end
:not_64bit
if exist iTunes\iTunesSetup.exe goto next
start /wait "" wget.exe "https://secure-appldnld.apple.com/itunes12/091-56357-20171213-EDF21CDC-E039-11E7-9C46-D31A1E4B8CED/iTunesSetup.exe" --directory-prefix=iTunes
:next
start /wait 7za.exe x iTunes\iTunesSetup.exe -o%temp%\iTunes -aoa
for %%U in (%temp%\iTunes\*.msi) do start /wait "" msiexec /i %%U /quiet /passive /norestart
:end